/* ═══════════════════════════════════════
   PEINTURA — Header (toutes pages)
   ═══════════════════════════════════════ */
:root {
    --pt-navy: #0e1847;
    --pt-blue: #0b5ed7;
    --pt-blue-dark: #0848ad;
    --pt-yellow: #fec902;
}

.site-header { background:#fff; border-bottom:1px solid #e8ebf0; position:sticky; top:0; z-index:200; }
.header-inner {
    display:flex; align-items:center; gap:1.2rem;
    max-width:1280px; margin:0 auto; padding:.6rem 1.5rem;
}

/* Logo + tagline */
.header-brand { display:flex; align-items:center; gap:1rem; text-decoration:none; flex-shrink:0; }
.header-logo-img { height:46px; width:auto; display:block; }
.header-tagline {
    font-family:var(--font-body); font-size:.78rem; line-height:1.3; font-weight:500;
    color:var(--pt-navy); padding-left:1rem; border-left:1px solid #d5dae3; white-space:nowrap;
}

/* Nav — 6 rubriques avec sous-menus */
.nav-desktop { display:flex; align-items:center; gap:.1rem; margin-left:auto; padding-left:1.2rem; border-left:1px solid #e5e9f0; }
.nav-item { position:relative; display:flex; align-items:center; }
.nav-top {
    font-family:var(--font-body); font-size:.93rem; font-weight:600; color:var(--pt-navy);
    text-decoration:none; padding:.5rem .15rem .5rem .75rem; border-radius:999px 0 0 999px; white-space:nowrap;
    background:none; border:0; cursor:pointer; transition:background .15s, color .15s;
}
.nav-top--btn { display:flex; align-items:center; gap:.3rem; padding:.5rem .75rem; border-radius:999px; }
.nav-caret { display:flex; align-items:center; padding:.5rem .6rem .5rem .25rem; border:0; background:none; color:var(--pt-navy); cursor:pointer; border-radius:0 999px 999px 0; transition:background .15s, color .15s; }
.nav-top--btn.nav-caret { padding:.5rem .75rem; border-radius:999px; }
.nav-caret svg { transition:transform .2s; opacity:.75; }
.nav-item:hover .nav-top, .nav-item:hover .nav-caret, .nav-item.open .nav-top, .nav-item.open .nav-caret { color:var(--pt-blue); }
.nav-item.is-current .nav-top, .nav-item.is-current .nav-caret { background:#e3edfb; color:var(--pt-blue); }
.nav-item:hover .nav-caret svg, .nav-item.open .nav-caret svg { transform:rotate(180deg); }
.nav-drop {
    position:absolute; top:calc(100% + 10px); left:50%; transform:translate(-50%, 6px);
    display:grid; gap:1.4rem; padding:1.2rem 1.3rem; background:#fff; border:1px solid #e8ebf0; border-radius:16px;
    box-shadow:0 18px 48px rgba(14,24,71,.16); opacity:0; visibility:hidden; z-index:300;
    transition:opacity .15s, transform .15s, visibility .15s;
}
.nav-drop::before { content:''; position:absolute; left:0; right:0; top:-12px; height:12px; }
.nav-drop--1 { grid-template-columns:240px; }
.nav-drop--2 { grid-template-columns:260px 230px; }
.nav-drop--3 { grid-template-columns:240px 180px 190px; }
.nav-item:hover .nav-drop, .nav-item.open .nav-drop, .nav-item:focus-within .nav-drop { opacity:1; visibility:visible; transform:translate(-50%, 0); }
.nav-item:first-child .nav-drop { left:0; transform:translate(0, 6px); }
.nav-item:first-child:hover .nav-drop, .nav-item:first-child.open .nav-drop, .nav-item:first-child:focus-within .nav-drop { transform:none; }
.nav-col { display:flex; flex-direction:column; gap:.1rem; min-width:0; }
.nav-col-title { font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#8a94a6; margin:0 0 .35rem .6rem; }
.nav-drop a { display:block; padding:.45rem .6rem; border-radius:8px; text-decoration:none; }
.nav-drop a:hover { background:#f1f5fb; }
.nav-drop strong { display:block; font-size:.88rem; font-weight:600; color:var(--pt-navy); line-height:1.3; }
.nav-drop a:hover strong { color:var(--pt-blue); }
.nav-drop span { display:block; font-size:.76rem; color:#6b7280; margin-top:.1rem; }

/* Liens secondaires (À propos, Contact) */
.nav-util { display:flex; gap:.1rem; margin-right:.3rem; }
.nav-util a { font-size:.82rem; font-weight:500; color:#5b6474; text-decoration:none; padding:.35rem .5rem; border-radius:6px; white-space:nowrap; }
.nav-util a:hover, .nav-util a.active { color:var(--pt-blue); }

/* Actions */
.header-actions { display:flex; align-items:center; gap:.6rem; }
.header-search-btn {
    width:42px; height:42px; border-radius:50%; border:1.5px solid #c9d2e3; background:#fff;
    color:var(--pt-navy); display:flex; align-items:center; justify-content:center; cursor:pointer;
    transition:border-color .15s, color .15s;
}
.header-search-btn:hover, .header-search-btn[aria-expanded="true"] { border-color:var(--pt-blue); color:var(--pt-blue); }
.header-account {
    flex-shrink:0; display:flex; align-items:center; gap:.45rem; height:42px; padding:0 1.15rem;
    background:var(--pt-blue); color:#fff; border-radius:999px; text-decoration:none;
    font-size:.88rem; font-weight:600; white-space:nowrap; transition:background .15s;
}
.header-account:hover { background:var(--pt-blue-dark); }

.header-search-panel { border-top:1px solid #eef1f5; background:#fff; padding:.8rem 1.5rem; }
.header-search-form { max-width:760px; margin:0 auto; display:flex; gap:.5rem; }
.header-search-form input {
    flex:1; height:44px; border:1.5px solid #d5dae3; border-radius:10px; padding:0 1rem;
    font-family:var(--font-body); font-size:.92rem; outline:none;
}
.header-search-form input:focus { border-color:var(--pt-blue); }
.header-search-form button {
    height:44px; padding:0 1.3rem; border:0; border-radius:10px; background:var(--pt-yellow);
    color:var(--pt-navy); font-weight:700; font-family:var(--font-body); cursor:pointer;
}

/* Mobile */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; border:none; background:none; }
.hamburger span { display:block; width:22px; height:2px; background:var(--pt-navy); border-radius:2px; transition:transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.nav-mobile { display:none; flex-direction:column; background:#fff; border-top:1px solid #f0f2f5; padding:.5rem 1.25rem 1.25rem; }
.nav-mobile.open { display:flex; }
.nav-mobile details { border-bottom:1px solid #f0f2f5; }
.nav-mobile summary { list-style:none; cursor:pointer; padding:.85rem .25rem; font-weight:700; color:var(--pt-navy); display:flex; justify-content:space-between; align-items:center; }
.nav-mobile summary::-webkit-details-marker { display:none; }
.nav-mobile summary::after { content:'+'; font-size:1.25rem; color:#9ca3af; }
.nav-mobile details[open] summary::after { content:'–'; }
.nav-mobile details a { display:block; padding:.45rem .8rem; color:#374151; text-decoration:none; font-size:.92rem; }
.nav-mobile details a:hover { color:var(--pt-blue); }
.nav-mobile .nav-mobile-main { color:var(--pt-blue); font-weight:700; }
.nav-mobile-title { font-size:.7rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#8a94a6; margin:.6rem .8rem .2rem; }
.nav-mobile-util { display:flex; gap:1.2rem; padding:.9rem .25rem 0; }
.nav-mobile-util a { color:#374151; font-weight:600; text-decoration:none; font-size:.92rem; }
.nav-mobile-cta {
    margin-top:1rem; background:var(--pt-blue); color:#fff !important; border-radius:10px;
    padding:.8rem 1rem; font-weight:600; text-align:center; text-decoration:none;
}

/* Breadcrumb */
.breadcrumb-bar { background:#fff; border-bottom:1px solid #f3f4f6; padding:.5rem 1.25rem; }
.breadcrumb-nav { display:flex; align-items:center; gap:.35rem; font-size:.78rem; color:#9ca3af; flex-wrap:wrap; max-width:1160px; margin:0 auto; }
.breadcrumb-nav a { color:#9ca3af; text-decoration:none; }
.breadcrumb-nav a:hover { color:#111; }
.breadcrumb-nav .current { color:#374151; font-weight:500; }

/* Le slogan n'apparaît que si la place le permet (logo + 6 rubriques + liens secondaires) */
.header-tagline { display:none; }
@media (min-width:1500px) {
    .header-inner { max-width:1460px; }
    .header-tagline { display:block; }
}
@media (max-width:1180px) {
    .nav-util { display:none; }
}
@media (max-width:1240px) {
    .nav-desktop { border-left:0; padding-left:0; }
}
@media (max-width:1060px) {
    .nav-desktop { display:none; }
    .hamburger { display:flex; }
    .header-actions { margin-left:auto; }
}
@media (max-width:560px) {
    .header-inner { padding:.55rem 1rem; gap:.75rem; }
    .header-logo-img { height:36px; }
    .header-account { width:42px; padding:0; justify-content:center; font-size:0; gap:0; }
    .header-search-panel { padding:.75rem 1rem; }
    .header-search-form button { padding:0 .9rem; }
}

/* ═══════════════════════════════════════
   PEINTURA — Footer (toutes pages)
   ═══════════════════════════════════════ */
.pt-footer { position:relative; overflow:hidden; background:#0a1c36; color:#fff; padding:2.6rem 0 0; }
.pt-footer-fan { position:absolute; right:0; top:0; width:300px; height:auto; pointer-events:none;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%); mask-image:linear-gradient(90deg,transparent 0,#000 18%); }
.pt-footer-inner { position:relative; max-width:1280px; margin:0 auto; padding:0 1.5rem; }
.pt-footer-grid { display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:2rem; padding-right:260px; }
.pt-footer-brand { padding-right:2rem; border-right:1px solid rgba(255,255,255,.15); }
.pt-footer-brand .footer-logo-img { height:46px; width:auto; display:block; margin-bottom:1rem; }
.pt-footer-brand p { font-size:.88rem; line-height:1.55; color:rgba(255,255,255,.85); max-width:280px; }
.pt-footer h4 { font-family:var(--font-body); font-size:1rem; font-weight:700; color:#fff; margin-bottom:.8rem; text-transform:none; letter-spacing:0; }
.pt-footer-col a { display:block; font-size:.9rem; color:rgba(255,255,255,.85); text-decoration:none; margin-bottom:.5rem; }
.pt-footer-col a:hover { color:#fff; }
.pt-footer-col a.pt-footer-cta { color:#4fb3ff; font-weight:600; }
.pt-footer-col a.pt-footer-cta:hover { color:#8fd0ff; }
.pt-footer-bottom {
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.8rem;
    margin-top:2.2rem; padding:1.1rem 0 1.3rem; border-top:1px solid rgba(255,255,255,.15);
    font-size:.84rem; color:rgba(255,255,255,.85);
}
.pt-footer-legal { display:flex; gap:0; }
.pt-footer-legal a { color:rgba(255,255,255,.85); text-decoration:none; padding:0 .9rem; border-left:1px solid rgba(255,255,255,.3); }
.pt-footer-legal a:first-child { border-left:0; }
.pt-footer-legal a:hover { color:#fff; }
@media (max-width:1100px) {
    .pt-footer-grid { padding-right:0; }
    .pt-footer-fan { width:200px; opacity:.35; }
}
@media (max-width:760px) {
    .pt-footer-grid { grid-template-columns:1fr 1fr; gap:1.6rem; }
    .pt-footer-brand { grid-column:1 / -1; border-right:0; padding-right:0; }
    .pt-footer-inner { padding:0 1rem; }
    .pt-footer-fan { width:150px; }
    .pt-footer-legal a:first-child { padding-left:0; }
}
/* Sous-menus des 3 dernières rubriques alignés à droite (pas de débordement) */
.nav-item:nth-child(n+4) .nav-drop { left:auto; right:0; transform:translate(0, 6px); }
.nav-item:nth-child(n+4):hover .nav-drop, .nav-item:nth-child(n+4).open .nav-drop, .nav-item:nth-child(n+4):focus-within .nav-drop { transform:none; }
.nav-item:nth-child(2) .nav-drop, .nav-item:nth-child(3) .nav-drop { left:0; transform:translate(0, 6px); }
.nav-item:nth-child(2):hover .nav-drop, .nav-item:nth-child(2).open .nav-drop, .nav-item:nth-child(2):focus-within .nav-drop,
.nav-item:nth-child(3):hover .nav-drop, .nav-item:nth-child(3).open .nav-drop, .nav-item:nth-child(3):focus-within .nav-drop { transform:none; }
.nav-drop { max-width:calc(100vw - 2rem); }
