/* ===========================================================================
   Shared site chrome — top strip, header/nav, buttons, footer, motion.
   Loaded by every page; page-specific CSS stays inline in that page.

   This file exists because the header/footer used to be copy-pasted into both
   pages, and the two copies had already drifted apart in ways that were real
   bugs: the form page hid its mobile menu with transform alone (leaving seven
   off-screen links focusable), anchored the menu to a hardcoded 112px inset
   (which detaches once the sticky header shrinks on scroll), and had lost the
   rule that hides the in-menu CTA on desktop (rendering two identical
   "Nous contacter" buttons side by side). One copy, one behaviour.
   =========================================================================== */

/* ---------- fonts (self-hosted) ----------
   Served from this origin rather than fonts.googleapis.com: the site collects
   guardian and minor data under a recorded consent notice, and a third-party
   font request would disclose every visitor's IP address to Google before any
   consent is expressed. Subsetted to latin, latin-ext and arabic — the only
   ranges this French/Arabic site renders. */
/* IBM Plex Sans — latin, variable 400..700 (one file, self-hosted) */
@font-face{
  font-family:'IBM Plex Sans';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/IBMPlexSans-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Sans — latin-ext, variable 400..700 (one file, self-hosted) */
@font-face{
  font-family:'IBM Plex Sans';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/IBMPlexSans-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Noto Kufi Arabic — arabic, variable (one file, self-hosted) */
@font-face{
  font-family:'Noto Kufi Arabic';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/NotoKufiArabic-arabic.woff2) format('woff2');
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Noto Kufi Arabic — latin, variable (one file, self-hosted) */
@font-face{
  font-family:'Noto Kufi Arabic';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/NotoKufiArabic-latin.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Noto Kufi Arabic — latin-ext, variable (one file, self-hosted) */
@font-face{
  font-family:'Noto Kufi Arabic';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/NotoKufiArabic-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root{
  --paper:#F6F3EC;
  --paper-2:#EFEAE0;
  --ink:#0E2A35;
  --ink-soft:#33505A;
  --green:#15715C;
  --green-bright:#1F9576;
  --green-deep:#0C4C3E;
  --gold:#C68A2E;
  --gold-soft:#E8CB93;
  --tint:#E4EEE8;
  --line:rgba(14,42,53,.14);
  --white:#ffffff;
  --shadow:0 18px 50px -24px rgba(14,42,53,.45);
  --shadow-sm:0 8px 24px -14px rgba(14,42,53,.4);
  --r:18px;
  --maxw:1200px;
  --font-d:'IBM Plex Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --font-b:'IBM Plex Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --font-ar:"Noto Kufi Arabic",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
[hidden]{display:none!important}

/* Keep anchor targets clear of the sticky header. */
section[id]{scroll-margin-top:90px}
body{
  font-family:var(--font-b);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.eyebrow{
  font-size:.74rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--green);display:inline-flex;align-items:center;gap:10px;
}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--gold)}
h1,h2,h3{font-family:var(--font-d);font-weight:600;line-height:1.08;letter-spacing:-.01em;color:var(--ink)}
.btn{
  display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:.95rem;
  padding:14px 24px;border-radius:100px;border:1.5px solid transparent;cursor:pointer;
  transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,background .25s,color .25s;
  font-family:var(--font-b);
}
.btn svg{width:17px;height:17px;transition:transform .25s}
.btn-primary{background:var(--green);color:#fff;box-shadow:0 10px 24px -12px rgba(14,42,53,.28)}
.btn-primary:hover:not(:disabled){background:var(--green-deep);transform:translateY(-2px)}
.btn-primary:hover svg{transform:translateX(4px)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover:not(:disabled){border-color:var(--ink);transform:translateY(-2px)}
.btn-light{background:#fff;color:var(--ink)}
.btn-light:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.btn-sm{padding:9px 16px;font-size:.82rem}
/* The wizard disables its Suivant/Envoyer buttons; without this they still
   look and behave clickable. */
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}

/* ---------- top strip ---------- */
.strip{background:var(--ink);color:rgba(255,255,255,.82);font-size:.76rem;letter-spacing:.02em}
.strip .wrap{display:flex;justify-content:space-between;align-items:center;height:38px;gap:16px}
.strip .ar{font-family:var(--font-ar);direction:rtl;color:var(--gold-soft)}
.strip .meta{display:flex;gap:18px;align-items:center}
.strip .meta span{display:inline-flex;align-items:center;gap:6px}
.dot{width:5px;height:5px;border-radius:50%;background:var(--green-bright);display:inline-block}
@media(max-width:720px){.strip .meta{display:none}}

/* ---------- nav ---------- */
header.nav{position:sticky;top:0;z-index:60;background:rgba(246,243,236,.82);backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;transition:padding .3s,box-shadow .3s,border-color .3s}
header.nav.scrolled{box-shadow:0 6px 24px -18px rgba(14,42,53,.6);border-color:var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:74px;transition:height .3s}
header.nav.scrolled .wrap{height:62px}
.brand{display:flex;align-items:center;gap:13px}
.mark{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:var(--green);
  display:grid;place-items:center;box-shadow:0 8px 18px -10px rgba(14,42,53,.28);position:relative;overflow:hidden}
.mark svg{width:30px;height:30px}
.brand-txt strong{font-family:var(--font-d);font-size:1.02rem;font-weight:600;display:block;line-height:1.1;color:var(--ink)}
.brand-txt span{font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-soft);font-weight:600}
.menu{display:flex;align-items:center;gap:34px}
.menu .btn{display:none}
.menu a.link{font-size:.92rem;font-weight:500;color:var(--ink-soft);position:relative;padding:4px 0;transition:color .2s}
.menu a.link::after{content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;background:var(--gold);transition:width .25s}
.menu a.link:hover,.menu a.link.active{color:var(--ink)}
.menu a.link:hover::after,.menu a.link.active::after{width:100%}
.nav-cta{display:flex;align-items:center;gap:14px}
.burger{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;flex-direction:column;gap:5px;align-items:center;justify-content:center}
.burger span{width:20px;height:2px;background:var(--ink);border-radius:2px;transition:.3s}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:960px){
  /* Anchored to the header itself, not a hardcoded offset: the top strip
     scrolls away and .wrap shrinks to 62px, so a fixed inset detaches. */
  .menu{position:absolute;top:100%;left:0;right:0;background:var(--paper);flex-direction:column;gap:0;
    padding:12px 24px 26px;border-bottom:1px solid var(--line);transform:translateY(-140%);
    visibility:hidden;
    transition:transform .4s cubic-bezier(.2,.8,.2,1),visibility 0s linear .4s;box-shadow:var(--shadow)}
  .menu.open{transform:translateY(0);visibility:visible;
    transition:transform .4s cubic-bezier(.2,.8,.2,1),visibility 0s}
  .menu a.link{width:100%;padding:16px 0;border-bottom:1px solid var(--line);font-size:1.05rem}
  .menu .btn{display:inline-flex;margin-top:16px;width:100%;justify-content:center}
  .nav-cta .btn{display:none}
  .burger{display:flex}
}


/* ---------- skip link ----------
   The header repeats seven navigation links on every page; without this a
   keyboard or screen-reader user traverses all of them before reaching the
   content (WCAG 2.4.1). Visible only when focused. */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--ink);color:#fff;padding:12px 20px;border-radius:0 0 10px 0;
  font-weight:600;font-size:.95rem}
.skip-link:focus{left:0}
/* footer */
footer{background:var(--ink);color:rgba(255,255,255,.72);padding:64px 0 30px}
.f-top{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.12)}
.f-brand .brand-txt strong{color:#fff}
.f-brand p{margin-top:16px;font-size:.94rem;max-width:34ch}
.f-brand .ar{font-family:var(--font-ar);direction:rtl;color:var(--gold-soft);margin-top:14px;font-size:1.05rem}
.f-col h4{color:#fff;font-family:var(--font-d);font-size:1.05rem;margin-bottom:16px;font-weight:600}
.f-col a{display:block;padding:6px 0;font-size:.93rem;transition:color .2s}
.f-col a:hover{color:var(--gold-soft)}
.f-bot{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:24px;font-size:.84rem;flex-wrap:wrap}
.f-bot a:hover{color:#fff}
@media(max-width:820px){.f-top{grid-template-columns:1fr 1fr}.f-brand{grid-column:1/-1}}
@media(max-width:520px){.f-top{grid-template-columns:1fr}}

/* reveal */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1)}
.reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}
