/* ═══════════════════════════════════════════════════════════════
   site-chrome.css — header, bandeau « 100 % français » et footer
   communs à TOUTES les pages du site.

   Généré depuis www/index.html : ne pas éditer à la main, modifier
   index.html puis relancer scripts/unifier-chrome.py.

   Chargé APRÈS les <style> de chaque page, pour l'emporter sur les
   anciennes règles header/footer qui y traînent encore.
   ═══════════════════════════════════════════════════════════════ */

    :root {
      --teal: #50757B;
      --teal-dark: #3a5a60;
      --teal-light: #B2C9CF;
      --navy: #121711;
      --navy2: #2c2c2E;
      --slate: #334155;
      --muted: #64748b;
      --border: #d8dee8;
      --bg-light: #152E47;
      --border-on-dark: rgba(255,255,255,0.08);
      --text-on-dark: #E8F0F8;
      --muted-on-dark: #7A9BBB;
      --white: #ffffff;
      --yellow: #2d4a50;
      --green: #10b981;
      --radius: 14px;
    }


    .flex { display: flex; }
    .items-center { align-items: center; }
    .justify-between { justify-content: space-between; }


/* ── BANDEAU « Logiciel 100 % français » (v3, collant) ── */
/* Le bandeau est collé en haut ; le header vient se coller juste dessous. */
:root{--frh:39px}
@media(max-width:900px){:root{--frh:33px}}
html{scroll-padding-top:var(--frscroll,132px)}
.fr-strip{position:sticky;top:0;z-index:101;
  background:#232325;color:rgba(255,255,255,.82);font-size:13.5px;line-height:1.35;
  border-top:3px solid transparent;
  border-image:linear-gradient(90deg,#0055A4 0 33.34%,#fff 33.34% 66.67%,#EF4135 66.67% 100%) 1;
  border-bottom:1px solid rgba(255,255,255,.09)}
.fr-strip .fr-in{max-width:1320px;margin:0 auto;padding:9px 24px;display:flex;align-items:center;justify-content:center;gap:11px;flex-wrap:wrap;text-align:center}
.fr-strip svg{display:block;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.25);flex:none}
.fr-strip b{color:#fff;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.fr-strip .fr-dot{color:rgba(255,255,255,.32);margin-right:6px}
header{top:var(--frh)}
@media(max-width:900px){.fr-strip .fr-in{padding:8px 14px;gap:8px;font-size:12px}.fr-strip .fr-long{display:none}}
.fr-foot{display:inline-flex;align-items:center;gap:10px;color:#fff}
.fr-foot .fr-foot-t{font-weight:800}



/* ── HEADER ── */
    /* ── HEADER ────────────────────────────────────────────────────── */
    header {
      /* 18/09/2026 — se colle SOUS le bandeau « 100 % français » (sticky lui aussi).
         Avant : top:0 ici écrasait le header{top:var(--frh)} déclaré plus haut,
         et le bandeau (z-index 101) recouvrait la 1re ligne du menu au scroll. */
      position: sticky; top: var(--frh, 0px); z-index: 100;
      background: rgba(44,44,46,.95); backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,.06);
      padding: 16px 0;
    }
    .logo { display: flex; align-items: center; gap: 8px; }
    .logo-text { font-size: 20px; font-weight: 900; }
    .logo-text span:first-child { color: #fff; }
    .logo-text span.sep { color: rgba(255,255,255,.2); margin: 0 2px; }
    .logo-text span.accent { color: var(--teal); }
    .logo-img { height: 64px; width: auto; display: block; background: #fff; padding: 12px 20px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.20); }
    @media (max-width: 768px) { .logo-img { height: 44px; padding: 8px 14px; border-radius: 12px; } }
    /* Header plus large que le reste du site pour aérer le menu sur grand écran */
    header .container { max-width: 1320px; }
    header nav { display: flex; align-items: center; gap: 12px; }
    header nav a {
      font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
      padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
    }
    header nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
    .nav-cta { background: var(--teal) !important; color: #fff !important; padding: 8px 18px !important; border-radius: 999px !important; font-weight: 700 !important; }
    .nav-cta:hover { background: var(--teal-dark) !important; }
    /* Lien de menu désactivé (ex. Démo à venir) */
    header nav a.nav-soon { opacity: .42; cursor: not-allowed; }
    header nav a.nav-soon:hover { color: rgba(255,255,255,.65); background: transparent; }
    header nav a.nav-soon .soon { font-size: 10px; font-weight: 600; opacity: .85; margin-left: 4px; }
    /* Menu déroulant Métiers (hub-and-spoke) — sous-menu au survol */
    .nav-dd { position: relative; display: flex; align-items: center; }
    .nav-dd-trigger { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65); padding: 8px 14px; border-radius: 8px; cursor: default; display: inline-flex; align-items: center; gap: 5px; transition: color .2s, background .2s; }
    .nav-dd:hover .nav-dd-trigger { color: #fff; background: rgba(255,255,255,.06); }
    .nav-dd .caret { font-size: 10px; transition: transform .2s; }
    .nav-dd:hover .caret { transform: rotate(180deg); }
    .nav-dd-menu { position: absolute; top: 100%; left: 0; min-width: 230px; background: #2d4a50; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.35); display: none; z-index: 60; }
    .nav-dd:hover .nav-dd-menu { display: block; }
    .nav-dd-menu a { display: block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
    .nav-dd-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
    .menu-toggle {
      display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
      color: #fff; cursor: pointer; padding: 8px 12px; border-radius: 8px;
      font-size: 20px; line-height: 1; transition: background .2s;
    }
    .menu-toggle:hover { background: rgba(255,255,255,.14); }
    .menu-toggle .bar-icon { display: inline-block; width: 18px; }



    @media (max-width: 768px) {
      /* Mobile nav : bouton hamburger + drawer */
      .menu-toggle { display: inline-flex; align-items: center; gap: 6px; order: 2; }
      header nav {
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); border-top: 1px solid rgba(255,255,255,.08);
        padding: 8px 16px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.4);
      }
      header.nav-open nav { display: flex; }
      header nav a {
        padding: 14px 4px !important;
        border-bottom: 1px solid rgba(255,255,255,.06);
        color: rgba(255,255,255,.85) !important;
        font-size: 15px;
        border-radius: 0 !important;
      }
      header nav a:last-child { border-bottom: none; }
      /* Menu déroulant Métiers en mobile : sous-liste dépliée */
      header nav .nav-dd { flex-direction: column; align-items: stretch; width: 100%; }
      header nav .nav-dd-trigger { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 15px; justify-content: space-between; }
      header nav .nav-dd-menu { position: static; display: block; background: transparent; border: none; box-shadow: none; padding: 0; min-width: auto; }
      header nav .nav-dd-menu a { padding: 12px 4px 12px 18px !important; font-size: 14px; }
      header nav a.nav-cta {
        margin-top: 12px; text-align: center;
        border-radius: 999px !important;
        border: none;
      }
    }


/* ── HEADER : palette verte ── */
    /* Header : vert sticky + logo et liens blancs ────────────────── */
    header {
      background: rgba(77,106,112,.96) !important;
      backdrop-filter: blur(12px);
    }
    .logo-text span.accent { color: #fff; }
    header nav a { color: #fff; }
    header nav a:hover { color: #B2C9CF; background: rgba(255,255,255,.06); }
    /* 19/09/2026 — les entrées à sous-menu (Découvrir IZZI DEVIS, Univers
       Garage, Univers Habitat, Démo) sont des <a class="nav-dd-trigger"> : leur
       classe l'emportait sur « header nav a » ci-dessus, elles restaient donc à
       65 % d'opacité pendant que les liens simples passaient en blanc franc, et
       paraissaient désactivées. Même blanc et même survol que les autres ;
       seul le chevron reste légèrement atténué. */
    header nav .nav-dd-trigger { color: #fff; }
    header nav .nav-dd:hover .nav-dd-trigger { color: #B2C9CF; background: rgba(255,255,255,.06); }
    header nav .nav-dd .caret { opacity: .75; }



/* ── FOOTER ── */
    /* ── FOOTER ────────────────────────────────────────────────────── */
    footer { background: var(--navy); padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,.06); }
    .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
    .footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 12px; max-width: 240px; line-height: 1.6; }
    .footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
    .footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .2s; }
    .footer-col a:hover { color: var(--teal); }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); }
    .footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }


    @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 14px; text-align: center; } }


/* ── FOOTER : palette verte ── */
    /* Footer : VERT !important + textes en blanc plein ──────────── */
    footer { background: var(--teal) !important; }
    footer h4 { color: #fff; }
    footer .footer-col a { color: #fff; }
    footer .footer-col a:hover { color: #B2C9CF; }
    footer .footer-brand p { color: #fff; }
    footer .footer-bottom { border-top-color: rgba(255,255,255,.22); }
    footer .footer-bottom p { color: #fff; }
    footer .logo svg path { stroke: #fff !important; }



/* ── RÉSEAUX SOCIAUX ── */
@media(min-width:901px){header nav{flex-wrap:wrap;justify-content:flex-end;row-gap:6px}}
.izzi-social{display:inline-flex;align-items:center;gap:3px}
.izzi-social a{display:inline-flex!important;align-items:center;justify-content:center;width:32px;height:32px;padding:0!important;border:none!important;border-radius:8px;color:#fff!important;background:transparent!important;opacity:.72;transition:opacity .2s,background .2s,transform .2s}
.izzi-social a:hover{opacity:1;color:#fff!important;background:rgba(255,255,255,.15)!important;transform:translateY(-1px)}
.izzi-social svg{width:17px;height:17px;display:block;fill:currentColor}
.izzi-social-wrap{width:100%;text-align:center;margin:0 0 26px}
.izzi-social--footer{gap:8px}
.izzi-social--footer a{width:40px;height:40px;background:rgba(255,255,255,.09)!important}
.izzi-social--footer a:hover{background:rgba(255,255,255,.2)!important}
.izzi-social--footer svg{width:20px;height:20px}
@media(max-width:640px){.izzi-social--footer a{width:44px;height:44px}}

/* Certaines pages (les légales) imposent une autre typo et soulignent tous
   les liens : le header et le footer gardent leur propre style. */
header, footer, .fr-strip {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
header a, footer a, .fr-strip a { text-decoration: none !important; }
/* Les pages n'ont pas toutes le même .container : on fixe celui du header
   et celui du footer pour que les deux soient cadrés pareil partout. */
header .container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
footer .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
header *, footer * { box-sizing: border-box; }

/* Les pages légales portaient un header clair à part : plus de raison d'être. */
header.legal-header { background: rgba(77,106,112,.96) !important; }
header.legal-header .bar { display: none; }

/* La page affichée se repère dans le menu. chrome_2_pages.py pose la classe
   et aria-current ; sans cette règle, la classe ne se voyait pas. */
header nav a.nav-here { color: #fff; background: rgba(255,255,255,.10); }
header nav .nav-dd-menu a.nav-here { background: rgba(255,255,255,.16); color: #fff; }


/* ── LOGO CLIQUABLE (retour accueil) ───────────────────────────── */
a.logo { text-decoration: none; }
a.logo .logo-img { transition: transform .2s, box-shadow .2s; }
a.logo:hover .logo-img { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
a.logo:focus-visible { outline: 2px solid #B2C9CF; outline-offset: 4px; border-radius: 18px; }

/* ── RETOUR EN HAUT ────────────────────────────────────────────── */
/* Placé au-dessus de la bulle de support (bas-droite) pour ne pas la masquer. */
.to-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #50757B; color: #fff; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  cursor: pointer; padding: 0; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #3a5a60; }
.to-top:focus-visible { outline: 2px solid #B2C9CF; outline-offset: 3px; }
.to-top svg { display: block; width: 20px; height: 20px; }
@media (max-width: 768px) { .to-top { right: 16px; bottom: 84px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none !important; } }
