/* Gabarit du site : en-tête (en-) et pied de page (pd-). Mobile-first, sans dépendance Tailwind. */

.en-entete {
    --en-encre: #0d1726;
    --en-encre-2: #15233a;
    --en-fond: #1a2a44;
    --en-signal: #2cc9a8;
    --en-signal-fonce: #1fae90;
    --en-texte: #c9d1dd;
    --en-doux: #8994a6;
    --en-live: #22c55e;
    --en-police-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
}

.en-entete *, .en-entete *::before, .en-entete *::after { box-sizing: border-box; }
.en-entete p, .en-entete ul { margin: 0; padding: 0; list-style: none; }

.en-conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.en-live {
    width: 7px; height: 7px; border-radius: 50%; background: var(--en-live);
    animation: en-pulsation 1.8s ease-out infinite;
}

/* ---------- Barre ---------- */

.en-entete {
    position: sticky; top: 0; z-index: 60;
    background: var(--en-fond); color: var(--en-texte);
    border-bottom: 1px solid rgba(44, 201, 168, .35);
    transition: box-shadow .25s;
}
.en-entete.est-defile { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.en-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }

.en-logo { display: flex; align-items: center; flex-shrink: 0; }
.en-logo img { display: block; width: auto; height: 36px; }

.en-liens { display: none; }
.en-liens a, .en-lien-discret {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    border: 0; border-radius: 10px; background: none; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 500; color: var(--en-texte); text-decoration: none; white-space: nowrap;
    transition: color .2s, background-color .2s;
}
.en-liens a:hover, .en-lien-discret:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.en-lien-discret { display: none; }

.en-pastille {
    display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px;
    background: var(--en-signal); color: var(--en-encre);
    font-family: var(--en-police-mono); font-size: .7rem; font-weight: 700; text-align: center;
}

.en-actions { display: flex; align-items: center; gap: 8px; }

.en-cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px;
    border-radius: 10px; background: var(--en-signal); color: var(--en-encre);
    font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap;
    transition: background-color .2s;
}
.en-cta:hover { background: var(--en-signal-fonce); }
.en-cta__long { display: none; }
.en-cta--large { width: 100%; min-height: 56px; font-size: 1.05rem; }

.en-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
    background: none; cursor: pointer;
}
.en-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.menu-ouvert .en-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-ouvert .en-burger span:nth-child(2) { opacity: 0; }
.menu-ouvert .en-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.en-entete a:focus-visible, .en-entete button:focus-visible { outline: 3px solid var(--en-signal); outline-offset: 2px; }

/* ---------- Compte connecté ---------- */

