/*!
 * alcfc-site.css — site public ALCFC-CI
 * Charge après : prettyBoostrap.css → theme-alcfc.css → (ce fichier)
 * Contenu : navigation (desktop + tiroir mobile + barre du bas façon application),
 * en-tête « texte centré sur image », cartes d'actualités, article, bureau,
 * formulaires publics, mode sombre.
 */

/* prettyBootstrap suppose border-box (width:100% + padding) : sans ce reset, champs et cartes débordent. Même règle que bo-alcfc.css. */
*, *::before, *::after { box-sizing: border-box; }

body.alcfc-site { background: var(--pb-bg); color: var(--pb-text); }
.alcfc-site main { min-height: 50vh; }
.alcfc-site img { max-width: 100%; }

/* ── Navigation ─────────────────────────────────────────────────── */
.alcfc-site .pb-navbar { position: sticky; top: 0; z-index: 200; background: color-mix(in srgb, var(--pb-surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.alcfc-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--pb-text); font-weight: 800; font-family: var(--pb-font-display); font-size: 1.15rem; }
.alcfc-brand img { width: 42px; height: 42px; object-fit: contain; }
.alcfc-brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; color: var(--pb-text-3); text-transform: uppercase; font-family: var(--pb-font); }
.alcfc-nav-actions { display: flex; align-items: center; gap: .4rem; }
.alcfc-icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--pb-border); background: var(--pb-surface); color: var(--pb-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; }
.alcfc-icon-btn:hover { color: var(--alcfc-red); border-color: var(--alcfc-red); }
.alcfc-burger { display: none; }
.alcfc-topbar-right button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; }

