/* ==========================================
   COMPUTATRUM - STYLES COMPLETS
   ========================================== */

/* ==========================================
   PROTECTION MODE SOMBRE - FORCE MODE CLAIR
   ========================================== */

/* Force le mode clair sur tout le site */
/* PROTECTION MODE SOMBRE RENFORCÉE */
:root {
  color-scheme: light only !important;
}

html {
  color-scheme: light only !important;
  background: #ffffff !important;
}

body {
  color-scheme: light only !important;
  background: #ffffff !important;
  color: #1d1d1b !important;
}

* {
  color-scheme: light only !important;
}

@media (prefers-color-scheme: dark) {
  :root, html, body, * {
    color-scheme: light only !important;
    filter: none !important;
  }
}

/* Reset et variables CSS */
:root {
    --color-primary: #1d1d1b;
    --color-secondary: #4a4a4a;
    --color-accent: #6d6d6d;
    --color-light: #9d9d9c;
    --color-text: #7a7a7a;
    --color-bg-light: #f8f9fa;
    --color-bg-secondary: #e9ecef;
    --color-white: #ffffff;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 35px;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-primary);
    overflow-x: hidden;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(29, 29, 27, 0.2);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(29, 29, 27, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-xl);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(198, 198, 198, 0.3);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform var(--transition-normal);
    text-decoration: none; /* LIGNE À AJOUTER */
    color: inherit; /* LIGNE À AJOUTER pour hériter des couleurs */
}

.logo:hover {
    transform: scale(1.02);
}

/* Logo image dans la navbar */
.logo-img {
    height: 45px;
    width: auto;
    max-width: 45px;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--color-light);
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--color-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-nav {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(29, 29, 27, 0.2);
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(29, 29, 27, 0.3);
}

/* Menu mobile complet */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 9999;
    transition: left var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
}

.mobile-menu .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 1rem;
    transition: color var(--transition-normal);
}

