/*
Theme Name: Zalama Pharma
Theme URI: https://zalamapharma.example
Author: Zalama Pharma SARL
Description: Thème sur-mesure pour Zalama Pharma SARL — agence de promotion et de représentation pharmaceutique au Mali. Identité bleu médical / turquoise, typographie sans-serif moderne, sans builder ni framework CSS.
Version: 2.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zalama-pharma
*/

/* ---------- Design tokens ---------- */
:root{
  --bg: oklch(98.5% 0.005 250);
  --bg-alt: oklch(96.5% 0.012 250);
  --ink: oklch(22% 0.03 260);
  --ink-soft: oklch(45% 0.03 260);
  --line: oklch(89% 0.012 250);

  --blue: oklch(47% 0.19 263);
  --blue-dark: oklch(37% 0.16 263);
  --blue-tint: oklch(93% 0.035 263);
  --blue-tint-2: oklch(97% 0.015 263);

  --green: oklch(52% 0.16 141);
  --green-dark: oklch(42% 0.14 141);
  --green-tint: oklch(93% 0.05 141);


  --max: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; border-radius:2px; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope', system-ui, -apple-system, sans-serif;
  font-size:16px;
  line-height:1.55;
}
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3{ font-family:'Manrope', system-ui, sans-serif; font-weight:800; margin:0 0 .5em; line-height:1.14; letter-spacing:-0.02em; }
p{ margin:0 0 1em; }
a{ color:var(--blue); text-decoration:none; }
a:hover{ color:var(--blue-dark); }
ul{ margin:0; padding:0; list-style:none; }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--blue); color:#fff; padding:12px 20px; z-index:100; }
.skip-link:focus{ left:12px; top:12px; }

/* ---------- Scroll progress ---------- */
.scroll-progress{ position:fixed; top:0; left:0; height:3px; width:100%; background:linear-gradient(90deg, var(--blue), var(--green)); transform:scaleX(0); transform-origin:left; z-index:50; }

