/* ==========================================================================
   ASHA NLA : feuille de style principale.
   Charte : noir profond et or, aigle doré. Inter (interface) +
   Cormorant Garamond (titres). Self-hosted, aucune dépendance externe.
   ========================================================================== */

/* ----- Polices ----- */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* ----- Jetons de design ----- */
:root {
    --black: #050505;
    --black-warm: #12100c;
    --black-soft: #0d0b07;
    --gold: #d5a338;
    --gold-bright: #f3ca65;
    --gold-deep: #94600f;
    --ivory: #f7f2e8;
    --grey-warm: #b7ad9b;
    --line: rgba(213, 163, 56, 0.22);
    --line-soft: rgba(213, 163, 56, 0.12);
    --error: #e08a80;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;

    --container: 1120px;
    --radius: 10px;
    --pad-block: clamp(4rem, 9vw, 7rem);
}

/* ----- Base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--black);
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 1rem;
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.15rem; }

a {
    color: var(--gold-bright);
    text-decoration: underline;
    text-decoration-color: rgba(243, 202, 101, 0.45);
    text-underline-offset: 0.2em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--ivory); text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: var(--gold); color: var(--black); }

/* ----- Utilitaires ----- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--black); }

/* ----- En-tête ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(160deg, rgba(213, 163, 56, 0.12), transparent 60%);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold-bright);
    white-space: nowrap;
}
a.brand:hover .brand-name { color: var(--ivory); }

.site-nav ul {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    font-size: 0.95rem;
    color: var(--grey-warm);
    text-decoration: none;
    padding-block: 0.4rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a[aria-current="page"] {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

/* Bouton menu mobile */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 0.7rem;
    cursor: pointer;
}
.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s ease;
}
.nav-toggle-line::before,
.nav-toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-line::before { top: -6px; }
.nav-toggle-line::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line::before { top: 0; transform: rotate(90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line::after { top: 0; transform: rotate(90deg); opacity: 0; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black-warm);
        border-bottom: 1px solid var(--line-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .site-nav.is-open { max-height: 400px; }
    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.25rem;
    }
    .site-nav li { border-bottom: 1px solid var(--line-soft); }
    .site-nav li:last-child { border-bottom: 0; }
    .site-nav a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.05rem;
        border-bottom: 0;
    }
    .site-nav a[aria-current="page"] { color: var(--gold-bright); }
}

/* ----- Héros (accueil) ----- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 72% 38%, rgba(148, 96, 15, 0.32), transparent 70%),
        radial-gradient(ellipse 45% 40% at 20% 80%, rgba(148, 96, 15, 0.10), transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-text { max-width: 34rem; }
.hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.hero-title {
    font-size: clamp(2.7rem, 6vw, 4.3rem);
    font-weight: 700;
    background: linear-gradient(115deg, var(--gold-bright) 10%, var(--gold) 55%, var(--gold-deep) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.9rem;
}
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: 1.2rem;
}
.hero-intro { color: var(--grey-warm); }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}
.hero-figure {
    justify-self: center;
    position: relative;
    max-width: 560px;
}
.hero-figure img {
    width: 100%;
    height: auto;
}
.hero-figure::before {
    content: "";
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle at 50% 42%, rgba(243, 202, 101, 0.13), transparent 65%);
    pointer-events: none;
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { order: -1; max-width: 320px; }
}

/* ----- Boutons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.5rem;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-solid {
    background: linear-gradient(120deg, var(--gold-bright), var(--gold));
    color: var(--black);
    border: 1px solid var(--gold);
}
.btn-solid:hover { filter: brightness(1.08); color: var(--black); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--gold-bright);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ivory); }

/* ----- Sections ----- */
.section { padding-block: var(--pad-block); }
.section + .section { padding-top: 0; }
.section-alt {
    background: var(--black-warm);
    border-block: 1px solid var(--line-soft);
}
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--grey-warm); margin: 0; }
.section-kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.grille { display: grid; gap: 1.3rem; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; }
}