.mobile-menu .nav-links a:hover {
    color: var(--color-secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 10000;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Animation hamburger */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Bloquer le scroll quand menu ouvert */
body.menu-open {
    overflow: hidden;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-bg-light) 50%, var(--color-bg-secondary) 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content .baseline {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-content p:last-of-type {
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-large {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.logo-large-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    transition: all var(--transition-normal);
    opacity: 0.9;
}

.logo-large:hover .logo-large-img {
    transform: scale(1.05);
    opacity: 1;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(1deg); 
    }
}

/* ==========================================
   SECTION À PROPOS
   ========================================== */

.about {
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.about-text p {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%);
    border-radius: 15px;
    transition: transform var(--transition-normal);
    border: 1px solid rgba(198, 198, 198, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
}

.stat-label {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================
   SECTION SERVICES
   ========================================== */

.services {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(198, 198, 198, 0.1);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--color-white);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(29, 29, 27, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.service-card p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================
   SECTION TÉMOIGNAGES
   ========================================== */

.testimonials {
    background: var(--color-white);
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    border: 1px solid rgba(198, 198, 198, 0.2);
    transition: transform var(--transition-normal);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Responsive pour témoignages */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    
    .testimonial-card {
        min-height: 280px;
    }
}

.stars {
    color: var(--color-warning);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-content {
    color: var(--color-primary);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info h4 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* ==========================================
   COULEURS DE FOND DES SECTIONS - RESTAURÉES
   ========================================== */

/* Section Hero - Dégradé blanc vers gris clair */
.hero {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-bg-light) 50%, var(--color-bg-secondary) 100%) !important;
}

/* Section À propos - Blanc pur */
.about {
    background: var(--color-white) !important;
}

/* Section Services - Dégradé gris clair */
.services {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%) !important;
}

/* Section Témoignages - Blanc pur */
.testimonials {
    background: var(--color-white) !important;
}

/* Section Contact - Dégradé gris clair */
.contact {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%) !important;
}

/* Cartes des témoignages - Fond gris clair */
.testimonial-card {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%) !important;
}

/* Cartes des statistiques - Fond gris clair */
.stat-item {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%) !important;
}

/* Cartes de service - Blanc pur */
.service-card {
    background: var(--color-white) !important;
}

/* Formulaire de contact - Blanc pur */
.contact-form {
    background: var(--color-white) !important;
}

/* ==========================================
   SECTION CONTACT
   ========================================== */

/* Solution rapide - à ajouter au début de la section CONTACT dans votre CSS */
.contact, .contact * {
    color: #1d1d1b !important;
    background-color: inherit !important;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-item a:hover {
    color: var(--color-secondary);
}

/* Formulaire */
.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(198, 198, 198, 0.1);
}

.contact-form h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(198, 198, 198, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(29, 29, 27, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1.2rem;
}

.form-note {
    margin-top: 1.5rem;
    color: var(--color-accent);
    font-size: 0.9rem;
    text-align: center;
}

/* Bouton avec spinner */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--color-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--color-bg-secondary);
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: #495057;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.social-link:hover {
    background: #6c757d;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    color: #adb5bd;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom a {
    color: #adb5bd;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* Logo dans le footer (optionnel) */
.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity var(--transition-normal);
}

.footer-logo:hover {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE POUR LES LOGOS
   ========================================== */

/* Mode paysage mobile (orientation landscape) */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    /* Navbar encore plus compacte en mode paysage */
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Logo encore plus petit */
    .logo-img {
        height: 28px;
        max-width: 28px;
    }
    
    /* Toujours cacher le texte en paysage mobile */
    .logo-text {
        display: none !important;
    }
    
    /* CTA nav très compact */
    .cta-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hero adapté pour paysage */
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .logo-large {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* Navigation mobile de base */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-text {
        display: none;
    }
    
    /* Navbar mobile */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }

    /* Optimisations tactiles pour smartphones modernes */
    /* Zones tactiles minimum 44px (recommandation Apple/Google) */
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 1rem 2rem;
        touch-action: manipulation; /* Évite le zoom au tap */
    }
    
    .cta-nav {
        min-height: 44px;
        padding: 0.8rem 1.5rem;
        touch-action: manipulation;
        font-size: 0.85rem;
    }
    
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Liens et boutons plus facilement cliquables */
    .nav-links a,
    .contact-item {
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    /* Champs de formulaire adaptés au tactile */
    .form-group input,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Évite le zoom sur iOS */
        touch-action: manipulation;
    }
    
    /* Espacement amélioré entre éléments tactiles */
    .hero-cta {
        gap: 1rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    /* Animation tactile améliorée */
    .btn-primary:active,
    .btn-secondary:active,
    .cta-nav:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Hero responsive */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .baseline {
        font-size: 1.2rem;
    }

    .logo-large {
        width: 250px;
        height: 250px;
    }

    /* Sections responsive */
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Services responsive */
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 100%;
        gap: 2rem;
    }
    
    .service-card {
        min-height: 220px;
        padding: 2rem;
    }

    /* Témoignages responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    
    .testimonial-card {
        min-height: 280px;
    }

    /* Boutons responsive */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    /* Formulaire responsive */
    .contact-form {
        padding: 2rem;
    }

    /* Footer responsive */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - OPTIMISÉ SMARTPHONES MODERNES
   ========================================== */

/* Smartphones modernes (Google Pixel 7, iPhone 14, Samsung Galaxy S23, etc.) */
@media (max-width: 430px) {
    .container {
        padding: 0 1rem;
    }

    /* Logo navbar très petit écran */
    .logo-img {
        height: 32px;
        max-width: 32px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.1;
    }

    .section-title {
        font-size: 1.9rem;
    }

    /* Logo hero optimisé pour haute densité */
    .logo-large {
        width: 220px;
        height: 220px;
    }

    .service-card,
    .testimonial-card {
        padding: 1.8rem;
    }

    .contact-form {
        padding: 1.8rem;
    }
    
    /* Navigation plus accessible sur grand écran */
    .mobile-menu .nav-links a {
        font-size: 1.8rem;
        padding: 1.5rem;
    }
}

/* Tablettes et grands smartphones paysage */
@media (min-width: 431px) and (max-width: 768px) {
    .logo-img {
        height: 35px;
        max-width: 35px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .logo-large {
        width: 250px;
        height: 250px;
    }
}

/* Mode paysage smartphones modernes (ratio 20:9) */
@media (max-width: 932px) and (orientation: landscape) and (max-height: 430px) {
    /* Navbar ultra-compacte pour paysage smartphone */
    .navbar {
        padding: 0.4rem 0;
    }
    
    .logo-img {
        height: 26px;
        max-width: 26px;
    }
    
    .logo-text {
        display: none !important;
    }
    
    .cta-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Hero optimisé paysage smartphone */
    .hero {
        min-height: 100vh;
        padding-top: 50px;
    }
    
    .hero-container {
        gap: 1.5rem;
        grid-template-columns: 1.5fr 0.5fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .baseline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .logo-large {
        width: 160px;
        height: 160px;
    }
    
    /* Sections plus compactes */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   ANIMATIONS AVANCÉES
   ========================================== */

/* Optimisations pour les images PNG */
.logo-img,
.logo-large-img,
.footer-logo {
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
}

/* Support pour écrans haute résolution (416+ DPI) */
@media (-webkit-min-device-pixel-ratio: 2.6), (min-resolution: 249dpi) {
    .logo-img,
    .logo-large-img,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Textes plus nets sur haute densité */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Amélioration des ombres sur haute densité */
    .btn-primary,
    .btn-secondary,
    .service-card,
    .testimonial-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary:hover {
        box-shadow: 0 4px 16px rgba(29, 29, 27, 0.25);
    }
}

/* Animation du logo au hover */
.logo:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation des cartes de service */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
    opacity: 0;
}

.service-card:hover::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Animation des témoignages */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(29, 29, 27, 0.1);
    font-family: serif;
}

/* Effet de typing pour le titre principal */
@media (prefers-reduced-motion: no-preference) {
    .hero-content h1 {
        overflow: hidden;
        border-right: 3px solid var(--color-primary);
        white-space: nowrap;
        animation: typing 2s steps(11, end), blink-caret 0.75s step-end infinite;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-primary); }
}

/* Animation des statistiques */
.stat-number.counting {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-bg-light);
    z-index: 9999;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: var(--scroll-width, 0%);
    transition: width var(--transition-fast);
}