.en-compte { position: relative; display: none; }
.en-compte__bouton {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px 4px 4px;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: none; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 600; color: #fff;
}
.en-compte__bouton img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.en-compte__bouton svg, .en-entete svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.en-compte__menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px;
    border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(13, 23, 38, .22);
}
.en-compte__menu a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 8px; font-size: .9rem; color: #1b2433; text-decoration: none; }
.en-compte__menu a:hover { background: #f5f2ec; }
.en-compte__identite { display: flex; flex-direction: column; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid #eee7da; }
.en-compte__identite strong { font-size: .92rem; color: #0d1726; }
.en-compte__identite span { overflow: hidden; text-overflow: ellipsis; font-size: .78rem; color: #5a6474; }
.en-compte__menu .en-compte__sortie, .en-panneau .en-compte__sortie { color: #d92d20; }

/* ---------- Panneau mobile plein écran ---------- */

.en-panneau {
    position: fixed; left: 0; right: 0; top: 60px; bottom: 0; z-index: 59;
    overflow-y: auto; padding: 12px 0 32px; background: var(--en-fond);
}
.en-panneau__identite { display: flex; align-items: center; gap: 12px; padding: 12px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.en-panneau__identite img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.en-panneau__identite p { display: flex; flex-direction: column; }
.en-panneau__identite strong { color: #fff; }
.en-panneau__identite span { font-size: .8rem; color: var(--en-doux); }
.en-panneau__liens a {
    display: flex; align-items: center; gap: 14px; min-height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none;
}
.en-panneau__liens a.en-panneau__secondaire { min-height: 50px; font-size: 1rem; font-weight: 500; color: var(--en-texte); }
.en-panneau__numero { font-family: var(--en-police-mono); font-size: .75rem; font-weight: 600; color: var(--en-signal); }
.en-panneau__actions { display: grid; gap: 10px; margin-top: 24px; }
.en-bouton-contour {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
    border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 10px; background: none; cursor: pointer;
    font: inherit; font-weight: 600; color: #fff; text-decoration: none;
}
.en-panneau__pied { display: flex; align-items: center; gap: 8px; margin-top: 28px !important; font-family: var(--en-police-mono); font-size: .75rem; color: var(--en-doux); }

@keyframes en-pulsation {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .en-entete * { animation: none !important; transition: none !important; }
}

/* ---------- Tablette ---------- */

@media (min-width: 640px) {
    .en-conteneur { padding: 0 32px; }
    .en-cta__court { display: none; }
    .en-cta__long { display: inline; }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
    .en-barre { height: 72px; }
    .en-logo img { height: 44px; }
    .en-liens { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 16px; }
    .en-lien-discret, .en-compte { display: inline-flex; }
    .en-burger, .en-panneau { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .en-liens a, .en-lien-discret { padding: 0 9px; font-size: .85rem; }
}

/* =========================================================
   Pied de page (pd-) — aplats, même charte que l'en-tête
   ========================================================= */

.pd {
    --pd-encre: #0d1726;
    --pd-encre-2: #15233a;
    --pd-signal: #2cc9a8;
    --pd-signal-fonce: #1fae90;
    --pd-texte: #aab4c3;
    --pd-doux: #8994a6;
    --pd-police-titre: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    background: var(--pd-encre); color: var(--pd-texte); font-size: .95rem; line-height: 1.55;
}
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd p, .pd ul { margin: 0; padding: 0; list-style: none; }
.pd svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd a:focus-visible { outline: 3px solid var(--pd-signal); outline-offset: 3px; border-radius: 6px; }
.pd-conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.pd-appel { background: var(--pd-signal); color: var(--pd-encre); }
.pd-appel__contenu { display: flex; flex-direction: column; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.pd-appel__titre { font-family: var(--pd-police-titre); font-weight: 800; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.pd-appel__texte { margin-top: 6px; font-weight: 500; }
.pd-appel__bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px;
    border-radius: 12px; background: var(--pd-encre); color: #fff; font-weight: 700; text-decoration: none;
    transition: background-color .2s;
}
.pd-appel__bouton:hover { background: var(--pd-encre-2); }

.pd-corps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding-top: 48px; padding-bottom: 40px; }
.pd-marque { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pd-marque img { display: block; width: auto; height: 44px; }
.pd-marque p { max-width: 420px; }
.pd-marque__chiffre strong { color: #fff; font-family: var(--pd-police-titre); font-size: 1.3rem; }
.pd-reseau {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; color: #fff; transition: border-color .2s, color .2s;
}
.pd-reseau:hover { border-color: var(--pd-signal); color: var(--pd-signal); }

.pd-colonne:last-of-type { grid-column: 1 / -1; }
.pd-colonne__titre { margin-bottom: 6px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-doux); }
.pd-colonne a { display: flex; align-items: center; min-height: 44px; color: var(--pd-texte); text-decoration: none; transition: color .2s; }
.pd-colonne a:hover { color: var(--pd-signal); }

.pd-bas {
    display: flex; flex-direction: column; gap: 6px; padding-top: 20px; padding-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: var(--pd-doux);
}
.pd-bas p { display: flex; align-items: center; gap: 8px; }
.pd-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

@media (min-width: 640px) {
    .pd-conteneur { padding: 0 32px; }
    .pd-appel__contenu { flex-direction: row; align-items: center; justify-content: space-between; }
    .pd-bas { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .pd-appel__contenu { padding-top: 48px; padding-bottom: 48px; }
    .pd-corps { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 64px; padding-bottom: 56px; }
    .pd-marque { grid-column: auto; }
    .pd-colonne:last-of-type { grid-column: auto; }
    .pd-colonne a { min-height: 36px; }
}