/* ----- Cartes ----- */
.carte {
    background: linear-gradient(165deg, var(--black-warm), var(--black-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 1.9rem);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.carte:hover { border-color: rgba(213, 163, 56, 0.45); transform: translateY(-2px); }
.carte h3 { margin-bottom: 0.7rem; }
.carte p:last-child { margin-bottom: 0; }
.carte .carte-statut {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    margin-bottom: 0.9rem;
}
.carte-icone {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(213, 163, 56, 0.07);
    margin-bottom: 1.1rem;
}
.carte-icone svg { width: 24px; height: 24px; stroke: var(--gold-bright); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Liste numérotée (méthode) ----- */
.etapes {
    counter-reset: etape;
    display: grid;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.etapes li {
    counter-increment: etape;
    position: relative;
    background: var(--black-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem 1.3rem 4.2rem;
}
.etapes li::before {
    content: counter(etape, decimal-leading-zero);
    position: absolute;
    left: 1.3rem;
    top: 1.25rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
}
.etapes h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.etapes p { margin: 0; color: var(--grey-warm); font-size: 0.98rem; }

/* ----- Bandeau d'ancrage (page texte) ----- */
.page-head {
    padding-block: clamp(3rem, 7vw, 5rem) clamp(1.6rem, 4vw, 2.6rem);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 85% 0%, rgba(148, 96, 15, 0.18), transparent 70%);
    pointer-events: none;
}
.page-head .container { position: relative; }
.page-head h1 { margin-bottom: 0.8rem; }
.page-head .lead {
    max-width: 46rem;
    color: var(--grey-warm);
    font-size: 1.12rem;
    margin: 0;
}

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--gold-bright); font-weight: 600; }

/* ----- Encadré définition (mentions légales) ----- */
.tableau-legal {
    display: grid;
    gap: 0.55rem 1.5rem;
    grid-template-columns: minmax(140px, 220px) 1fr;
    background: var(--black-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-size: 0.98rem;
}
.tableau-legal dt { color: var(--grey-warm); font-weight: 500; }
.tableau-legal dd { margin: 0; }
@media (max-width: 640px) {
    .tableau-legal { grid-template-columns: 1fr; gap: 0.15rem; }
    .tableau-legal dt { margin-top: 0.7rem; }
}

/* ----- Formulaires ----- */
.formulaire {
    background: var(--black-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.5vw, 2.3rem);
    max-width: 640px;
}
.form-row { margin-bottom: 1.15rem; }
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
    margin-bottom: 0.4rem;
}
.form-row .obligatoire { color: var(--gold); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
    width: 100%;
    background: var(--black-soft);
    border: 1px solid rgba(213, 163, 56, 0.18);
    border-radius: 8px;
    color: var(--ivory);
    font: inherit;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s ease;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: rgba(213, 163, 56, 0.35); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(213, 163, 56, 0.15);
}
.form-row .form-erreur {
    display: block;
    color: var(--error);
    font-size: 0.88rem;
    margin-top: 0.35rem;
}
.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] { border-color: var(--error); }
.form-consent {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--grey-warm);
}
.form-consent input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--gold);
    flex-shrink: 0;
}
/* champ pot de miel : invisible pour les humains */
.champ-miel {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-actions { margin-top: 1.5rem; }

/* panneaux d'état */
.formule-note {
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}
.note-succes {
    background: rgba(213, 163, 56, 0.09);
    border: 1px solid rgba(213, 163, 56, 0.4);
    color: var(--ivory);
}
.note-erreur {
    background: rgba(224, 138, 128, 0.08);
    border: 1px solid rgba(224, 138, 128, 0.4);
    color: var(--ivory);
}
.note-succes strong { color: var(--gold-bright); }

/* ----- Contact : infos latérales ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside ul { list-style: none; padding: 0; margin: 0; }
.contact-aside li {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--grey-warm);
}
.contact-aside li strong { color: var(--ivory); font-weight: 600; display: block; }

/* ----- Citation / valeur ----- */
.mise-en-avant {
    border-left: 3px solid var(--gold);
    padding: 0.4rem 0 0.4rem 1.4rem;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ivory);
}

/* ----- Animation de révélation (progressive enhancement : sans JS, tout est visible) ----- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .js .reveal.is-visible { opacity: 1; transform: none; }
    .js .hero-figure.reveal { transform: translateY(10px) scale(0.985); }
    .js .hero-figure.reveal.is-visible { transform: none; }
}

/* ----- Pied de page ----- */
.site-footer {
    background: #0a0806;
    border-top: 1px solid var(--line-soft);
    padding-top: clamp(2.5rem, 6vw, 4rem);
    margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold-bright);
    margin-bottom: 0.6rem;
}
.footer-tagline { color: var(--grey-warm); margin-bottom: 0.4rem; }
.footer-place { font-size: 0.92rem; color: var(--grey-warm); }
.footer-title {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}
.footer-nav ul, .footer-legal ul {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}
.footer-nav li, .footer-legal li { margin-bottom: 0.5rem; }
.footer-nav a, .footer-legal a {
    color: var(--grey-warm);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-company { font-size: 0.88rem; color: var(--grey-warm); line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding-block: 1.2rem;
    font-size: 0.88rem;
    color: var(--grey-warm);
}
.footer-bottom p { margin: 0; }

/* ----- Écrans très étroits (360 et moins) ----- */
@media (max-width: 380px) {
    .hero-actions .btn { width: 100%; justify-content: center; }
    .brand-mark { width: 36px; height: 36px; font-size: 1.3rem; }
    .brand-name { font-size: 1.12rem; letter-spacing: 0.1em; }
}

/* ----- Écrans larges ----- */
@media (min-width: 1440px) {
    :root { --container: 1200px; }
}

/* ----- Illustrations éditoriales locales ----- */
.editorial-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.editorial-copy { min-width: 0; }
.editorial-copy .section-head { margin-bottom: 1.5rem; }
.editorial-copy .prose p:last-child { margin-bottom: 0; }
.editorial-visual {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--black-soft);
}
.editorial-visual img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.editorial-visual figcaption {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem 1rem;
    color: var(--grey-warm);
    font-size: 0.8rem;
    line-height: 1.5;
}
.editorial-visual figcaption small {
    font-size: 0.7rem;
    color: var(--grey-warm);
}
.page-accueil [aria-labelledby="titre-domaines"] .grille-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.carte-illustree { padding: 0; overflow: hidden; }
.carte-illustree .visual-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.visual-card figcaption span { display: none; }
.visual-card figcaption { padding: 0.5rem 1.5rem; }
.carte-illustree h3 { margin: 1.3rem 1.5rem 0.7rem; }
.carte-illustree > p { margin: 0 1.5rem 1.5rem; }
.visual-contact { margin-bottom: 2rem; }
.page-head .editorial-split { padding-bottom: 1.5rem; }
/* Keep illustrated alternating sections comfortably spaced. */
.section-alt:has(.editorial-split),
.section-alt:has(.carte-illustree) { padding-top: var(--pad-block); }
@media (min-width: 769px) {
    .page-activites .section-alt .editorial-visual { order: -1; }
}
@media (max-width: 768px) {
    .editorial-split { grid-template-columns: minmax(0, 1fr); }
    .page-accueil [aria-labelledby="titre-domaines"] .grille-4 { grid-template-columns: minmax(0, 1fr); }
    .editorial-visual { width: 100%; }
    .page-head .editorial-visual { margin-top: 0.5rem; }
}
