/* ============================================================
   Divinemenciel — Page d'accueil (fidèle à la maquette)
   Converti depuis home/home.css.
   ============================================================ */

   .page-main { position: relative; z-index: 1; background: var(--blanc-amande); }

   .section { padding: 106px 0; }
   .section-head { margin-bottom: 48px; }
   .section-title {
     font-family: var(--font-text);
     font-weight: var(--w-thin);
     font-size: clamp(40px, 11.5vw, 52px);
     line-height: 1.18;
     margin: 0;
     max-width: 28em;
   }
   
   /* ============ PAGE RÉALISATIONS : intro + ajustements de grille ============ */
   .page-intro { border-top: none; padding-top: clamp(98px, 10.5vh, 132px); padding-bottom: clamp(32px, 3.5vw, 56px); }
   .page-intro .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
   .works-page-title {
     font-family: var(--font-display);
     font-weight: 400;
     font-style: normal;
     text-transform: uppercase;
     color: var(--orange-patate);
     font-size: clamp(56px, 13.5vw, 150px);
     line-height: 0.9;
     letter-spacing: 0.005em;
     margin: 0;
   }
   .works-page-count { font-size: 0.3em; vertical-align: super; letter-spacing: 0; margin-left: 0.1em; }
   .about-lead-sub {
     font-family: var(--font-text);
     font-weight: var(--w-thin);
     font-size: clamp(16px, 1.4vw, 21px);
     line-height: 1.55;
     color: var(--vert-olive-80);
     max-width: 56ch;
     margin: 0;
   }
   .works-page-grid { padding-top: clamp(48px, 5vw, 80px); }
   .realisations-page .page-intro .section-head { margin-bottom: clamp(8px, 1vw, 16px); }
   @media (min-width: 981px) {
     .realisations-page .page-intro .container,
     .realisations-page #realisations .container {
       padding-left: max(16px, 7vw);
       padding-right: max(16px, 7vw);
     }
     .realisations-page .works-grid {
       grid-template-columns: repeat(5, 1fr);
       row-gap: clamp(26px, 2.6vw, 40px);
       align-items: start;
     }
     .realisations-page .wg-1-2 { grid-column: 1 / span 2; }
     .realisations-page .wg-2-2 { grid-column: 2 / span 2; }
     .realisations-page .wg-3-2 { grid-column: 3 / span 2; }
     .realisations-page .wg-4-2 { grid-column: 4 / span 2; }
     .realisations-page .wg-1-1 { grid-column: 1 / span 1; }
     .realisations-page .wg-3-1 { grid-column: 3 / span 1; }
     .realisations-page .wg-5-1 { grid-column: 5 / span 1; }
     .realisations-page .works-grid .work-card { margin-top: 0; }
   }
   @media (max-width: 980px) {
     .realisations-page .section.page-intro { padding-top: clamp(180px, 32vh, 260px); }
   }
   @media (min-width: 981px) {
     .realisations-page .section.page-intro { padding-top: clamp(150px, 22vh, 300px); }
   }
   
   /* ============ HERO ============ */
   .hero {
     position: relative;
     height: calc(100vh + 48px);
     min-height: 600px;
     overflow: hidden;
     background: var(--blanc-amande);
   }
   .hero-video, .hero-img {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 0;
   }
   .hero-video { opacity: 0; transition: opacity 700ms ease; }
   .hero-video.is-ready { opacity: 1; }
   .hero-shader { position: absolute; inset: 0; z-index: 1; }
   .hero-shader-canvas { display: block; width: 100%; height: 100%; }
   .hero-overlay {
     position: absolute;
     inset: 0;
     z-index: 2;
     background: rgba(26, 58, 43, 0.1);
   }
   .hero-bienvenue {
     display:none ;
     position: absolute;
     top: 11.6%;
     left: 50%;
     transform: translateX(-50%);
     white-space: nowrap;
     font-family: var(--font-display);
     font-style: italic;
     font-weight: 400;
     font-size: 36.5vw;
     line-height: 1.12;
     letter-spacing: -0.08em;
     color: transparent;
     -webkit-text-stroke: 1.5px color-mix(in srgb, var(--orange-patate) 70%, transparent);
     pointer-events: none;
     z-index: 3;
   }
   .hero-center {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, calc(-50% + 25px));
     z-index: 4;
     width: min(1180px, 94vw);
     text-align: center;
   }
   .hero-logo { width: min(440px, 82vw); height: auto; margin: 0 auto 22px; }
   .hero-center h1 {
     font-family: var(--font-text);
     font-weight: var(--w-strong);
     font-size: clamp(22px, 1.88vw, 36px);
     line-height: 1.12;
     color: #ffffff;
     margin: 0;
     white-space: nowrap;
   }
   @media (max-width: 640px) {
     .hero-center h1 { white-space: normal; }
   }
   @media (prefers-reduced-motion: no-preference) {
     .hero-bienvenue { animation: dmHeroFade 1.2s ease 0.2s, dmBienvenueHue 18s ease-in-out infinite; }
     @keyframes dmBienvenueHue {
       0%, 100% { -webkit-text-stroke-color: color-mix(in srgb, var(--orange-patate) 70%, transparent); }
       33%      { -webkit-text-stroke-color: color-mix(in srgb, var(--jaune-mousse) 70%, transparent); }
       66%      { -webkit-text-stroke-color: color-mix(in srgb, var(--rose-sorbet) 70%, transparent); }
     }
     .hero-center { animation: dmHeroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s; }
     @keyframes dmHeroFade { 0%, 8% { opacity: 0; } 100% { opacity: 1; } }
     @keyframes dmHeroRise {
       0%, 6% { opacity: 0; transform: translate(-50%, calc(-50% + 55px)); }
       100% { opacity: 1; transform: translate(-50%, calc(-50% + 25px)); }
     }
   }
   
   /* ============ MANIFESTE (révélation mot à mot) ============ */
   .manifesto { padding: 0; position: relative; z-index: 2; margin-top: -48px; }
   .manifesto-card {
     background: var(--orange-patate);
     color: var(--blanc-casse);
     border-radius: 28px;
     padding: clamp(60px, 7vw, 110px) clamp(32px, 7vw, 130px);
     transition: background 320ms ease;
   }
   .manifesto p {
     margin: 0 auto;
     max-width: 1040px;
     text-align: center;
     font-family: var(--font-text);
     font-weight: var(--w-thin);
     font-size: clamp(23px, 2.7vw, 33.4px);
     line-height: 1.32;
   }
   .manifesto .w { opacity: 0.22; transition: opacity 320ms ease; }
   .manifesto .w.on { opacity: 1; }
   .manifesto .w.acc {
     font-family: var(--font-display);
     font-style: italic;
     font-size: 1.08em;
     line-height: 0;
   }
   .manif-poles {
     margin: clamp(40px, 5vw, 72px) auto 0;
     max-width: 1200px;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
   }
   .manif-pole {
     display: flex;
     flex-direction: column;
     gap: 7px;
     padding: clamp(20px, 2.2vw, 30px) clamp(14px, 1.6vw, 24px);
     text-align: center;
     border-left: 1px solid color-mix(in srgb, var(--blanc-casse) 22%, transparent);
     transition: background 260ms ease;
   }
   .manif-pole:first-child { border-left: none; }
   .mp-picto-slot { display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; }
   .mp-picto {
     display: block;
     height: auto;
     width: 90px; /* valeur de repli tant que home.js n'a pas mesuré */
     transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
     transform-origin: center bottom;
   }
   .manif-pole:hover .mp-picto { transform: translateY(-6px) rotate(-2deg) scale(1.05); }
   .mp-name {
     font-family: var(--font-display);
     font-style: italic;
     font-weight: 400;
     font-size: clamp(22.8px, 1.8vw, 28.8px);
     line-height: 1.05;
     color: var(--blanc-casse);
   }
   .mp-items {
     font-family: var(--font-text);
     font-weight: var(--w-thin);
     font-size: clamp(11px, 0.85vw, 13px);
     letter-spacing: 0.01em;
     line-height: 1.4;
     color: color-mix(in srgb, var(--blanc-casse) 80%, transparent);
     white-space: pre-line;
   }
   /* Le survol change le fond de toute .manifesto-card (pas juste du pôle) — voir home.js */
   @media (max-width: 720px) {
     .manif-poles { grid-template-columns: repeat(2, 1fr); }
     .manif-pole:nth-child(3) { border-left: none; }
     .manif-pole:nth-child(odd) { border-left: none; }
   }
   @media (max-width: 560px) {
     .manif-poles { grid-template-columns: 1fr; gap: 8px; }
     .manif-pole { border-left: none; padding: 22px 14px; gap: 10px; }
     .mp-picto-slot { height: auto !important; margin-bottom: 18px; }
     .mp-picto { width: 60px !important; height: auto !important; }
     .mp-name { font-size: 32px; }
     .mp-items { font-size: 15px; }
   }
   
   /* ============ NOS PROJETS (grille asymétrique 5 pistes + doodles) ============ */
   .works-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     column-gap: var(--gutter);
     row-gap: clamp(40px, 4vw, 64px);
     align-items: start;
   }
   .work-empty { display: none; }
   .work-doodle { display: block; width: auto; height: auto; max-width: min(48%, 130px); max-height: 188px; opacity: 0.9; }
   .work-doodle-wide { max-width: min(72%, 210px); }
   @media (prefers-reduced-motion: no-preference) {
     .work-doodle { transform-origin: center bottom; }
     .work-doodle:hover { animation: dmDoodleShake 0.4s ease-in-out 0s 5; }
     @keyframes dmDoodleShake {
       0%, 100% { transform: rotate(0deg) translateX(0); }
       20% { transform: rotate(-5deg) translateX(-2px); }
       40% { transform: rotate(4.5deg) translateX(2px); }
       60% { transform: rotate(-3.5deg) translateX(-1.5px); }
       80% { transform: rotate(3deg) translateX(1.5px); }
     }
   }
   @media (min-width: 981px) {
     .work-empty { display: flex; align-items: center; justify-content: center; align-self: stretch; padding: clamp(16px, 2.5vw, 44px); }
     .works-grid .work-card:nth-of-type(2) { margin-top: 64px; }
     .works-grid .work-card:nth-of-type(3) { margin-top: 24px; }
     .works-grid .work-card:nth-of-type(4) { margin-top: 88px; }
     .works-grid .work-card:nth-of-type(5) { margin-top: 36px; }
     .works-grid .work-card:nth-of-type(6) { margin-top: 76px; }
   }
   @media (min-width: 981px) {
     .works-section .works-grid { grid-template-columns: repeat(5, 1fr); }
     .works-section .wg-1-2 { grid-column: 1 / span 2; }
     .works-section .wg-2-2 { grid-column: 2 / span 2; }
     .works-section .wg-3-2 { grid-column: 3 / span 2; }
     .works-section .wg-4-2 { grid-column: 4 / span 2; }
     .works-section .wg-1-1 { grid-column: 1 / span 1; }
     .works-section .wg-3-1 { grid-column: 3 / span 1; }
     .works-section .wg-5-1 { grid-column: 5 / span 1; }
     .works-section .container { padding-left: max(16px, 7vw); padding-right: max(16px, 7vw); }
   }
   .work-card { cursor: pointer; }
   .work-img { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
   .work-img img {
     position: absolute; inset: 0; width: 100%; height: 100%;
     object-fit: cover;
     transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
   }
   .work-img::after {
     content: "";
     position: absolute; z-index: 2; inset: 0;
     border: 0 solid var(--wc, var(--vert-olive));
     border-radius: inherit;
     pointer-events: none;
     transition: border-width 260ms cubic-bezier(0.22, 1, 0.36, 1);
   }
   .work-card:hover .work-img::after { border-width: 8px; }
   .work-card:hover .work-img img { transform: scale(1.035); }
   .work-video {
     position: absolute; inset: 0; width: 100%; height: 100%;
     object-fit: cover;
     opacity: 0;
     transition: opacity 320ms ease;
     z-index: 1;
     pointer-events: none;
   }
   .work-card:hover .work-video { opacity: 1; }
   
   .work-slideshow {
     position: absolute; inset: 0;
     opacity: 0;
     transition: opacity 320ms ease;
     z-index: 1;
     pointer-events: none;
   }
   .work-card:hover .work-slideshow { opacity: 1; }
   .work-slide {
     position: absolute; inset: 0; width: 100%; height: 100%;
     object-fit: cover;
     opacity: 0;
     transition: opacity 120ms linear;
   }
   .work-slide.is-active { opacity: 1; }
   .work-link { position: absolute; inset: 0; z-index: 3; }
   .work-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 12px; }
   .work-title {
     font-family: var(--font-text);
     font-weight: var(--w-strong);
     font-size: clamp(26px, 1.98vw, 38px);
     line-height: 1;
     letter-spacing: -0.01em;
     margin: 0 0 10px 0;
     hyphens: none;
   }
   .work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
   .work-num { font-family: var(--font-text); font-size: clamp(16px, 1.09vw, 21px); line-height: 1.2; color: var(--vert-olive); white-space: nowrap; }
   .works-end { margin-top: clamp(44px, 5vw, 72px); display: flex; justify-content: center; }
   @media (max-width: 980px) {
     .works-grid { grid-template-columns: 1fr; }
     .works-grid .work-card { margin-top: 0 !important; }
   }
   
   /* — Titres lettre par lettre (roll vertical au survol), généré par home.js — */
   .ft { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; height: 1.2em; }
   .ft-roll { display: inline-flex; flex-direction: column; transition: transform 480ms cubic-bezier(0.76, 0, 0.24, 1); }
   .ft-roll span { display: block; line-height: 1.2; }
   @media (prefers-reduced-motion: no-preference) {
     .work-card:hover .ft-roll { transform: translateY(-50%); }
   }
   
   /* Pastille métier (footer + manifeste + cartes projet) */
   .metier-pastille {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 5px 12px;
     border-radius: var(--radius-pill);
     font-family: var(--font-text);
     font-size: var(--text-caption);
     font-weight: var(--w-strong);
     text-transform: uppercase;
     letter-spacing: var(--tracking-caps);
     color: var(--blanc-casse);
   }
   .metier-pastille.pole-studio { background: var(--rose-sorbet); color: var(--vin-rouge); }
   .metier-pastille.pole-comm { background: var(--orange-patate); }
   .metier-pastille.pole-presse { background: var(--vert-pesto); }
   .metier-pastille.pole-event { background: var(--vert-olive); }
   
   /* ============ CLIENTS ============ */
   .clients-block { padding: 0; }
   .clients-card { background: var(--rose-sorbet); color: var(--vin-rouge); border-radius: 28px; padding: 106px 0; }
   .clients-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
   .clients-title { max-width: none; font-size: clamp(23px, 2.7vw, 33.4px); color: var(--blanc-casse); }
   .clients-title em { font-family: var(--font-display); font-style: italic; font-size: 1.06em; line-height: 0; color: var(--jaune-mousse); }
   .clients-marquee { position: relative; overflow: hidden; max-width: 1320px; margin: 40px auto 0; }
   .clients-marquee::before, .clients-marquee::after {
     content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 1; pointer-events: none;
   }
   .clients-marquee::before { left: 0; background: linear-gradient(to right, var(--rose-sorbet), transparent); }
   .clients-marquee::after { right: 0; background: linear-gradient(to left, var(--rose-sorbet), transparent); }
   .clients-track { display: flex; align-items: center; gap: clamp(72px, 7.5vw, 120px); width: max-content; padding-right: clamp(72px, 7.5vw, 120px); }
   @media (prefers-reduced-motion: no-preference) {
     .clients-track { animation: dmClientsScroll 72s linear infinite; }
     @keyframes dmClientsScroll { to { transform: translateX(-50%); } }
   }
   .client-logo {
     display: block;
     cursor: pointer;
     flex: none;
     opacity: 0.92;
     background-color: #ffffff;
     -webkit-mask-repeat: no-repeat;
     mask-repeat: no-repeat;
     -webkit-mask-position: center;
     mask-position: center;
     -webkit-mask-size: contain;
     mask-size: contain;
     transition: background-color 200ms ease, opacity 180ms ease;
   }
   .client-logo:hover { opacity: 1; background-color: var(--jaune-mousse); }
   
   /* ============ TÉMOIGNAGES (marquee glissable + défilement continu) ============ */
   .testi-section { padding-bottom: 110px; }
   .testi-marquee {
     overflow-x: auto;
     overflow-y: hidden;
     width: 100%;
     cursor: grab;
     touch-action: pan-x;
     -webkit-overflow-scrolling: touch;
     scrollbar-width: none;
     -ms-overflow-style: none;
     -webkit-user-select: none;
     user-select: none;
   }
   .testi-marquee::-webkit-scrollbar { display: none; }
   .testi-marquee.is-grabbing { cursor: grabbing; }
   .testi-track { display: flex; gap: calc(var(--gap) + 28px); width: max-content; padding: 2px 0; }
   .wa-card {
     width: 384px;
     flex: none;
     display: flex;
     flex-direction: column;
     border: 2px solid var(--wa-accent, var(--vert-olive));
     border-radius: 18px;
     overflow: hidden;
   }
   .wa-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--wa-accent, var(--vert-olive)); color: var(--blanc-casse); }
   .wa-avatar {
     flex: none; width: 42px; height: 42px; border-radius: 50%;
     display: flex; align-items: center; justify-content: center;
     overflow: hidden;
     font-family: var(--font-text);
     font-weight: var(--w-strong);
     font-size: 18px;
     background: color-mix(in srgb, currentColor 18%, transparent);
   }
   .wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
   .wa-id { display: flex; flex-direction: column; gap: 1px; }
   .wa-name { font-family: var(--font-text); font-weight: var(--w-strong); font-size: 16px; }
   .wa-status { font-family: var(--font-text); font-weight: var(--w-thin); font-size: 12px; color: color-mix(in srgb, currentColor 78%, transparent); }
   .wa-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; }
   .wa-bubble { position: relative; max-width: 84%; padding: 8px 12px 6px; border-radius: 12px; box-shadow: 0 1px 1px rgba(26, 58, 43, 0.12); }
   .wa-bubble p { margin: 0; font-family: var(--font-text); font-weight: var(--w-thin); font-size: 15px; line-height: 1.36; }
   .wa-bubble.in { align-self: flex-start; background: #ffffff; color: var(--vert-olive); border-top-left-radius: 3px; }
   .wa-bubble.out { align-self: flex-end; background: var(--jaune-mousse); color: var(--vert-olive); border-top-right-radius: 3px; }
   
   /* ============ DOUBLE CTA ============ */
   .cta-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 52px; }
   .cta-head .section-title { max-width: 22em; }
   .cta-head .section-title em {
     font-family: var(--font-display);
     font-style: italic;
     font-size: 1.06em;
     line-height: 0;
     color: var(--rose-sorbet);
   }
   .cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
   .cta-card {
     display: flex; flex-direction: column; gap: 16px;
     min-height: 300px;
     border-radius: 24px;
     padding: clamp(32px, 3.4vw, 48px);
     transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
   }
   .cta-card:hover { transform: translateY(-5px); }
   .cta-rdv { background: var(--orange-patate); color: var(--blanc-casse); }
   .cta-simu { background: var(--jaune-mousse); color: var(--vert-olive); }
   .cta-over { font-family: var(--font-text); font-size: var(--text-small); font-weight: var(--w-strong); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
   .cta-rdv .cta-over { color: var(--jaune-mousse); }
   .cta-simu .cta-over { color: var(--orange-patate); }
   .cta-card-title { font-family: var(--font-text); font-weight: var(--w-thin); font-size: clamp(26px, 2.5vw, 38px); line-height: 1.14; letter-spacing: -0.01em; margin: 0; }
   .cta-btn {
     margin-top: auto; align-self: flex-start;
     display: inline-flex; align-items: center; gap: 12px;
     font-family: var(--font-text); font-weight: var(--w-strong); font-size: 16px;
     padding: 15px 28px; border-radius: 999px; white-space: nowrap;
     transition: gap 200ms ease, background 200ms ease, color 200ms ease;
   }
   .cta-rdv .cta-btn { background: var(--jaune-mousse); color: var(--vert-olive); }
   .cta-simu .cta-btn { background: var(--vert-olive); color: var(--jaune-mousse); }
   .cta-rdv:hover .cta-btn { gap: 18px; background: var(--rose-sorbet); color: var(--blanc-casse); }
   .cta-simu:hover .cta-btn { gap: 18px; background: var(--orange-patate); color: var(--blanc-casse); }
   @media (max-width: 760px) { .cta-grid { grid-template-columns: 1fr; } }
   
   /* Variante 3 colonnes (page Contact) + 3ᵉ couleur "recrutement" */
   .cta-grid-3 { grid-template-columns: repeat(3, 1fr); }
   .cta-job { background: var(--vert-pesto); color: var(--blanc-casse); }
   .cta-job .cta-over { color: var(--jaune-mousse); }
   .cta-job .cta-btn { background: var(--jaune-mousse); color: var(--vert-olive); }
   .cta-job:hover .cta-btn { gap: 18px; background: var(--orange-patate); color: var(--blanc-casse); }
   @media (max-width: 980px) { .cta-grid-3 { grid-template-columns: 1fr; } }
   
   /* ============ BLOC CONTACT PLEIN ÉCRAN ============ */
   .contact-hero {
     position: relative;
     height: 62vh;
     min-height: 440px;
     overflow: hidden;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     background: var(--vert-olive);
   }
   .contact-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
   .contact-overlay { position: absolute; inset: 0; background: rgba(26, 58, 43, 0.32); }
   .contact-content { position: relative; z-index: 1; color: var(--blanc-casse); display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 var(--gutter); }
   .contact-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 5.4vw, 66.8px); line-height: 1.06; letter-spacing: var(--tracking-display); margin: 0; }
   .contact-title em, .contact-title .accent { font-style: italic; color: var(--jaune-mousse); }