/* =========================================================================
   PLAZUR — Header / Drawer / Hero (passe 2)
   Dé-scopé depuis 05-header-drawer-hero.css (.plz-root retiré -> classes globales).
   Chargé après plz-foundations.css. Staging uniquement.
   ========================================================================= */

.plz-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255,255,255,0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
}
.plz-header.is-scrolled {
    background: rgba(255,255,255,0.94);
    border-bottom-color: var(--plz-line);
    box-shadow: 0 1px 0 rgba(16,24,32,.04);
}
.plz-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 28px;
    max-width: 1360px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.plz-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--plz-navy);
}
.plz-logo__mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.plz-logo__text { display: inline-flex; flex-direction: column; line-height: 1; }
.plz-logo__main {
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 15px;
    color: var(--plz-navy);
}
.plz-logo__sub {
    font-family: var(--plz-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.20em;
    color: var(--plz-text-mute);
    margin-top: 4px;
}

.plz-nav {
    display: none;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}
.plz-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--plz-text);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.005em;
    transition: color .2s ease;
    white-space: nowrap;
}
.plz-nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--plz-red);
    transition: width .25s ease;
}
.plz-nav__link:hover { color: var(--plz-red); }
.plz-nav__link:hover::after { width: 100%; }

.plz-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.plz-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--plz-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--plz-navy);
    transition: background .2s ease, color .2s ease;
}
.plz-icon-btn:hover { background: var(--plz-gray); color: var(--plz-red); }

.plz-burger {
    width: 44px;
    height: 40px;
    border-radius: var(--plz-radius);
    border: 1px solid var(--plz-gray-dark);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color .2s ease, background .2s ease;
}
.plz-burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--plz-navy);
    transition: transform .2s ease, opacity .2s ease;
}
.plz-burger:hover { border-color: var(--plz-navy); }

/* Nav visible at desktop ≥1180px; hamburger ALWAYS visible for premium drawer access */
@media (min-width: 1180px) {
    .plz-nav { display: flex; }
}
/* Hamburger persists also on desktop — premium drawer access */
@media (max-width: 720px) {
    .plz-btn--cta-header span:not(.plz-btn__arrow) { display: none; }
    .plz-logo__sub { display: none; }
}

/* ─────────── DRAWER ─────────── */
.plz-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,16,24,0.55);
    opacity: 0;
    visibility: hidden;
    z-index: 90;
    transition: opacity .35s ease, visibility .35s ease;
}
.plz-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.plz-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(480px, 100vw);
    background: var(--plz-bg-white);
    z-index: 100;
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.16,.84,.44,1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--plz-shadow-3);
}
.plz-drawer.is-open { transform: translateX(0); }

.plz-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--plz-gray);
}
.plz-drawer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--plz-navy);
    font-size: 13px;
}
.plz-drawer__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--plz-navy);
    color: var(--plz-metal);
    font-family: var(--plz-font-mono);
    font-size: 11px;
    letter-spacing: 0;
}
.plz-drawer__close {
    color: var(--plz-navy);
    padding: 8px;
    border-radius: var(--plz-radius);
    transition: background .2s ease;
}
.plz-drawer__close:hover { background: var(--plz-gray); }

.plz-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 26px 32px 16px;
}
.plz-drawer__group { margin-bottom: 32px; }
.plz-drawer__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--plz-font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--plz-red);
    margin-bottom: 16px;
}
.plz-drawer__title i {
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--plz-red);
}
.plz-drawer__list { display: flex; flex-direction: column; gap: 0; }
.plz-drawer__list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    font-size: 17px;
    color: var(--plz-navy);
    font-weight: 500;
    border-bottom: 1px solid var(--plz-gray);
    transition: color .2s ease, padding-left .2s ease, border-bottom-color .2s ease;
}
.plz-drawer__list a:hover {
    color: var(--plz-red);
    padding-left: 6px;
    border-bottom-color: var(--plz-red);
}
.plz-drawer__list a:last-child { border-bottom: none; }
.plz-drawer__idx {
    font-family: var(--plz-font-mono);
    font-size: 11px;
    color: var(--plz-text-mute);
    min-width: 22px;
}
.plz-drawer__list--bare a { font-weight: 600; font-size: 19px; }
.plz-drawer__list--bare a .plz-drawer__idx { display: none; }

.plz-drawer__foot {
    padding: 20px 32px 24px;
    border-top: 1px solid var(--plz-gray);
    background: var(--plz-bg);
}
.plz-drawer__legal {
    margin-top: 12px;
    font-size: 11px;
    color: var(--plz-text-mute);
    text-align: center;
    font-family: var(--plz-font-mono);
    letter-spacing: 0.04em;
}

