/* consent.css — FEEDS cookie-consent banner/panel/chip (STAGING, round 4).
   Additive only: does not edit or override any existing rule in style.css.
   Uses the site's own CSS variables (colors, radius, shadow) so it matches
   the existing FEEDS visual identity exactly. */

#consent-banner{
  display:none; position:fixed; inset-inline:0; bottom:0; z-index:200;
  background:var(--green-900); color:var(--cream-100);
  box-shadow:0 -10px 30px -12px rgba(0,0,0,.35);
  padding:18px 24px; gap:18px; flex-wrap:wrap;
  align-items:center; justify-content:space-between;
}
#consent-banner p{ color:rgba(255,255,255,.88); margin:0; max-width:62ch; font-size:.92rem; }
#consent-banner .banner-actions{ display:flex; gap:10px; flex-wrap:wrap; }

#consent-panel{
  display:none; position:fixed; inset:0; z-index:210;
  background:rgba(20,30,20,.55);
  align-items:center; justify-content:center; padding:20px;
}
#consent-panel .panel-card{
  background:var(--white); color:var(--ink-900); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); padding:30px 28px; max-width:440px; width:100%;
}
#consent-panel .panel-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; border-bottom:1px dashed var(--line); font-weight:700;
}
#consent-panel .panel-row:last-of-type{ border-bottom:none; }
#consent-panel .panel-actions{ display:flex; gap:10px; margin-top:20px; justify-content:flex-end; }

#consent-chip{
  display:none; position:fixed; bottom:24px; inset-inline-start:88px; z-index:60;
  width:46px; height:46px; border-radius:50%; background:var(--white);
  border:1px solid var(--line); box-shadow:var(--shadow);
  align-items:center; justify-content:center; font-size:1.3rem; cursor:pointer;
}

.btn-reject{ background:transparent; border:1.5px solid rgba(255,255,255,.5); color:var(--white); }
.btn-reject:hover{ background:rgba(255,255,255,.12); }
#consent-panel .btn-reject{ border-color:var(--line); color:var(--ink-600); }
#consent-panel .btn-reject:hover{ background:var(--cream-100); }

.map-placeholder{
  background:var(--cream-100); border:1px solid var(--line); border-radius:var(--radius-lg);
  min-height:320px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:14px; padding:30px;
}
.map-placeholder p{ max-width:46ch; margin:0; }

/* ---------------------------------------------------------------
   French navigation — overflow fix found in staging testing (T9/T10).
   French labels (Accueil · À propos · Produits · Export · Certificats ·
   Étapes clés · Centre de connaissances · Contact) run noticeably
   longer than Arabic or English, so at common desktop widths (tested
   at 1440px) the nav row no longer fits inside the same 1180px
   .container used sitewide and individual labels wrap onto two lines.
   Fix follows the exact pattern style.css already uses for the same
   class of problem on English (see "English navigation" comment in
   style.css): convert to the existing off-canvas panel, French-only,
   below a wide threshold; nothing for Arabic or English changes, and
   style.css itself is not touched — this lives here, in the new
   additive stylesheet, same as the rest of the consent feature.
   --------------------------------------------------------------- */
@media (max-width:1680px){
  html[lang="fr"] .menu-toggle{display:flex;}
  html[lang="fr"] nav.main-nav{
    position:fixed;inset:0 0 0 auto;width:min(320px,85vw);height:100vh;
    background:var(--white);transform:translateX(105%);transition:.28s cubic-bezier(.22,.9,.3,1);
    padding:100px 24px 24px;box-shadow:-16px 0 40px rgba(0,0,0,.18);z-index:50;
    overflow-y:auto;
  }
  html[lang="fr"] nav.main-nav.open{transform:translateX(0);}
  html[lang="fr"] nav.main-nav ul{flex-direction:column;align-items:stretch;gap:4px;}
  html[lang="fr"] nav.main-nav a{display:block;padding:14px 16px;}
}
@media (min-width:1681px){
  html[lang="fr"] nav.main-nav a{white-space:nowrap;}
  html[lang="fr"] .nav-actions .btn{white-space:nowrap;}
}

@media (max-width:600px){
  #consent-banner{ flex-direction:column; align-items:stretch; text-align:start; }
  #consent-banner .banner-actions{ flex-direction:column; }
  #consent-banner .banner-actions .btn{ width:100%; justify-content:center; }
  #consent-chip{ inset-inline-start:24px; bottom:86px; }
}
