/* ================================================================
   Authentic Tech — Feuille de styles principale
   Fichier : css/style.css
   ================================================================
   ORGANISATION :
   01. Variables CSS & Reset          → :root, body, ::selection
   02. Utilitaires                    → .tag, .section-title, .divider
   03. Header & Navigation            → header, nav, .logo-*, .hamburger
   04. Hero                           → #hero, .hero-*, .btn-*, .stat-*
   05. Canvas 3D Hero                 → #hero-canvas-wrap, .canvas-label
   06. À propos                       → #about, .about-*, #team-canvas-wrap
   07. Services                       → #services, .service-*
   08. Pourquoi nous                  → #why, .why-*, .process-*, .testimonial-*
   09. Portfolio                      → #portfolio, .portfolio-*, .port-*
   10. Contact & Formulaire           → #contact, .form-*, .contact-*
   11. Footer                         → footer, .footer-*
   12. WhatsApp flottant              → .whatsapp-float, .wa-*
   13. Validation formulaire          → .form-hint, .valid, .invalid
   14. Cartes touch mobile            → @media (hover: none)
   15. Bouton retour en haut          → .back-to-top
   16. Responsive                     → @media 1024px, 768px, 480px
   17. Scrollbar                      → ::-webkit-scrollbar
   ================================================================ */