/* ---------- Layout ---------- */
.wrap{ max-width:var(--max); margin:0 auto; padding:0 40px; }
.section{ padding:104px 0; }
.section-alt{ background:var(--bg-alt); }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--blue); margin-bottom:16px; padding:6px 14px; border-radius:999px; background:var(--blue-tint); }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:38px; }
.lede{ font-size:17px; line-height:1.7; color:var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn{ position:relative; display:inline-flex; align-items:center; gap:8px; padding:16px 30px; border-radius:999px; font-size:15px; font-weight:700; border:1px solid transparent; white-space:nowrap; cursor:pointer; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, border-color .2s ease; }
.btn-primary{ background:var(--blue); color:#fff !important; box-shadow:0 8px 20px -8px oklch(47% 0.19 263 / .5); }
.btn-primary:hover{ background:var(--blue-dark); color:#fff !important; transform:translateY(-2px); box-shadow:0 14px 28px -10px oklch(37% 0.16 263 / .55); }
.btn-primary:active{ transform:translateY(0); }
.btn-ghost{ background:#fff; color:var(--ink) !important; border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue) !important; transform:translateY(-2px); }
.btn-ghost:active{ transform:translateY(0); }
.btn.is-loading{ color:transparent !important; pointer-events:none; }
.btn.is-loading::after{ content:""; position:absolute; width:16px; height:16px; border-radius:50%; border:2px solid oklch(100% 0 0 / .5); border-top-color:#fff; animation:zp-spin .7s linear infinite; }
@keyframes zp-spin{ to{ transform:rotate(360deg); } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > *{ opacity:1; transform:none; }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay:.12s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay:.19s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay:.26s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay:.33s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay:.4s; }

/* Variantes d'entrée, façon Elementor : montée franche + zoom léger */
.reveal.reveal-up{ transform:translateY(38px); transition-duration:.9s; transition-timing-function:cubic-bezier(.16,1,.3,1); }
.reveal.reveal-zoom{ transform:scale(.93); transition-duration:.9s; transition-timing-function:cubic-bezier(.16,1,.3,1); }
.reveal.reveal-zoom.is-visible{ transform:none; }

/* ---------- Top bar + Header / nav ---------- */
.top-bar{ background:var(--blue-dark); color:#fff; font-size:13px; }
.top-bar .wrap{ display:flex; align-items:center; justify-content:space-between; height:38px; }
.top-bar a{ color:#fff; }
.top-bar-links{ display:flex; align-items:center; gap:22px; }
.top-bar-links span{ opacity:.85; }

.site-header{ position:sticky; top:0; background:rgb(255 255 255 / .92); backdrop-filter:blur(8px); z-index:20; transition:box-shadow .3s ease; }
.site-header.is-scrolled{ box-shadow:0 8px 28px -14px oklch(22% 0.03 260 / .25); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:84px; gap:24px; transition:height .25s ease; }
.site-header.is-scrolled .wrap{ height:70px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:40px; height:40px; border-radius:12px; background:linear-gradient(155deg, var(--blue) 0%, var(--blue-dark) 100%); display:flex; align-items:center; justify-content:center; transition:transform .3s var(--ease); }
.brand:hover .brand-mark{ transform:rotate(-8deg) scale(1.06); }
.brand-mark svg{ stroke:#fff; }
.brand span{ font-size:22px; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
.brand .custom-logo{ display:block; height:42px; width:auto; max-width:220px; object-fit:contain; }
.primary-nav ul{ display:flex; align-items:center; gap:32px; }
.primary-nav a{ position:relative; color:var(--ink-soft); font-size:15px; font-weight:600; padding-bottom:4px; }
.primary-nav a::after{ content:""; position:absolute; left:0; right:100%; bottom:0; height:2px; border-radius:2px; background:var(--green); transition:right .25s var(--ease); }
.primary-nav a:hover{ color:var(--ink); }
.primary-nav a:hover::after{ right:0; }
.nav-toggle{ display:none; background:none; border:1px solid var(--line); border-radius:8px; padding:8px 10px; cursor:pointer; }

/* ---------- Cards ---------- */
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:0 4px 18px -12px oklch(22% 0.03 260 / .12); transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease; }
.card:hover{ transform:translateY(-6px); box-shadow:0 22px 40px -20px oklch(22% 0.03 260 / .25); border-color:oklch(89% 0.012 250 / .4); }
.grid-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.icon{ width:26px; height:26px; stroke:var(--blue); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.icon-badge{ width:60px; height:60px; border-radius:18px; background:linear-gradient(155deg, var(--blue-tint) 0%, var(--blue-tint-2) 100%); display:flex; align-items:center; justify-content:center; margin-bottom:22px; transition:transform .3s var(--ease), background .3s ease; }
.card:hover .icon-badge{ transform:scale(1.08) rotate(-4deg); }
.icon-badge .icon{ width:27px; height:27px; }
.icon-badge.green{ background:linear-gradient(155deg, var(--green-tint) 0%, oklch(96% 0.04 141) 100%); }
.icon-badge.green .icon{ stroke:var(--green-dark); }

.icon-draw{ stroke-dasharray:140; stroke-dashoffset:140; transition:stroke-dashoffset 1s var(--ease); }
.reveal.is-visible .icon-draw, .reveal-stagger.is-visible .icon-draw{ stroke-dashoffset:0; }

/* ---------- Hero ---------- */
.hero{ padding:80px 0 110px; position:relative; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center; position:relative; z-index:1; }
.hero h1{ font-size:58px; margin-bottom:26px; }
.hero .lede{ max-width:520px; margin-bottom:36px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:20px; margin-top:56px; flex-wrap:wrap; }
.hero-stats > div{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 22px; box-shadow:0 4px 16px -10px oklch(22% 0.03 260 / .15); }
.hero-stats .num{ font-size:30px; font-weight:800; color:var(--blue); display:inline-block; min-width:2ch; }
.hero-stats .label{ font-size:13px; color:var(--ink-soft); font-weight:600; }

.hero-visual{ position:relative; aspect-ratio:1/1; border-radius:28px; background:linear-gradient(155deg,var(--blue-tint) 0%, var(--blue-tint-2) 100%); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:0 40px 70px -30px oklch(47% 0.19 263 / .4); }
.hero-visual img{ width:100%; height:100%; object-fit:cover; }
.hero-visual .illustration{ width:66%; height:66%; animation:zp-float 7s ease-in-out infinite; }
.hero-visual .dot-grid{ position:absolute; inset:0; background-image:radial-gradient(oklch(47% 0.19 263 / .18) 1.4px, transparent 1.4px); background-size:22px 22px; mask-image:radial-gradient(circle at 65% 35%, black 0%, transparent 70%); }

.hero-blob{ position:absolute; border-radius:50%; filter:blur(64px); opacity:.6; z-index:0; pointer-events:none; }
.hero-blob-a{ width:440px; height:440px; top:-150px; right:-130px; background:radial-gradient(circle, var(--blue-tint) 0%, transparent 70%); animation:zp-float 11s ease-in-out infinite; }
.hero-blob-b{ width:300px; height:300px; bottom:-110px; left:-90px; background:radial-gradient(circle, var(--green-tint) 0%, transparent 70%); animation:zp-float 9s ease-in-out infinite reverse; }
@keyframes zp-float{ 0%,100%{ transform:translateY(0) rotate(0); } 50%{ transform:translateY(-14px) rotate(2deg); } }

/* ---------- Section avec image de fond pleine largeur ---------- */
.hero.has-bg, .section-dark.has-bg{ background-size:cover; background-position:center; }
.section-bg-overlay{ position:absolute; inset:0; z-index:0; pointer-events:none; }

/* ---------- Diaporama d'images en fond du héros ---------- */
.hero-slider{ position:absolute; inset:0; z-index:0; }
.hero-slide{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.4s ease; }
.hero-slide.is-active{ opacity:1; }
.hero-slider-dots{ position:absolute; z-index:2; left:50%; bottom:28px; transform:translateX(-50%); display:flex; gap:10px; }
.hero-slider-dots .dot{ width:9px; height:9px; border-radius:50%; background:oklch(100% 0 0 / .4); border:none; padding:0; cursor:pointer; transition:background .3s ease, transform .3s ease; }
.hero-slider-dots .dot:hover{ background:oklch(100% 0 0 / .7); }
.hero-slider-dots .dot.is-active{ background:#fff; transform:scale(1.3); }
.hero.has-bg .section-bg-overlay{ background:linear-gradient(180deg, oklch(20% 0.05 263 / .88) 0%, oklch(20% 0.05 263 / .72) 55%, oklch(97% 0.015 263 / .96) 100%); }
.section-dark.has-bg .section-bg-overlay{ background:linear-gradient(180deg, oklch(14% 0.02 260 / .9) 0%, oklch(14% 0.02 260 / .82) 100%); }
.hero.has-bg .eyebrow{ background:oklch(100% 0 0 / .14); color:#fff; }
.hero.has-bg h1, .hero.has-bg .lede{ color:#fff; }
.hero.has-bg .hero-stats > div{ background:oklch(100% 0 0 / .1); border-color:oklch(100% 0 0 / .18); backdrop-filter:blur(6px); }
.hero.has-bg .hero-stats .num{ color:#fff; }
.hero.has-bg .hero-stats .label{ color:oklch(92% 0.01 263 / .85); }
.hero.has-bg .btn-ghost{ background:oklch(100% 0 0 / .12); color:#fff !important; border-color:oklch(100% 0 0 / .3); }
.hero.has-bg .btn-ghost:hover{ background:#fff; color:var(--blue) !important; }
.section-dark.has-bg .wrap{ position:relative; z-index:1; }

/* ---------- Media panel (conservé pour compatibilité) ---------- */
.media-panel{ position:relative; aspect-ratio:4/3; border-radius:22px; overflow:hidden; border:1px solid var(--line); background:linear-gradient(155deg,var(--blue-tint-2) 0%, var(--bg-alt) 100%); clip-path:inset(0 0 0 0); }
.media-panel img{ width:100%; height:100%; object-fit:cover; }
.media-panel .illustration{ position:absolute; inset:0; width:100%; height:100%; }
.media-panel.reveal{ clip-path:inset(0 100% 0 0); transition:clip-path 1s var(--ease); opacity:1; transform:none; }
.media-panel.reveal.is-visible{ clip-path:inset(0 0 0 0); }

/* ---------- Duo d'images superposées (à propos) ---------- */
.image-stack{ position:relative; padding:8px 42px 46px 8px; }
.image-stack::before{ content:""; position:absolute; top:0; left:26px; width:64%; height:64%; background-image:radial-gradient(oklch(47% 0.19 263 / .32) 2px, transparent 2px); background-size:15px 15px; border-radius:18px; z-index:0; }
.image-stack::after{ content:""; position:absolute; right:0; bottom:0; width:56%; height:56%; background:var(--blue); opacity:.16; border-radius:26px; z-index:0; }
.image-stack .stack-main{ position:relative; z-index:1; border-radius:22px; overflow:hidden; border:1px solid var(--line); box-shadow:0 30px 60px -28px oklch(22% 0.03 260 / .35); aspect-ratio:4/3; }
.image-stack .stack-main img{ width:100%; height:100%; object-fit:cover; display:block; }
.image-stack .stack-main .illustration{ position:absolute; inset:0; width:100%; height:100%; }
.image-stack .stack-accent{ position:absolute; z-index:2; right:-4%; bottom:-8%; width:48%; aspect-ratio:4/3; border-radius:18px; overflow:hidden; border:6px solid var(--bg); box-shadow:0 20px 40px -18px oklch(22% 0.03 260 / .4); transition:transform .4s var(--ease); }
.image-stack:hover .stack-accent{ transform:translateY(-6px); }
.image-stack .stack-accent img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- Timeline (services) ---------- */
.timeline{ position:relative; }
.timeline-line{ position:absolute; top:63px; left:16.66%; right:16.66%; height:2px; background:var(--line); overflow:hidden; }
.timeline-line::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, var(--blue), var(--green)); transform:scaleX(0); transform-origin:left; transition:transform 1.1s var(--ease); }
.reveal-stagger.is-visible .timeline-line::after{ transform:scaleX(1); }

/* ---------- Team (cartes façon "spécialiste") ---------- */
.team-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 4px 18px -12px oklch(22% 0.03 260 / .12); transition:transform .3s var(--ease), box-shadow .3s var(--ease); }
.team-card:hover{ transform:translateY(-6px); box-shadow:0 22px 40px -20px oklch(22% 0.03 260 / .25); }
.team-photo{ width:100%; aspect-ratio:4/3; background:var(--blue-tint-2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.team-photo img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.team-card:hover .team-photo img{ transform:scale(1.05); }
.team-body{ padding:24px; }
.team-name{ font-size:19px; font-weight:800; margin-bottom:6px; }
.team-role{ display:inline-block; font-size:12.5px; font-weight:700; color:var(--blue); background:var(--blue-tint); padding:5px 12px; border-radius:999px; margin-bottom:12px; }
.team-desc{ font-size:15px; line-height:1.6; color:var(--ink-soft); margin-bottom:0; }

/* ---------- Services numbered ---------- */
.step-badge{ position:relative; z-index:1; width:60px; height:60px; border-radius:50%; background:linear-gradient(155deg, var(--blue) 0%, var(--blue-dark) 100%); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; margin-bottom:20px; box-shadow:0 10px 24px -10px oklch(47% 0.19 263 / .55); transition:transform .3s var(--ease); }
.card:hover .step-badge{ transform:scale(1.08); }

/* ---------- Dark network section ---------- */
.section-dark{ background:var(--ink); color:#f4f3f0; position:relative; }
.section-dark.has-bg{ overflow:hidden; }
.section-dark .eyebrow{ color:var(--green); background:oklch(30% 0.03 260); }
.section-dark .section-head h2{ color:#fbfaf8; }
.network-item{ border-top:2px solid oklch(38% 0.03 260); padding-top:24px; }
.network-item .idx{ font-size:15px; font-weight:800; color:var(--green); margin-bottom:10px; }
.network-item h3{ font-size:18px; font-weight:800; color:#fbfaf8; margin-bottom:8px; }
.network-item p{ font-size:15px; line-height:1.6; color:oklch(78% 0.015 250); margin-bottom:0; }

/* ---------- Why choose — feature highlights ---------- */
.why-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.why-item{ display:flex; gap:16px; align-items:flex-start; }
.why-item .icon-badge{ margin-bottom:0; flex-shrink:0; width:48px; height:48px; border-radius:14px; }
.why-item .icon-badge .icon{ width:22px; height:22px; }
.why-item h3{ font-size:16px; font-weight:800; margin-bottom:4px; }
.why-item p{ font-size:14.5px; color:var(--ink-soft); margin-bottom:0; }

/* ---------- Carrousel (témoignages) ---------- */
.carousel{ position:relative; max-width:760px; margin:0 auto; overflow:hidden; }
.carousel-track{ display:flex; transition:transform .55s var(--ease); }
.carousel-slide{ flex:0 0 100%; min-width:0; padding:4px; }
.testimonial-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:44px 40px; text-align:center; box-shadow:0 10px 30px -18px oklch(22% 0.03 260 / .18); }
.testimonial-card .quote-mark{ width:34px; height:26px; fill:var(--blue-tint); margin:0 auto 18px; display:block; }
.testimonial-text{ font-size:18px; line-height:1.7; color:var(--ink); font-weight:500; margin-bottom:26px; }
.testimonial-author{ display:flex; align-items:center; justify-content:center; gap:12px; }
.testimonial-author img, .testimonial-avatar{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.testimonial-avatar{ background:var(--blue-tint-2); display:flex; align-items:center; justify-content:center; }
.testimonial-author > div{ text-align:left; }
.testimonial-name{ font-size:14.5px; font-weight:800; }
.testimonial-role{ font-size:13px; color:var(--ink-soft); }

.carousel-controls{ display:flex; align-items:center; justify-content:center; gap:22px; margin-top:32px; }
.carousel-arrow{ width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .25s var(--ease), border-color .2s ease, background .2s ease; flex-shrink:0; }
.carousel-arrow svg{ width:18px; height:18px; stroke:var(--ink); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.carousel-arrow:hover{ border-color:var(--blue); background:var(--blue-tint); transform:translateY(-2px); }
.carousel-dots{ display:flex; gap:8px; }
.carousel-dots .dot{ width:8px; height:8px; border-radius:50%; background:var(--line); border:none; padding:0; cursor:pointer; transition:background .3s ease, transform .3s ease; }
.carousel-dots .dot:hover{ background:oklch(70% 0.03 263); }
.carousel-dots .dot.is-active{ background:var(--blue); transform:scale(1.3); }

/* ---------- Logos partenaires (défilement continu) ---------- */
.logos-section{ overflow:hidden; }
.logos-marquee{ width:100%; overflow:hidden; margin-top:36px; -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track{ display:flex; align-items:center; gap:64px; width:max-content; animation:zp-marquee 28s linear infinite; }
.logos-marquee:hover .logos-track{ animation-play-state:paused; }
.logo-item{ flex-shrink:0; height:42px; display:flex; align-items:center; }
.logo-item img{ height:100%; width:auto; max-width:140px; object-fit:contain; filter:grayscale(1) opacity(.55); transition:filter .3s ease; }
.logo-item:hover img{ filter:grayscale(0) opacity(1); }
@keyframes zp-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .logos-track{ animation:none; } }

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.faq-item{ background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.faq-item summary{ list-style:none; cursor:pointer; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-weight:700; font-size:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chevron{ flex-shrink:0; width:20px; height:20px; stroke:var(--blue); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .3s var(--ease); }
.faq-item[open] summary .chevron{ transform:rotate(180deg); }
.faq-item .faq-body{ padding:0 24px 22px; font-size:15px; line-height:1.65; color:var(--ink-soft); }
.faq-item[open]{ border-color:var(--blue); }

/* ---------- Contact ---------- */
.contact-section{ background:var(--blue-tint-2); }
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:start; }
.contact-intro h2{ font-size:36px; margin-bottom:18px; }
.contact-intro .lede{ margin-bottom:28px; }
.contact-quick{ display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.contact-quick a, .contact-quick span{ font-weight:700; color:var(--ink); }
.contact-quick a:hover{ color:var(--blue); }
.contact-addr{ font-size:14px; color:var(--ink-soft); }

.contact-map{ margin-top:48px; }
.map-embed{ position:relative; width:100%; height:360px; border-radius:22px; overflow:hidden; border:1px solid var(--line); box-shadow:0 28px 54px -28px oklch(22% 0.03 260 / .22); }
.map-embed iframe{ position:absolute; inset:0; width:100%; height:100%; }
.map-link{ display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-weight:700; font-size:14px; color:var(--blue); }
.map-link:hover{ color:var(--blue-dark); }
.map-link svg{ flex-shrink:0; }

.contact-form{ background:#fff; border:1px solid var(--line); border-radius:22px; padding:38px; box-shadow:0 28px 54px -28px oklch(22% 0.03 260 / .22); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.form-field{ display:flex; flex-direction:column; gap:6px; }
.form-field.full{ grid-column:1 / -1; }
.form-field label{ font-size:13px; font-weight:700; color:var(--ink-soft); }
.form-field input, .form-field textarea{ font:inherit; font-size:15px; padding:13px 16px; border:1px solid var(--line); border-radius:12px; background:var(--bg); color:var(--ink); transition:border-color .2s ease, box-shadow .2s ease; }
.form-field input:focus, .form-field textarea:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px oklch(47% 0.19 263 / .15); }
.form-field textarea{ resize:vertical; min-height:120px; }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.contact-form .btn{ width:100%; justify-content:center; }
.form-status{ margin-top:14px; font-size:14px; padding:10px 14px; border-radius:10px; background:var(--bg-alt); color:var(--ink-soft); }
.form-status.is-success{ background:oklch(93% 0.06 150); color:oklch(32% 0.09 150); }
.form-status.is-error{ background:oklch(93% 0.06 30); color:oklch(38% 0.13 30); }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns:1fr; }
  .map-embed{ height:280px; }
}
@media (max-width: 560px){
  .form-row{ grid-template-columns:1fr; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:oklch(78% 0.015 250); }
.footer-top{ padding:72px 0 48px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer-brand-wrap{ margin-bottom:16px; }
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-brand span{ font-size:20px; font-weight:800; color:#fff; }
.footer-brand.has-custom-logo{ background:#fff; padding:8px 14px; border-radius:10px; display:inline-flex; }
.footer-brand .custom-logo{ display:block; height:30px; width:auto; max-width:200px; object-fit:contain; }
.footer-about p{ font-size:14.5px; line-height:1.65; color:oklch(70% 0.015 250); margin-bottom:0; }
.footer-col h4{ font-size:14px; font-weight:800; color:#fff; text-transform:uppercase; letter-spacing:.05em; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ color:oklch(75% 0.015 250); font-size:14.5px; }
.footer-col a:hover{ color:var(--green); }
.footer-col p{ font-size:14.5px; color:oklch(75% 0.015 250); margin-bottom:0; }
.footer-bottom{ border-top:1px solid oklch(32% 0.02 260); padding:22px 0; }
.footer-bottom .wrap{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13.5px; color:oklch(62% 0.015 250); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns:1fr; gap:40px; }
}
@media (max-width: 860px){
  .grid-3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px){
  .wrap{ padding:0 22px; }
  .section{ padding:60px 0; }
  .grid-3, .grid-2, .why-grid{ grid-template-columns:1fr !important; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero h1{ font-size:38px; }
  .primary-nav{ display:none; }
  .primary-nav.is-open{ display:block; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); padding:16px 22px; box-shadow:0 12px 24px -16px oklch(22% 0.03 260 / .25); }
  .primary-nav.is-open ul{ flex-direction:column; align-items:flex-start; gap:16px; }
  .nav-toggle{ display:inline-flex; }
  .top-bar{ display:none; }
  .hero-blob-a{ width:260px; height:260px; top:-100px; right:-100px; }
  .hero-blob-b{ display:none; }
  .contact-form{ padding:24px; }
  .image-stack{ padding:8px 26px 34px 6px; }
  .image-stack .stack-accent{ width:52%; }
  .timeline-line{ display:none; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .hero-slider-dots{ bottom:18px; }
  .testimonial-card{ padding:30px 22px; }
  .testimonial-text{ font-size:16px; }
  .carousel-arrow{ width:38px; height:38px; }
  .logos-track{ gap:44px; }
}

/* ---------- Petits écrans (téléphones étroits) ---------- */
@media (max-width: 480px){
  html{ font-size:15px; }
  .wrap{ padding:0 16px; }
  .section{ padding:48px 0; }
  .hero{ padding:56px 0 64px; }
  .hero h1{ font-size:30px; margin-bottom:18px; }
  .hero .lede{ font-size:15px; margin-bottom:26px; }
  .hero-actions{ gap:10px; }
  .hero-actions .btn{ flex:1 1 auto; justify-content:center; padding-left:16px; padding-right:16px; }
  .hero-stats{ gap:10px; margin-top:34px; }
  .hero-stats > div{ padding:12px 16px; flex:1 1 auto; }
  .hero-stats .num{ font-size:24px; }
  .section-head h2{ font-size:26px; }
  .contact-intro h2{ font-size:26px; }
  .eyebrow{ font-size:12px; }
  .card{ padding:22px; }
  .grid-3{ grid-template-columns:1fr; }
  .why-item{ align-items:center; }
  .image-stack{ padding:6px 18px 30px 4px; }
  .image-stack .stack-accent{ width:56%; right:-2%; bottom:-6%; }
  .team-body{ padding:20px; }
  .faq-item summary{ padding:16px 18px; font-size:15px; }
  .faq-item .faq-body{ padding:0 18px 18px; }
  .footer-top{ padding:52px 0 36px; }
  .site-header .wrap{ height:70px; }
  .site-header.is-scrolled .wrap{ height:62px; }
  .brand span{ font-size:18px; }
}

/* ---------- Grands écrans ---------- */
@media (min-width: 1440px){
  .wrap{ max-width:1320px; }
  .hero h1{ font-size:64px; }
}