.alcfc-drawer { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.alcfc-drawer .voile { position: absolute; inset: 0; background: rgba(10, 10, 14, .45); opacity: 0; transition: opacity .25s; }
.alcfc-drawer .panneau { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--pb-surface); transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: var(--pb-sh-lg); }
.alcfc-drawer.ouvert { pointer-events: auto; }
.alcfc-drawer.ouvert .voile { opacity: 1; }
.alcfc-drawer.ouvert .panneau { transform: translateX(0); }
.alcfc-drawer .tete { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--pb-border); }
.alcfc-drawer nav { overflow-y: auto; padding: .6rem; flex: 1; }
.alcfc-drawer .groupe { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pb-text-3); padding: .9rem .7rem .35rem; }
.alcfc-drawer a { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 12px; color: var(--pb-text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.alcfc-drawer a i { color: var(--alcfc-red); width: 20px; text-align: center; }
.alcfc-drawer a.active, .alcfc-drawer a:hover { background: var(--alcfc-red-soft); }
.alcfc-drawer .pied { padding: 1rem; border-top: 1px solid var(--pb-border); display: grid; gap: .5rem; }

/* Bandeau cookies (mesure d'audience) */
.alcfc-cookies {
  position: fixed; left: .8rem; right: .8rem; bottom: .8rem; z-index: 320; max-width: 640px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: 1rem 1.2rem;
  background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 14px; box-shadow: var(--pb-sh-lg);
}
.alcfc-cookies p { margin: 0; flex: 1 1 260px; font-size: .86rem; color: var(--pb-text-2); }
.alcfc-cookies-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.alcfc-bottomnav { display: none; }

@media (max-width: 991px) {
  .alcfc-site .pb-navbar-nav { display: none; }
  .alcfc-burger { display: inline-flex; }
  .alcfc-topbar-left a:not(:first-child) { display: none; }
  .alcfc-site main { padding-bottom: 84px; }
  .alcfc-cookies { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .alcfc-site .pb-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .alcfc-bottomnav {
    display: flex; position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 300;
    background: color-mix(in srgb, var(--pb-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--pb-border); border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: .35rem;
  }
  .alcfc-bottomnav a, .alcfc-bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .2rem; border-radius: 16px; font-size: .64rem; font-weight: 700; color: var(--pb-text-3); text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .alcfc-bottomnav i { font-size: 1.2rem; }
  .alcfc-bottomnav .active { color: var(--alcfc-red); background: var(--alcfc-red-soft); }
  .alcfc-bottomnav .cta { color: #fff; background: var(--alcfc-red); }
}

/* ── En-tête de page (bandeau titre) ────────────────────────────── */
.alcfc-page-head { background: var(--pb-bg-subtle); border-bottom: 1px solid var(--pb-border); padding-block: 2.6rem; }
.alcfc-page-head h1 { margin: .5rem 0 .3rem; }
.alcfc-page-head p { margin: 0; color: var(--pb-text-2); max-width: 720px; }

/* ── Hero « texte centré sur image » ────────────────────────────── */
.alcfc-hero-centre { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #14121a; }
.alcfc-hero-centre .fond { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease, transform 7s ease; transform: scale(1.06); }
.alcfc-hero-centre .fond.is-active { opacity: 1; transform: scale(1); }
.alcfc-hero-centre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 12, .55), rgba(10, 8, 12, .72)); }
.alcfc-hero-centre .pb-container { position: relative; z-index: 2; text-align: center; }
.alcfc-hero-centre .alcfc-hero-slides { max-width: 860px; margin: 0 auto; min-height: 260px; }
.alcfc-hero-centre .pb-hero-title { color: #fff; text-align: center; font-size: clamp(2rem, 5vw, 3.4rem); }
.alcfc-hero-centre .pb-hero-subtitle { color: rgba(255, 255, 255, .82); text-align: center; margin-inline: auto; }
.alcfc-hero-centre .pb-eyebrow { color: #fbbf77; justify-content: center; display: flex; }
.alcfc-hero-centre .alcfc-text-red { color: #ff8a8a !important; }
.alcfc-hero-centre .alcfc-hero-actions { justify-content: center; }
.alcfc-hero-centre .alcfc-hero-dots { justify-content: center; }
.alcfc-hero-centre .alcfc-hero-dot { background: rgba(255, 255, 255, .35); }
.alcfc-hero-centre .alcfc-hero-dot.is-active { background: #fff; }
.alcfc-hero-centre .tricolore { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3; background: linear-gradient(90deg, #F77F00 33%, #fff 33% 66%, #009E60 66%); }
.alcfc-hero-emblem { filter: drop-shadow(0 18px 30px rgba(200, 16, 46, .18)); }
html[data-theme="dark"] .alcfc-hero { background: radial-gradient(ellipse 700px 400px at 90% 0%, hsla(var(--pb-h), 70%, 40%, .18), transparent 70%), var(--pb-bg); }

/* ── Cartes d'actualités ────────────────────────────────────────── */
.alcfc-actu { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.alcfc-actu .media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--alcfc-red-soft), var(--pb-bg-subtle)); display: flex; align-items: center; justify-content: center; }
.alcfc-actu .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.alcfc-actu:hover .media img { transform: scale(1.04); }
.alcfc-actu .media i { font-size: 2.3rem; color: var(--alcfc-red); opacity: .45; }
.alcfc-actu .pb-card-body { flex: 1; display: flex; flex-direction: column; }
.alcfc-actu .lire { margin-top: auto; padding-top: .75rem; font-weight: 700; font-size: .84rem; color: var(--alcfc-red); }
.alcfc-communique { display: flex; align-items: center; gap: 1rem; padding: .95rem .5rem; border-bottom: 1px solid var(--pb-border); text-decoration: none; color: var(--pb-text); border-radius: 10px; }
.alcfc-communique:last-child { border-bottom: 0; }
.alcfc-communique:hover { background: var(--pb-bg-subtle); }
.alcfc-communique i { font-size: 1.4rem; color: var(--alcfc-red); }

.alcfc-recherche { display: flex; gap: .5rem; max-width: 460px; }

/* ── Article ────────────────────────────────────────────────────── */
.alcfc-article { max-width: 820px; margin: 0 auto; }
.alcfc-article .couverture { width: 100%; border-radius: var(--pb-r-2xl); max-height: 460px; object-fit: cover; margin-bottom: 2rem; }
.alcfc-article .meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--pb-text-3); font-size: .85rem; }
.alcfc-article .chapo { font-size: 1.15rem; color: var(--pb-text-2); font-weight: 500; line-height: 1.6; }
.alcfc-contenu { font-size: 1.04rem; line-height: 1.8; color: var(--pb-text); }
.alcfc-contenu h2, .alcfc-contenu h3 { margin: 2rem 0 .8rem; }
.alcfc-contenu img { border-radius: 14px; margin: 1rem 0; height: auto; }
.alcfc-contenu blockquote { border-left: 4px solid var(--alcfc-red); margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem; color: var(--pb-text-2); font-style: italic; }
.alcfc-contenu a { color: var(--alcfc-red); }
.alcfc-contenu iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.alcfc-contenu .ql-align-center { text-align: center; }
.alcfc-contenu .ql-align-right { text-align: right; }
.alcfc-contenu .ql-align-justify { text-align: justify; }
.alcfc-partage { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ── Bureau ─────────────────────────────────────────────────────── */
.alcfc-membre { text-align: center; padding: 1.6rem 1.2rem; }
.alcfc-membre .photo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; border: 4px solid var(--pb-surface); box-shadow: 0 0 0 2px var(--alcfc-red-soft), var(--pb-sh); display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--alcfc-red), var(--alcfc-red-dark)); color: #fff; font-weight: 800; font-size: 1.8rem; font-family: var(--pb-font-display); }
.alcfc-membre .fonction { color: var(--alcfc-red); font-weight: 700; font-size: .85rem; }
.alcfc-membre .nom { font-weight: 800; font-size: 1.02rem; margin: .2rem 0; font-family: var(--pb-font-display); }
.alcfc-membre.president { border: 2px solid var(--alcfc-red); }
.alcfc-membre .fondateur { display: inline-block; margin-top: .5rem; font-size: .7rem; font-weight: 700; color: var(--alcfc-orange); }

/* ── Zones (qui sommes-nous) ────────────────────────────────────── */
.alcfc-villes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.alcfc-villes span { font-size: .74rem; padding: .18rem .6rem; border-radius: 99px; background: var(--pb-bg-subtle); border: 1px solid var(--pb-border); }
.alcfc-villes span.ouverte { border-color: var(--pb-success-bd); color: var(--pb-success); }

/* ── Formulaires publics ────────────────────────────────────────── */
.alcfc-form .pb-form-group { margin-bottom: 1rem; }
.alcfc-form .erreur { color: var(--pb-danger); font-size: .78rem; margin-top: .3rem; }
.alcfc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alcfc-etoiles { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.alcfc-etoiles input { display: none; }
.alcfc-etoiles label { font-size: 1.7rem; color: var(--pb-border-2); cursor: pointer; transition: color .15s, transform .15s; }
.alcfc-etoiles label:hover, .alcfc-etoiles label:hover ~ label, .alcfc-etoiles input:checked ~ label { color: #f5a524; }
.alcfc-etoiles label:hover { transform: scale(1.12); }
.alcfc-avis .etoiles { color: #f5a524; letter-spacing: .1em; }
.alcfc-avis blockquote { margin: .6rem 0 1rem; font-size: .95rem; color: var(--pb-text-2); }
.alcfc-infos-contact { display: grid; gap: 1rem; }
.alcfc-info { display: flex; gap: .9rem; align-items: flex-start; }
.alcfc-info i { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--alcfc-red-soft); color: var(--alcfc-red); font-size: 1.15rem; flex-shrink: 0; }
.alcfc-info b { display: block; }
.alcfc-info span, .alcfc-info a { color: var(--pb-text-2); font-size: .9rem; text-decoration: none; }

.alcfc-fichier { border: 1.5px dashed var(--pb-border-2); border-radius: 14px; padding: .9rem; display: flex; align-items: center; gap: .75rem; cursor: pointer; background: var(--pb-bg-subtle); transition: border-color .15s; }
.alcfc-fichier:hover { border-color: var(--alcfc-red); }
.alcfc-fichier.ok { border-style: solid; border-color: var(--pb-success-bd); }
.alcfc-fichier i { font-size: 1.5rem; color: var(--alcfc-red); }
.alcfc-fichier.ok i { color: var(--pb-success); }
.alcfc-fichier small { display: block; color: var(--pb-text-3); }
.alcfc-fichier input { display: none; }
.alcfc-recap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem 1.2rem; font-size: .88rem; }
.alcfc-recap b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pb-text-3); }

/* FormMultiStep sur thème sombre */
html[data-theme="dark"] .msf-dot { background: var(--pb-surface); border-color: var(--pb-border-2); color: var(--pb-text-2); }
html[data-theme="dark"] .msf-bar-track, html[data-theme="dark"] .msf-dot-line { background: var(--pb-border); }
html[data-theme="dark"] .msf-step-title, html[data-theme="dark"] .msf-label { color: var(--pb-text); }
html[data-theme="dark"] .msf-step-header, html[data-theme="dark"] .msf-nav { border-color: var(--pb-border); }
html[data-theme="dark"] .msf-field { background: var(--pb-bg-subtle); color: var(--pb-text); border-color: var(--pb-border-2); }

/* ── Suivi de candidature ───────────────────────────────────────── */
.alcfc-etapes { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0 .5rem; }
.alcfc-etapes::before { content: ''; position: absolute; left: 8%; right: 8%; top: 15px; height: 3px; background: var(--pb-border); }
.alcfc-etapes .e { position: relative; text-align: center; flex: 1; font-size: .74rem; font-weight: 600; color: var(--pb-text-3); }
.alcfc-etapes .e span { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto .4rem; display: flex; align-items: center; justify-content: center; background: var(--pb-surface); border: 3px solid var(--pb-border); position: relative; z-index: 1; }
.alcfc-etapes .e.fait span { background: var(--pb-success); border-color: var(--pb-success); color: #fff; }
.alcfc-etapes .e.actuel span { border-color: var(--alcfc-orange); color: var(--alcfc-orange); }
.alcfc-etapes .e.refus span { background: var(--alcfc-red); border-color: var(--alcfc-red); color: #fff; }

/* ── Newsletter & pied de page ──────────────────────────────────── */
.alcfc-newsletter { background: linear-gradient(135deg, var(--alcfc-red-dark), var(--alcfc-red)); color: #fff; border-radius: var(--pb-r-2xl); padding: 2rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.alcfc-newsletter h3 { color: #fff; margin: 0 0 .3rem; }
.alcfc-newsletter p { color: rgba(255, 255, 255, .82); margin: 0; }
.alcfc-newsletter form { display: flex; gap: .5rem; flex-wrap: wrap; }
.alcfc-newsletter .pb-input { flex: 1 1 200px; border-color: transparent; background: #fff; color: #111; }
.alcfc-newsletter .pb-btn { background: var(--alcfc-ink); color: #fff; border-color: var(--alcfc-ink); }
@media (max-width: 767px) { .alcfc-newsletter { grid-template-columns: 1fr; padding: 1.5rem; } }
.alcfc-site .pb-footer { border-top: 5px solid transparent; border-image: linear-gradient(90deg, #F77F00 33%, #fff 33% 66%, #009E60 66%) 1; }
.alcfc-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .86rem; }
.alcfc-footer-contact i { color: var(--alcfc-red); margin-right: .4rem; }
.alcfc-footer-contact a { color: inherit; text-decoration: none; }
.alcfc-recepisse { font-size: .75rem; color: var(--pb-text-3); margin-top: .6rem; }

/* ── Pagination Laravel ─────────────────────────────────────────── */
.alcfc-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.alcfc-pagination nav > div:first-child { display: none; }
.alcfc-pagination ul, .alcfc-pagination .pagination { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.alcfc-pagination a, .alcfc-pagination span[aria-current] span, .alcfc-pagination .page-link { min-width: 40px; height: 40px; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--pb-border); background: var(--pb-surface); color: var(--pb-text); text-decoration: none; font-weight: 600; font-size: .88rem; }
.alcfc-pagination .active .page-link, .alcfc-pagination span[aria-current] span { background: var(--alcfc-red); border-color: var(--alcfc-red); color: #fff; }
.alcfc-pagination .disabled .page-link { opacity: .45; }

/* ── Mode sombre : surfaces codées en dur dans la maquette ──────── */
html[data-theme="dark"] .pb-card-media[style*="#fff"] { background: var(--pb-bg-muted) !important; }
html[data-theme="dark"] .alcfc-status-card { background: var(--pb-surface); }
html[data-theme="dark"] .pb-navbar { border-bottom-color: var(--pb-border); }

.alcfc-vide { text-align: center; padding: 3rem 1rem; color: var(--pb-text-3); }
.alcfc-vide i { font-size: 2.4rem; display: block; margin-bottom: .6rem; opacity: .5; }
.alcfc-pdf { width: 100%; height: min(80vh, 900px); border: 1px solid var(--pb-border); border-radius: var(--pb-r-xl); background: var(--pb-bg-subtle); }