body.plz-no-scroll { overflow: hidden; }

/* ─────────── HERO ─────────── */
.plz-hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background: var(--plz-bg-warm);
    border-bottom: 1px solid var(--plz-line);
    display: flex;
    align-items: center;
    padding: 80px 0 100px;
}
@media (max-width: 1024px) { .plz-hero { min-height: 70vh; padding: 60px 0 80px; } }
@media (max-width: 640px)  { .plz-hero { min-height: auto;  padding: 56px 0 64px; } }

.plz-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.plz-hero__bg-svg {
    width: 100%; height: 100%;
}

.plz-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}
@media (min-width: 1024px) {
    .plz-hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 80px;
    }
}

.plz-hero__copy { position: relative; z-index: 2; }
.plz-hero__title {
    font-size: clamp(36px, 5.8vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--plz-navy);
    margin-bottom: 26px;
}
.plz-hero__title em {
    font-style: italic;
    font-family: var(--plz-font-serif);
    font-weight: 500;
    color: var(--plz-navy);
}
.plz-hero__title-accent {
    color: var(--plz-red);
    font-weight: 800;
}
.plz-hero__lead {
    font-size: clamp(15px, 1.3vw, 19px);
    color: var(--plz-text-soft);
    max-width: 48ch;
    line-height: 1.7;
    margin-bottom: 36px;
}
.plz-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 44px;
}

.plz-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.plz-hero__tags li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--plz-gray-dark);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-family: var(--plz-font-mono);
    color: var(--plz-navy);
    letter-spacing: 0.03em;
}
.plz-tag__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--plz-red);
}

.plz-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plz-hero__visual-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(231,227,220,0.5) 100%);
    border: 1px solid var(--plz-line);
    border-radius: var(--plz-radius-lg);
    overflow: visible;
}
.plz-hero__part {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.plz-hero__visual-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--plz-navy);
}
.plz-hero__visual-corner--tl { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.plz-hero__visual-corner--tr { top: -1px; right: -1px; border-left:  0; border-bottom: 0; }
.plz-hero__visual-corner--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.plz-hero__visual-corner--br { bottom: -1px; right: -1px; border-left:  0; border-top: 0; }

.plz-hero__chip {
    position: absolute;
    left: 14px;
    bottom: -16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--plz-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 100px;
    font-family: var(--plz-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    box-shadow: var(--plz-shadow-2);
}
.plz-hero__chip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--plz-red);
    box-shadow: 0 0 0 4px rgba(182,49,43,0.18);
}
@media (max-width: 1024px) {
    .plz-hero__visual { order: -1; }
    .plz-hero__visual-frame { max-width: 380px; }
}

.plz-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.plz-hero__scroll-label {
    font-family: var(--plz-font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--plz-text-mute);
}
.plz-hero__scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, transparent 0%, var(--plz-navy) 100%);
}
@media (max-width: 1024px) { .plz-hero__scroll { display: none; } }

/* ─────────── PROJET (editorial band) ─────────── */

/* --- Correctif responsive header — overflow mobile ---
   Cause reelle : la barre .plz-header__actions (recherche + CTA "Un projet ?" + hamburger)
   a une largeur incompressible qui deborde des viewports < ~430px.
   Correctif CSS pur, scoped sous .plz-header. Ne modifie ni le HTML, ni les liens, ni #plz-drawer.
   Conserve toujours : logo, .plz-burger, ouverture du drawer. */

/* 1. Autoriser les conteneurs a retrecir */
.plz-header .plz-header__inner {
  min-width: 0;
}
.plz-header .plz-header__actions {
  min-width: 0;
  flex-shrink: 1;
}

/* 2. Sous 720px : reduire le LIBELLE du CTA (texte = noeud direct, pas un span).
   font-size:0 masque le texte ; le SVG (width/height="14") reste visible ;
   le lien reste cliquable et son nom accessible "Un projet ?" est conserve. */
@media (max-width: 720px) {
  .plz-header .plz-header__actions .plz-btn--cta-header {
    font-size: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 3. Sous 480px : reduire proprement les espacements (logo + hamburger restent entiers) */
@media (max-width: 480px) {
  .plz-header .plz-header__inner {
    gap: 14px;
  }
  .plz-header .plz-header__actions {
    gap: 8px;
  }
}

/* 4. Sous 400px : masquer uniquement la recherche (non essentielle ; menu accessible via le hamburger).
   Ne jamais masquer .plz-burger. Ne jamais modifier #plz-drawer. */
@media (max-width: 400px) {
  .plz-header .plz-header__actions .plz-icon-btn {
    display: none;
  }
}