/* ===================================================
       VARIABLES & RESET — THÈME CLAIR RAFFINÉ
       Philosophie : fond ivoire chaud, pas de blanc pur.
       Sections alternées clair/légèrement teinté.
       Cartes blanches sur fond gris doux = élévation visible.
       Typographie sombre profond, jamais noir pur.
       =================================================== */
    :root {
      /* ── Fonds ── */
      --bg-page:        #f4f3ef;   /* ivoire chaud — fond principal */
      --bg-section-alt: #eceae4;   /* sections alternées légèrement plus foncées */
      --bg-card:        #ffffff;   /* cartes blanches = élévation sur fond ivoire */
      --bg-raised:      #f9f8f5;   /* champs de formulaire, inputs */
      --bg-footer:      #1e1c18;   /* footer sombre pour contraste final */

      /* ── Bordures ── */
      --border:         rgba(0,0,0,0.09);
      --border-strong:  rgba(0,0,0,0.15);
      --border-gold:    rgba(156,118,42,0.35);

      /* ── Couleur dorée ── */
      --gold:           #9c762a;
      --gold-light:     #b8902f;
      --gold-pale:      rgba(156,118,42,0.10);
      --gold-deep:      #7a5a1e;

      /* ── Typographie ── */
      --text-dark:      #1c1a14;   /* titres */
      --text-body:      #3d3a30;   /* corps de texte */
      --text-muted:     #7a7568;   /* sous-titres, labels */
      --text-faint:     #a8a398;   /* placeholders, mentions */
      --text-on-gold:   #ffffff;   /* texte sur fond doré */
      --text-on-dark:   #f0ede6;   /* texte sur footer sombre */

      /* ── Système (legacy — conservés pour compatibilité) ── */
      --white:          #1c1a14;
      --white-dim:      #5a5648;
      --white-faint:    #a8a398;

      /* ── Rayons, typos, transitions ── */
      --radius-sm:      6px;
      --radius-md:      14px;
      --radius-lg:      24px;
      --font-display:   'Cormorant Garamond', Georgia, serif;
      --font-body:      'DM Sans', sans-serif;
      --transition:     0.35s cubic-bezier(.4,0,.2,1);

      /* ── Ombres ── */
      --shadow-gold:    0 8px 40px rgba(156,118,42,0.14);
      --shadow-card:    0 2px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
      --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }

    body {
      background: var(--bg-page);
      color: var(--text-body);
      font-family: var(--font-body);
      font-weight: 400;
      line-height: 1.7;
      overflow-x: hidden;
    }

    ::selection { background: var(--gold); color: #ffffff; }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }

    /* ===================================================
       UTILITY
       =================================================== */
    .container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
    .container--wide { max-width: 1320px; }
    .gold { color: var(--gold); }

    .tag {
      display: inline-block;
      font-family: var(--font-body);
      font-size: 0.70rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold-deep);
      background: rgba(156,118,42,0.12);
      border: 1.5px solid rgba(156,118,42,0.45);
      padding: 5px 14px;
      border-radius: 100px;
      margin-bottom: 20px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3.2rem);
      font-weight: 300;
      color: var(--text-dark);
      line-height: 1.2;
      margin-bottom: 16px;
    }
    .section-title em { font-style: italic; color: var(--gold-light); }

    .section-sub {
      font-size: 1rem;
      color: var(--text-body);
      max-width: 520px;
      line-height: 1.8;
    }

    .divider {
      width: 52px; height: 2px;
      background: linear-gradient(90deg, var(--gold), transparent);
      margin: 20px 0 32px;
    }

    /* ===================================================
       SCROLL REVEAL
       =================================================== */
    .reveal {
      opacity: 0; transform: translateY(28px);
      transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ===================================================
       GRAIN — très léger sur fond clair
       =================================================== */
    body::before {
      content: '';
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
      pointer-events: none; z-index: 0; opacity: 0.4;
    }

    /* ===================================================
       HEADER / NAV
       =================================================== */
    header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      padding: 0 32px; height: 72px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(244,243,239,0.90);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      transition: background var(--transition), box-shadow var(--transition);
    }
    header.scrolled {
      background: rgba(244,243,239,0.98);
      box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06);
    }

    /* ══════════════════════════════════════════════════
       📌 EMPLACEMENT LOGO — HEADER (barre de navigation)
       ══════════════════════════════════════════════════
       Pour insérer votre logo, trouvez dans le HTML la section
       avec les balises .logo-mark et .logo-text, et remplacez-les par :

           <img src="images/logo.svg" alt="Authentic Tech" height="36" />

       ✅ Format conseillé : SVG ou PNG fond transparent
       ✅ Hauteur max recommandée : 40px
       ✅ Le logo doit être lisible sur fond clair (#f4f3ef)
       ✅ Même remplacement à faire dans le FOOTER (cherchez LOGO FOOTER)
    ══════════════════════════════════════════════════ */
    .logo-wrap { display: flex; align-items: center; gap: 10px; }
    .logo-mark {
      width: 32px; height: 32px;
      border: 2px solid var(--gold);
      border-radius: 8px;
      display: grid; place-items: center;
      background: var(--gold-pale);
    }
    .logo-mark::after {
      content: 'AT';
      font-family: var(--font-display);
      font-size: 0.75rem; font-weight: 600;
      color: var(--gold);
    }
    .logo-text {
      font-family: var(--font-display);
      font-size: 1.25rem; font-weight: 400;
      color: var(--text-dark);
      letter-spacing: 0.04em;
    }
    .logo-text span { color: var(--gold); }

    nav { display: flex; align-items: center; gap: 36px; }
    nav a {
      font-size: 0.85rem; font-weight: 500;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      transition: color var(--transition);
      position: relative;
    }
    nav a::after {
      content: '';
      position: absolute; bottom: -4px; left: 0;
      width: 0; height: 1px;
      background: var(--gold);
      transition: width var(--transition);
    }
    nav a:hover { color: var(--text-dark); }
    nav a:hover::after { width: 100%; }

    .btn-nav {
      padding: 9px 22px;
      background: var(--gold);
      color: #ffffff !important;
      font-size: 0.82rem !important; font-weight: 600 !important;
      border-radius: var(--radius-sm);
      letter-spacing: 0.06em;
      transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    }
    .btn-nav:hover { background: var(--gold-deep); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
    .btn-nav::after { display: none !important; }

    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
    .hamburger span {
      display: block; width: 24px; height: 2px;
      background: var(--text-dark); border-radius: 2px;
      transition: var(--transition);
    }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    .mobile-nav {
      display: none; position: fixed;
      top: 72px; left: 0; right: 0;
      background: rgba(244,243,239,0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 24px 32px;
      flex-direction: column; gap: 20px; z-index: 99;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { font-size: 1.05rem; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--border); }
    .mobile-nav a:last-child { border: none; background: var(--gold); color: #ffffff; text-align: center; padding: 12px; border-radius: var(--radius-sm); font-weight: 600; }

    /* ===================================================
       HERO — fond ivoire, respiration légère
       =================================================== */
    #hero {
      min-height: 100vh; display: flex; align-items: center;
      position: relative; overflow: hidden; padding-top: 72px;
      background: var(--bg-page);
    }
    .hero-bg { position: absolute; inset: 0; z-index: 0; }
    .hero-bg::before {
      content: '';
      position: absolute; top: -20%; right: -10%;
      width: 680px; height: 680px;
      background: radial-gradient(circle, rgba(156,118,42,0.07) 0%, transparent 65%);
      border-radius: 50%;
      animation: breathe 8s ease-in-out infinite;
    }
    .hero-bg::after {
      content: '';
      position: absolute; bottom: 0; left: -5%;
      width: 480px; height: 480px;
      background: radial-gradient(circle, rgba(100,80,180,0.04) 0%, transparent 65%);
      border-radius: 50%;
      animation: breathe 10s ease-in-out infinite reverse;
    }
    @keyframes breathe {
      0%,100% { transform: scale(1) translateY(0); }
      50% { transform: scale(1.08) translateY(-20px); }
    }
    .hero-lines { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
    .hero-lines svg { position: absolute; top: 0; right: 0; width: 55%; opacity: 0.05; }

    .hero-inner {
      position: relative; z-index: 1;
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 60px; align-items: center; padding: 120px 0;
    }
    .hero-content {}
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 28px;
    }
    .hero-badge::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(2.6rem, 5.5vw, 4.4rem);
      font-weight: 300; color: var(--text-dark);
      line-height: 1.12; margin-bottom: 24px;
    }
    .hero-title em { font-style: italic; color: var(--gold-light); }
    .hero-title strong { font-weight: 600; }

    .hero-desc {
      font-size: 1.05rem; color: var(--text-muted);
      line-height: 1.85; margin-bottom: 44px; max-width: 480px;
    }
    .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

    .btn-primary {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 30px; background: var(--gold); color: #ffffff;
      font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
      letter-spacing: 0.06em; border-radius: var(--radius-sm);
      border: none; cursor: pointer;
      transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    }
    .btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
    .btn-primary svg { transition: transform var(--transition); }
    .btn-primary:hover svg { transform: translateX(4px); }

    .btn-ghost {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 30px; background: transparent; color: var(--text-dark);
      font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
      border: 1.5px solid var(--border-strong);
      border-radius: var(--radius-sm); cursor: pointer;
      transition: border-color var(--transition), color var(--transition), transform var(--transition);
    }
    .btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

    .hero-stats {
      display: flex; gap: 36px; margin-top: 56px;
      padding-top: 36px; border-top: 1px solid var(--border-strong);
    }
    .stat-num {
      font-family: var(--font-display); font-size: 2rem; font-weight: 600;
      color: var(--gold); line-height: 1; display: block;
    }
    .stat-label { font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.06em; margin-top: 4px; }

    .hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
    .hero-visual-frame {
      position: relative; width: 100%; max-width: 520px;
      border-radius: var(--radius-lg); overflow: hidden;
      border: 1px solid var(--border-gold);
      box-shadow: var(--shadow-gold), var(--shadow-card);
    }
    #hero-canvas-wrap { width: 100%; aspect-ratio: 4/3.2; position: relative; background: #f0ede6; }
    #hero-canvas { width: 100% !important; height: 100% !important; display: block; border-radius: var(--radius-lg); }

    .canvas-label {
      position: absolute;
      background: rgba(255,255,255,0.95);
      border: 1px solid var(--border-gold);
      border-radius: 8px; padding: 6px 12px;
      font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--gold); pointer-events: none;
      backdrop-filter: blur(8px); white-space: nowrap;
      opacity: 0; transition: opacity 0.4s ease;
      box-shadow: var(--shadow-card);
    }
    .canvas-label.show { opacity: 1; }

    .hero-badge-float {
      position: absolute; background: var(--bg-card);
      border: 1px solid var(--border-gold); border-radius: var(--radius-md);
      padding: 12px 18px; font-size: 0.8rem;
      display: flex; align-items: center; gap: 10px;
      color: var(--text-dark); box-shadow: var(--shadow-card);
    }
    .hero-badge-float .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0; animation: blink 2s ease-in-out infinite; }
    @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
    .badge-float-1 { bottom: -18px; left: -24px; animation: float1 6s ease-in-out infinite; }
    .badge-float-2 { top: -18px; right: -16px; animation: float2 7s ease-in-out infinite; }
    @keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
    @keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

    /* ===================================================
       SECTION: ABOUT
       =================================================== */
    #about {
      padding: 180px 0;
      position: relative;
      background: var(--bg-section-alt);
    }
    #about::before {
      content: '';
      position: absolute;
      left: 0; top: 50%;
      transform: translateY(-50%);
      width: 1px; height: 60%;
      background: linear-gradient(to bottom, transparent, var(--border-gold), transparent);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 80px;
      align-items: center;
    }

    .about-visual {
      position: relative;
    }
    .about-img-wrap {
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border-gold);
      position: relative;
      box-shadow: var(--shadow-gold), var(--shadow-card);
    }
    #team-canvas-wrap {
      width: 100%;
      aspect-ratio: 4/5;
      position: relative;
      background: linear-gradient(160deg, #f0eef8 0%, #e8e6f5 100%);
    }
    #team-canvas {
      width: 100% !important;
      height: 100% !important;
      display: block;
    }
    .about-accent {
      position: absolute;
      bottom: -20px; right: -20px;
      width: 140px; height: 140px;
      border: 1px solid var(--border-gold);
      border-radius: var(--radius-md);
      background: var(--gold-pale);
      z-index: -1;
    }
    .about-floating-card {
      position: absolute;
      top: 28px; right: -32px;
      background: var(--bg-card);
      border: 1px solid var(--border-gold);
      border-radius: var(--radius-md);
      padding: 16px 20px;
      min-width: 160px;
      box-shadow: var(--shadow-card-hover);
    }
    .about-floating-card .number {
      font-family: var(--font-display);
      font-size: 1.8rem;
      font-weight: 600;
      color: var(--gold);
      line-height: 1;
    }
    .about-floating-card .label {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .about-content {}
    .values-list {
      list-style: none;
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .values-list li {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      font-size: 0.95rem;
      color: var(--text-dark);
    }
    .values-list li::before {
      content: '';
      width: 18px; height: 18px;
      min-width: 18px;
      border: 1px solid var(--gold);
      border-radius: 4px;
      background: var(--gold-pale);
      margin-top: 2px;
      position: relative;
    }
    .values-list li::after {
      display: none;
    }
    /* checkmark via JS or just style */

    /* ===================================================
       SECTION: SERVICES
       =================================================== */
    #services {
      padding: 180px 0;
      position: relative;
      background: var(--bg-page);
    }

    .services-header {
      text-align: center;
      max-width: 600px;
      margin: 0 auto 96px;
    }
    .services-header .section-sub { margin: 0 auto; text-align: center; }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .service-card {
      position: relative;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border);
      cursor: default;
      min-height: 440px;
      display: flex;
      align-items: flex-end;
      transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
      background-color: #2a2820;
      background-size: cover;
      background-position: center;
    }
    .service-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(6,6,10,0.97) 0%, rgba(6,6,10,0.75) 45%, rgba(6,6,10,0.28) 100%);
      transition: background var(--transition);
      z-index: 1;
    }
    .service-card:hover .service-card-overlay {
      background: linear-gradient(to top, rgba(6,6,10,0.99) 0%, rgba(6,6,10,0.88) 55%, rgba(6,6,10,0.50) 100%);
    }
    .service-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--gold), transparent);
      opacity: 0;
      z-index: 3;
      transition: opacity var(--transition);
    }
    .service-card:hover {
      border-color: var(--border-gold);
      transform: translateY(-6px);
      box-shadow: var(--shadow-gold), var(--shadow-card);
    }
    .service-card:hover::before { opacity: 1; }
    .service-body {
      position: relative;
      z-index: 2;
      padding: 40px 34px;
      width: 100%;
    }

    /* Service icon area */
    .service-icon {
      width: 46px; height: 46px;
      border-radius: 12px;
      background: rgba(196,158,82,0.15);
      border: 1px solid var(--border-gold);
      display: grid;
      place-items: center;
      margin-bottom: 16px;
      backdrop-filter: blur(6px);
    }
    .service-icon svg { width: 22px; height: 22px; color: var(--gold); }

    /* Service number */
    .service-num {
      position: absolute;
      top: 20px; right: 22px;
      z-index: 2;
      font-family: var(--font-display);
      font-size: 3rem;
      font-weight: 300;
      color: rgba(196,158,82,0.22);
      line-height: 1;
      pointer-events: none;
      transition: color var(--transition);
    }
    .service-card:hover .service-num { color: rgba(196,158,82,0.40); }

    .service-title {
      font-family: var(--font-display);
      font-size: 1.4rem;
      font-weight: 400;
      color: #f0ede6;
      margin-bottom: 10px;
    }
    .service-desc {
      font-size: 0.85rem;
      color: rgba(240,237,230,0.72);
      line-height: 1.8;
      margin-bottom: 20px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.35s ease;
    }
    .service-card:hover .service-desc { max-height: 200px; opacity: 1; }
    .service-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--gold);
      letter-spacing: 0.06em;
      transition: gap var(--transition);
    }
    .service-link:hover { gap: 14px; }
    .service-link svg { width: 14px; }

    /* Grille services : 3 colonnes desktop, adaptatif mobile */

    /* ===================================================
       SECTION: WHY CHOOSE US
       =================================================== */
    #why {
      padding: 180px 0;
      background: var(--bg-section-alt);
    }

    .why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    .why-features {
      display: flex;
      flex-direction: column;
      gap: 32px;
      margin-top: 40px;
    }
    .why-feature {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }
    .why-feature-icon {
      width: 44px; height: 44px;
      min-width: 44px;
      border-radius: 12px;
      background: var(--gold-pale);
      border: 1px solid var(--border-gold);
      display: grid;
      place-items: center;
    }
    .why-feature-icon svg { width: 20px; height: 20px; color: var(--gold); }
    .why-feature-title {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 400;
      color: var(--text-dark);
      margin-bottom: 6px;
    }
    .why-feature-desc {
      font-size: 0.87rem;
      color: var(--text-muted);
      line-height: 1.75;
    }

    /* Testimonial card */
    .why-testimonial {
      margin-top: 64px;
      padding: 44px;
      background: var(--bg-card);
      border: 1px solid var(--border-gold);
      border-radius: var(--radius-lg);
      position: relative;
    }
    .why-testimonial::before {
      content: '\201C';
      font-family: var(--font-display);
      font-size: 5rem;
      color: var(--gold);
      opacity: 0.3;
      position: absolute;
      top: 10px; left: 24px;
      line-height: 1;
    }
    .testimonial-text {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-style: italic;
      color: var(--text-body);
      line-height: 1.7;
      padding-top: 24px;
    }
    .testimonial-author {
      margin-top: 20px;
      font-size: 0.82rem;
      color: var(--gold);
      font-weight: 600;
      letter-spacing: 0.06em;
    }

    /* ── WHY IMAGE ───────────────────────────────────────
       EMPLACEMENT IMAGE "POURQUOI NOUS" :
       Idée : graphique de croissance, illustration de processus,
       ou photo symbolisant confiance & expertise.
       Format recommandé : paysage, 560×400px, ambiance professionnelle.
       Remplacez .why-img-placeholder par une balise <img>.
    ────────────────────────────────────────────────────── */
    .why-visual {
      position: sticky;
      top: 100px;
    }
    .why-img-placeholder {
      width: 100%;
      aspect-ratio: 5/4;
      background: linear-gradient(145deg, var(--bg-raised), var(--bg-card));
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-faint);
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    /* Process steps */
    .process-steps {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin-top: 36px;
    }
    .process-step {
      display: flex;
      gap: 20px;
      position: relative;
      padding-bottom: 28px;
    }
    .process-step:last-child { padding-bottom: 0; }
    .process-step::after {
      content: '';
      position: absolute;
      left: 18px; top: 40px;
      width: 1px; height: calc(100% - 12px);
      background: linear-gradient(to bottom, var(--border-gold), transparent);
    }
    .process-step:last-child::after { display: none; }
    .step-num {
      width: 36px; height: 36px;
      min-width: 36px;
      border-radius: 50%;
      border: 1px solid var(--border-gold);
      background: var(--gold-pale);
      display: grid;
      place-items: center;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--gold);
      z-index: 1;
    }
    .step-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 4px;
    }
    .step-desc {
      font-size: 0.83rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ===================================================
       SECTION: PORTFOLIO
       =================================================== */
    #portfolio {
      padding: 180px 0;
      background: var(--bg-page);
    }

    .portfolio-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 72px;
    }

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-template-rows: auto;
      gap: 20px;
    }

    /* ══════════════════════════════════════════════════
       📌 PORTFOLIO — Comment ajouter vos réalisations
       ══════════════════════════════════════════════════
       Cherchez "Projet principal", "Projet 2", etc. dans le HTML.
       Remplacez chaque <div class="port-placeholder"> par :

       <img src="images/projet-1.webp"
            alt="Nom de votre réalisation"
            style="width:100%; height:100%; object-fit:cover; display:block;" />

       Mettez aussi à jour :
       • .port-cat  → Catégorie (ex: "Site E-commerce")
       • .port-name → Nom du projet (ex: "Boutique Mode Paris")

       Dimensions recommandées :
       • Projet 1 (grande case) → 900×420px
       • Projets 2 à 5          → 450×360px
    ══════════════════════════════════════════════════ */
    .portfolio-item {
      position: relative;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--border);
      cursor: pointer;
      group: true;
    }
    .portfolio-item:nth-child(1) { grid-column: span 8; }
    .portfolio-item:nth-child(2) { grid-column: span 4; }
    .portfolio-item:nth-child(3) { grid-column: span 4; }
    .portfolio-item:nth-child(4) { grid-column: span 4; }
    .portfolio-item:nth-child(5) { grid-column: span 4; }

    .port-placeholder {
      width: 100%;
      min-height: 280px;
      background: linear-gradient(135deg, #ece9e0, #e2dfd5);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-faint);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: transform var(--transition);
    }
    .portfolio-item:nth-child(1) .port-placeholder { min-height: 360px; }

    .portfolio-item:hover .port-placeholder { transform: scale(1.03); }

    .port-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, transparent 55%);
      opacity: 0;
      transition: opacity var(--transition);
      display: flex;
      align-items: flex-end;
      padding: 24px;
    }
    .portfolio-item:hover .port-overlay { opacity: 1; }

    .port-info {}
    .port-cat {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 4px;
    }
    .port-name {
      font-family: var(--font-display);
      font-size: 1.2rem;
      color: #f0ede6;
    }

    /* ===================================================
       SECTION: CONTACT
       =================================================== */
    #contact {
      padding: 180px 0;
      background: var(--bg-section-alt);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 80px;
      align-items: start;
    }

    .contact-info {}
    .contact-channels {
      margin-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .contact-channel {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 22px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-card);
      transition: border-color var(--transition);
    }
    .contact-channel:hover { border-color: var(--border-gold); }
    .channel-icon {
      width: 40px; height: 40px;
      min-width: 40px;
      border-radius: 10px;
      background: var(--gold-pale);
      border: 1px solid var(--border-gold);
      display: grid;
      place-items: center;
    }
    .channel-icon svg { width: 18px; height: 18px; color: var(--gold); }
    .channel-label {
      font-size: 0.75rem;
      color: var(--text-faint);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .channel-value {
      font-size: 0.95rem;
      color: var(--text-dark);
      margin-top: 2px;
    }

    /* ══════════════════════════════════════════════════
       📌 FORMULAIRE DE CONTACT — Configuration Formspree
       ══════════════════════════════════════════════════
       ÉTAPE 1 : Créez un compte GRATUIT sur https://formspree.io
       ÉTAPE 2 : Cliquez "New Form" et donnez-lui un nom
       ÉTAPE 3 : Copiez votre identifiant (ex: xabcdefg)
       ÉTAPE 4 : Dans le HTML, remplacez YOUR_FORM_ID :
                 action="https://formspree.io/f/xabcdefg"
       ÉTAPE 5 : Vérifiez votre email pour confirmer Formspree
       ✅ Vous recevrez les messages directement par email
    ══════════════════════════════════════════════════ */
    .contact-form-wrap {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 64px 56px;
      position: relative;
      overflow: hidden;
    }
    .contact-form-wrap::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
    }
    .form-title {
      font-family: var(--font-display);
      font-size: 1.6rem;
      font-weight: 400;
      color: var(--text-dark);
      margin-bottom: 6px;
    }
    .form-sub {
      font-size: 0.87rem;
      color: var(--text-muted);
      margin-bottom: 36px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 20px;
    }
    .form-group:last-child { margin-bottom: 0; }
    .form-label {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
    }
    .form-input,
    .form-select,
    .form-textarea {
      background: var(--bg-raised);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 13px 16px;
      color: var(--text-dark);
      font-family: var(--font-body);
      font-size: 0.92rem;
      outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
      width: 100%;
    }
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(196,158,82,0.12);
    }
    .form-input::placeholder,
    .form-textarea::placeholder { color: var(--text-faint); }
    .form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c49e52' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
    .form-select option { background: var(--bg-card); color: var(--text-dark); }
    .form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

    .form-submit {
      width: 100%;
      padding: 15px 32px;
      background: var(--gold);
      color: #ffffff;
      font-family: var(--font-body);
      font-size: 0.92rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .form-submit:hover {
      background: var(--gold-deep);
      transform: translateY(-2px);
      box-shadow: var(--shadow-gold);
    }

    .form-success {
      display: none;
      text-align: center;
      padding: 40px 20px;
    }
    .form-success .success-icon {
      width: 60px; height: 60px;
      border-radius: 50%;
      background: rgba(74,222,128,0.15);
      border: 2px solid rgba(74,222,128,0.4);
      display: grid;
      place-items: center;
      margin: 0 auto 20px;
    }
    .form-success .success-icon svg { width: 28px; color: #4ade80; }
    .form-success h3 {
      font-family: var(--font-display);
      font-size: 1.5rem;
      color: var(--text-dark);
      margin-bottom: 8px;
    }
    .form-success p { color: var(--text-muted); font-size: 0.92rem; }

    /* ===================================================
       FOOTER
       =================================================== */
    footer {
      background: var(--bg-footer);
      border-top: none;
      padding: 96px 0 48px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.8fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 52px;
    }
    .footer-brand .logo-wrap { margin-bottom: 18px; }
    .footer-tagline {
      font-size: 0.88rem;
      color: rgba(240,237,230,0.55);
      line-height: 1.75;
      max-width: 260px;
    }
    .footer-socials {
      display: flex;
      gap: 12px;
      margin-top: 24px;
    }
    .social-link {
      width: 36px; height: 36px;
      border: 1px solid rgba(240,237,230,0.15);
      border-radius: var(--radius-sm);
      display: grid;
      place-items: center;
      color: rgba(240,237,230,0.45);
      transition: border-color var(--transition), color var(--transition);
    }
    .social-link:hover { border-color: var(--gold); color: var(--gold); }
    .social-link svg { width: 16px; }

    .footer-col-title {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #f0ede6;
      margin-bottom: 20px;
    }
    .footer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .footer-links a {
      font-size: 0.87rem;
      color: rgba(240,237,230,0.50);
      transition: color var(--transition);
    }
    .footer-links a:hover { color: var(--gold); }

    .footer-bottom {
      padding-top: 28px;
      border-top: 1px solid rgba(240,237,230,0.10);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .footer-copy {
      font-size: 0.80rem;
      color: rgba(240,237,230,0.35);
    }
    .footer-copy a { color: var(--gold); }

    /* ===================================================
       WHATSAPP FLOATING BUTTON
       =================================================== */
    .whatsapp-float {
      position: fixed;
      bottom: 28px; right: 28px;
      z-index: 200;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
    }

    .wa-tooltip {
      background: var(--bg-card);
      border: 1px solid var(--border-gold);
      border-radius: var(--radius-md);
      padding: 12px 16px;
      font-size: 0.82rem;
      color: var(--text-dark);
      white-space: nowrap;
      box-shadow: var(--shadow-card-hover);
      opacity: 0;
      transform: translateY(6px) scale(0.95);
      transition: opacity 0.25s, transform 0.25s;
      pointer-events: none;
    }
    .wa-tooltip.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }
    .wa-tooltip strong {
      display: block;
      color: var(--gold);
      font-size: 0.78rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .wa-btn {
      width: 58px; height: 58px;
      border-radius: 50%;
      background: #25D366;
      color: #fff;
      display: grid;
      place-items: center;
      cursor: pointer;
      box-shadow: 0 6px 28px rgba(37,211,102,0.40);
      transition: transform var(--transition), box-shadow var(--transition);
      border: none;
      position: relative;
    }
    .wa-btn::before {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px solid rgba(37,211,102,0.35);
      animation: wa-pulse 2.5s ease-in-out infinite;
    }
    @keyframes wa-pulse {
      0%,100% { opacity: 0.7; transform: scale(1); }
      50% { opacity: 0; transform: scale(1.35); }
    }
    .wa-btn:hover { transform: scale(1.08); box-shadow: 0 8px 36px rgba(37,211,102,0.55); }
    .wa-btn svg { width: 28px; }

    /* ===================================================
       RESPONSIVE
       =================================================== */
    @media (max-width: 1024px) {
      .services-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    }

    @media (max-width: 768px) {
      nav { display: none; }
      .hamburger { display: flex; }

      .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 80px 0; }
      .hero-visual { order: -1; }
      .hero-visual-frame { max-width: 100%; }
      .badge-float-1, .badge-float-2 { display: none; }
      .hero-stats { flex-wrap: wrap; gap: 24px; }

      .about-grid { grid-template-columns: 1fr; gap: 48px; }
      .about-floating-card { display: none; }

      .services-grid { grid-template-columns: 1fr; }

.why-grid {
  grid-template-columns: 1fr;
  gap: 48px;
}

.why-visual {
  position: static;
  display: block;
}

.why-visual .why-animation {
  max-width: 320px;
  margin: 0 auto;
}

.hero-inner,
.about-grid,
.why-grid,
.contact-grid {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

      .portfolio-grid { grid-template-columns: 1fr 1fr; }
      .portfolio-item:nth-child(1),
      .portfolio-item:nth-child(2),
      .portfolio-item:nth-child(3),
      .portfolio-item:nth-child(4),
      .portfolio-item:nth-child(5) { grid-column: span 1; }

      .contact-grid { grid-template-columns: 1fr; gap: 48px; }
      .contact-form-wrap { padding: 40px 28px; }
      .form-row { grid-template-columns: 1fr; }

      .portfolio-header { flex-direction: column; align-items: flex-start; gap: 20px; }

      .footer-grid { grid-template-columns: 1fr; gap: 32px; }
      .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    }

    @media (max-width: 480px) {
      .container { padding: 0 20px; }
      header { padding: 0 20px; }
      .hero-cta { flex-direction: column; }
      .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
      .portfolio-grid { grid-template-columns: 1fr; }
    }

    /* ===================================================
       BOUTON RETOUR EN HAUT
       =================================================== */
    .back-to-top {
      position: fixed;
      bottom: 100px; right: 28px;
      z-index: 9999;
      width: 48px; height: 48px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border-gold);
      color: var(--gold);
      display: grid;
      place-items: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
                  background var(--transition), box-shadow var(--transition), color var(--transition);
      outline: none;
      -webkit-tap-highlight-color: transparent;
    }
    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .back-to-top:hover,
    .back-to-top:focus {
      background: var(--gold);
      color: #ffffff;
      box-shadow: var(--shadow-gold);
    }
    .back-to-top svg { width: 20px; pointer-events: none; }

    /* ===================================================
       VALIDATION FORMULAIRE EN TEMPS RÉEL
       =================================================== */
    .form-input.valid,
    .form-select.valid,
    .form-textarea.valid {
      border-color: #4ade80;
      box-shadow: 0 0 0 3px rgba(74,222,128,0.10);
    }
    .form-input.invalid,
    .form-select.invalid,
    .form-textarea.invalid {
      border-color: #f87171;
      box-shadow: 0 0 0 3px rgba(248,113,113,0.10);
    }
    .form-hint {
      font-size: 0.75rem;
      margin-top: 5px;
      min-height: 18px;
      transition: color 0.2s;
    }
    .form-hint.ok  { color: #4ade80; }
    .form-hint.err { color: #f87171; }

    /* ===================================================
       CARTES SERVICES — TOUCH MOBILE
       =================================================== */
    @media (hover: none) {
      /* Sur mobile/tactile : description toujours visible */
      .service-desc {
        max-height: 300px !important;
        opacity: 1 !important;
      }
      /* Léger feedback au tap */
      .service-card:active {
        transform: scale(0.98);
        border-color: var(--border-gold);
      }
      /* Carte ouverte au tap */
      .service-card.touch-open {
        border-color: var(--border-gold);
        box-shadow: var(--shadow-gold), var(--shadow-card);
      }
      .service-card.touch-open::before { opacity: 1; }
    }

    /* ===================================================
       SCROLLBAR
       =================================================== */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg-page); }
    ::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }

.hero-animation,
.about-animation,
.why-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-animation lottie-player,
.about-animation lottie-player,
.why-animation lottie-player {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 420px;
}

.about-animation lottie-player,
.why-animation lottie-player {
  max-width: 100%;
}