/* ==========================================
   UTILITAIRES PRINT
   ========================================== */

@media print {
    .navbar,
    .mobile-menu-btn,
    .hero-cta,
    .contact-form,
    .social-links {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 24pt;
        animation: none;
        border: none;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus visible pour la navigation au clavier */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Amélioration du contraste */
.btn-primary:focus,
.btn-secondary:focus,
.cta-nav:focus {
    box-shadow: 0 0 0 3px rgba(29, 29, 27, 0.3);
}

/* Animation réduite pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .logo-large {
        animation: none;
    }
    
    .hero-content h1 {
        animation: none;
        border: none;
    }
}

/* Amélioration de la lisibilité */
.testimonial-content,
.about-text p,
.service-card p {
    text-align: left;
    hyphens: auto;
    word-wrap: break-word;
}

/* ==========================================
   ÉTATS DE CHARGEMENT
   ========================================== */

/* Skeleton loader pour les cartes */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-light) 25%, var(--color-bg-secondary) 50%, var(--color-bg-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* États de validation du formulaire */
.form-group.success input,
.form-group.success textarea {
    border-color: var(--color-success);
    background-color: rgba(40, 167, 69, 0.05);
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--color-error);
    background-color: rgba(220, 53, 69, 0.05);
}

.form-group.success::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    color: var(--color-success);
    font-weight: bold;
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

/* GPU acceleration pour les animations */
.service-card,
.testimonial-card,
.stat-item,
.logo-large,
.btn-primary,
.btn-secondary {
    will-change: transform;
}

/* Optimisation des images */
img {
    max-width: 100%;
    height: auto;
    image-rendering: optimizeQuality;
}

/* Préchargement des polices */
.logo-main,
.section-title,
.hero-content h1 {
    font-display: swap;
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */

/* Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-light) var(--color-bg-light);
}

/* ==========================================
   SELECTION STYLING
   ========================================== */

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   STYLES POUR PAGES LÉGALES COMPUTATRUM
   Mentions légales et Politique de confidentialité
   ======================================== */

/* Page container pour les pages légales */
.legal-page {
    min-height: 100vh;
    background: #ffffff;
    padding-top: 140px; /* Espace augmenté pour la navbar fixe */
}

/* Contenu principal des pages légales */
.legal-content {
    max-width: 900px; /* Plus étroit pour une meilleure lisibilité */
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

/* Titre principal de la page */
.legal-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1d1d1b;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #c6c6c6;
}

/* Date de mise à jour */
.last-updated {
    text-align: center;
    color: #9d9d9c;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Sous-titre descriptif */
.legal-content .intro {
    font-size: 1.1rem;
    color: #6d6d6d;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #1d1d1b;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

/* Sections des pages légales */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

/* Titres des sections */
.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d1d1b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c6c6c6;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1b;
    margin: 2rem 0 1rem 0;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1b;
    margin: 1.5rem 0 0.8rem 0;
}

/* Paragraphes et texte */
.legal-section p {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* Listes */
.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: #1d1d1b;
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: #9d9d9c;
}

/* Bloc d'informations légales */
.legal-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

.legal-info h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1d1d1b;
}

.legal-info p {
    margin-bottom: 1rem;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

/* Tableau responsive pour les finalités RGPD */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.legal-table thead {
    background: #1d1d1b;
    color: white;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.legal-table th {
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-table tbody tr:hover {
    background: #f8f9fa;
}

.legal-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Grille des droits RGPD */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.right-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.right-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.8rem 0;
    color: #1d1d1b;
    font-weight: 600;
}

.right-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #6d6d6d;
}

/* Section cookies */
.cookies-table {
    margin: 2rem 0;
}

.cookies-table h4 {
    font-size: 1.1rem;
    color: #1d1d1b;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.cookie-preferences {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #1d1d1b;
}

.cookie-preferences h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.cookie-preferences ul {
    margin-left: 1rem;
}

/* Informations de contact */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.contact-info h3 {
    margin-top: 0;
    color: #1d1d1b;
}

/* Définitions */
.definitions {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.definitions p {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

.definitions p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Navigation légale */
.legal-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #c6c6c6;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.legal-navigation .btn-primary,
.legal-navigation .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    min-width: 180px;
    text-align: center;
    line-height: 1.2;
}

.legal-navigation .btn-primary {
    background: #1d1d1b;
    color: white;
}

.legal-navigation .btn-primary:hover {
    background: #9d9d9c;
    transform: translateY(-2px);
}

.legal-navigation .btn-secondary {
    background: transparent;
    color: #1d1d1b;
    border: 2px solid #1d1d1b;
}

.legal-navigation .btn-secondary:hover {
    background: #1d1d1b;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 120px; /* Espace adapté mobile */
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .legal-table {
        font-size: 0.8rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.5rem;
    }
    
    .legal-navigation {
        flex-direction: row;
        align-items: stretch;
        gap: 1rem;
    }
    
    .legal-navigation .btn-primary,
    .legal-navigation .btn-secondary {
        flex: 1;
        max-width: 200px;
        min-width: 160px;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .intro {
        padding: 1rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .legal-info,
    .contact-info,
    .definitions,
    .cookie-preferences {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .right-item {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .legal-table thead {
        background: #2a2a2a;
    }
    
    .legal-table tbody tr:nth-child(even) {
        background: #2a2a2a;
    }
},
    .definitions,
    .cookie-preferences {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding: 1rem;
    }
    
    .table-responsive {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .legal-navigation {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .legal-navigation .btn-primary,
    .legal-navigation .btn-secondary {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        flex: none;
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .right-item {
        transition: none;
    }
    
    .legal-navigation .btn-primary,
    .legal-navigation .btn-secondary {
        transition: none;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .legal-page {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .legal-content h1,
    .legal-section h2,
    .legal-section h3,
    .legal-section h4 {
        color: #ffffff;
    }
    
   .legal-info,
   .contact-info,
   .definitions,
   .cookie-preferences {
       background: #2a2a2a;
       border-color: #404040;
   }
   
   .right-item {
       background: #2a2a2a;
       border-color: #404040;
   }
   
   .legal-table thead {
       background: #2a2a2a;
   }
   
   .legal-table tbody tr:nth-child(even) {
       background: #2a2a2a;
   }
   }

/* Container reCAPTCHA */
.recaptcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive reCAPTCHA */
.g-recaptcha {
    transform: scale(1);
    transform-origin: 0 0;
}

/* Adaptation mobile */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
    
    .recaptcha-container {
        padding: 0.5rem;
        margin: 1.5rem 0;
    }
}

/* Très petits écrans */
@media (max-width: 350px) {
    .g-recaptcha {
        transform: scale(0.75);
        transform-origin: 0 0;
    }
}

/* Erreur reCAPTCHA */
#recaptcha-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
    display: block;
    min-height: 1.2rem;
}

/* Note de confidentialité */
.form-note small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.form-note small a {
    color: #6c757d;
    text-decoration: underline;
}

.form-note small a:hover {
    color: var(--color-primary);
}
