/* =========================================================
   ACCHP - Charte graphique
   Structure inspirée du template Dewi (BootstrapMade)
   Couleurs : Cloud Dancer / Transformative Teal / Golden Brown / Vintage Wine
   ========================================================= */

:root {
    --couleur-fond: #F2EEE4;      /* Cloud Dancer - Pantone 2026 */
    --couleur-primaire: #316064;  /* Transformative Teal */
    --couleur-accent: #B89039;    /* Golden Brown */
    --couleur-rare: #6E2A2A;      /* Vintage Wine */
    --texte-secondaire: #6b6b64;
    --bordure: #e0ddd2;
    --blanc: #ffffff;
    --font-titres: 'Playfair Display', Georgia, serif;
    --font-texte: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font-texte); background: var(--couleur-fond); color: #2c2c2a; line-height: 1.65; margin: 0; }
h1, h2, h3, .titre-serif { font-family: var(--font-titres); font-weight: 600; color: var(--couleur-primaire); }
a { text-decoration: none; color: inherit; }

/* ---------- Transition de page (effet lame) ---------- */
@keyframes acchp-reveal {
    from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    to   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.page-content { animation: acchp-reveal .6s cubic-bezier(.65,0,.35,1) forwards; }

/* ---------- Header sticky (inspiré Dewi) ---------- */
.acchp-header {
    background: var(--couleur-primaire);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow .25s, transform .35s cubic-bezier(.4,0,.2,1);
}
.acchp-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.acchp-header.masque { transform: translateY(-100%); }

.acchp-header .container { min-height: 68px; }

.acchp-brand { color: #fff; font-family: var(--font-titres); font-size: 19px; font-weight: 600; transition: opacity .2s; }
.acchp-header a.d-flex:hover .acchp-brand { opacity: .85; }
.acchp-header a.d-flex img { transition: transform .3s ease; }
.acchp-header a.d-flex:hover img { transform: rotate(-4deg) scale(1.05); }

#acchp-nav { align-items: center; }
.acchp-header nav a {
    position: relative;
    color: #E4EFEE;
    font-size: 14px;
    padding: 6px 2px;
    transition: color .2s;
}
.acchp-header nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--couleur-accent);
    transition: width .3s cubic-bezier(.4,0,.2,1);
}
.acchp-header nav a:hover { color: #fff; opacity: 1; }
.acchp-header nav a:hover::after { width: 100%; }

#acchp-toggle { border: none; background: transparent; transition: transform .3s ease; }
#acchp-toggle.ouvert { transform: rotate(90deg); }

.acchp-mobile-menu {
    display: flex;
    flex-direction: column;
    background: var(--couleur-primaire);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease, transform .3s ease, padding .35s;
    border-radius: 0 0 24px 24px;
}
.acchp-mobile-menu.ouvert { max-height: 480px; opacity: 1; transform: translateY(0); padding: 10px 20px 18px; }
.acchp-mobile-menu a {
    color: #E4EFEE;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 14px;
    transition: padding-left .2s ease, color .2s ease;
}
.acchp-mobile-menu a:hover { padding-left: 6px; color: #fff; }

.btn-primaire {
    background: var(--couleur-accent);
    color: #3B2708 !important;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s;
    display: inline-block;
}
.btn-primaire:hover { transform: scale(1.04); color: #3B2708; }

/* ---------- Hero plein écran (inspiré Dewi) ---------- */
.acchp-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: rgba(49,96,100,.86);
    background-blend-mode: multiply;
}
.acchp-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); max-width: 780px; margin: 0 auto 14px; }
.acchp-hero p { color: #E4EFEE; font-size: 16px; max-width: 520px; margin: 0 auto 26px; }
.acchp-hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline-clair { border: 1px solid #fff; color: #fff; border-radius: 6px; padding: 10px 22px; font-size: 14px; }

/* ---------- Section générique ---------- */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--texte-secondaire); font-size: 14px; }
.light-bg { background: #fff; }

/* ---------- À propos ---------- */
.about-img { border-radius: 14px; overflow: hidden; }
.about-img img { width: 100%; display: block; }

/* ---------- Stats (compteurs) ---------- */
.stats-section { background: var(--couleur-primaire); color: #fff; padding: 50px 0; }
.stats-item { text-align: center; }
.stats-item i { font-size: 30px; color: var(--couleur-accent); }
.stats-item .acchp-counter { font-size: 30px; font-weight: 700; display: block; margin: 8px 0 2px; }
.stats-item p { font-size: 13px; color: #DCEEF2; margin: 0; }

/* ---------- Cartes services / sphère ---------- */
.service-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(49,96,100,.12); }
.service-card i { font-size: 32px; color: var(--couleur-accent); display: inline-block; transition: transform .3s; }
.service-card:hover i { transform: rotate(-10deg) scale(1.08); }
.service-card h3 { font-size: 16px; margin: 14px 0 8px; }
.service-card p { font-size: 13px; color: var(--texte-secondaire); margin: 0; }

/* ---------- Cartes actu / événements ---------- */
.media-card { background: var(--blanc); border: none; border-radius: 18px; overflow: hidden; height: 100%; box-shadow: 0 2px 12px rgba(49,96,100,.06); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.media-card:hover { transform: translateY(-6px); }
.media-card .thumb { height: 150px; background-size: cover; background-position: center; }
.media-card .body { padding: 14px 16px; }
.media-card .tag { font-size: 10px; color: var(--couleur-accent); text-transform: uppercase; font-weight: 600; }
.media-card h4 { font-size: 14px; margin: 6px 0 4px; color: var(--couleur-primaire); }
.media-card .date { font-size: 11px; color: var(--texte-secondaire); }

/* ---------- Partenaires ---------- */
.partenaires-premium { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.logo-box { width: 130px; height: 66px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; text-align: center; }
.partenaires-scroll { overflow: hidden; }
.partenaires-scroll .track { display: flex; gap: 24px; width: max-content; animation: defilement 20s linear infinite; }
@keyframes defilement { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta-section { background: var(--couleur-rare); color: #fff; text-align: center; padding: 60px 0; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #f0e2e2; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--couleur-primaire); padding: 40px 0 24px; margin-top: 0; position: relative; overflow: hidden; }
.footer-wave { line-height: 0; margin-top: -1px; }
.footer-wave svg { width: 100%; height: 32px; display: block; }
.footer-sub { color: #DCEEF2; font-size: 12px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 20px 0; font-size: 12px; }
.footer-links a { color: #DCEEF2; position: relative; transition: color .25s ease; }
.footer-links a::after {
    content: '';
    position: absolute; left: 50%; bottom: -3px;
    width: 0; height: 1px; background: var(--couleur-accent);
    transition: width .3s ease, left .3s ease;
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { width: 100%; left: 0; }

.reseaux { display: flex; justify-content: center; gap: 18px; margin: 14px 0; font-size: 20px; }
.reseaux a {
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s ease, border-color .25s ease;
}
.reseaux a:hover {
    background: var(--couleur-accent);
    border-color: var(--couleur-accent);
    color: #3B2708;
    transform: translateY(-4px) scale(1.08);
}
.footer-contact { color: var(--couleur-accent); font-size: 12px; margin: 0; transition: opacity .2s; }
.footer-copy { color: #DCEEF2; font-size: 10px; margin-top: 14px; opacity: .7; }

@media (max-width: 991px) {
    .acchp-hero { min-height: 70vh; }
}

/* =========================================================
   Langage visuel v2 — Organic UI / Editorial / Immersive / Asymétrie
   ========================================================= */

.blob-decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: .5;
}

.editorial-eyebrow {
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--couleur-accent);
    text-transform: uppercase;
    font-weight: 600;
}

.editorial-title {
    font-family: var(--font-titres);
    font-weight: 500;
    line-height: 1.15;
    color: var(--couleur-primaire);
}

.manifeste {
    background: var(--couleur-primaire);
    border-radius: 24px;
    padding: 26px 28px;
    color: #fff;
}
.manifeste p.citation { font-family: var(--font-titres); font-style: italic; font-size: 16px; margin: 0 0 6px; }
.manifeste p.source { font-size: 11px; color: var(--couleur-accent); margin: 0; }

.carte-organique {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.carte-organique:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(49,96,100,.14); }

.medaillon {
    border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(49,96,100,.22);
}
.medaillon-rond {
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--couleur-fond);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.decalage-haut { transform: translateY(-10px); }
.decalage-bas { transform: translateY(10px); }
.decalage-droite { transform: translateX(8px); }

.pastille {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--couleur-fond);
    color: var(--couleur-accent);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
}

.btn-pill {
    background: var(--couleur-primaire);
    color: #fff !important;
    border: none;
    border-radius: 100px;
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: transform .2s;
}
.btn-pill:hover { transform: translateY(-3px); color: #fff; }

.btn-retour {
    background: transparent;
    border: none;
    color: var(--texte-secondaire);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    transition: color .2s ease;
}
.btn-retour:hover { color: var(--couleur-primaire); }

/* ---------- Aperçu membre (overlay natif, sans Bootstrap Modal) ---------- */
.apercu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(43,42,39,.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .25s ease;
}
.apercu-overlay.ouvert { display: flex; opacity: 1; }
.apercu-carte {
    background: #fff;
    border-radius: 22px;
    max-width: 420px;
    width: 100%;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(12px) scale(.98);
    transition: transform .25s ease;
}
.apercu-overlay.ouvert .apercu-carte { transform: translateY(0) scale(1); }
.apercu-fermer-x {
    position: absolute; top: 14px; right: 16px;
    background: transparent; border: none; font-size: 22px; line-height: 1;
    color: var(--texte-secondaire); cursor: pointer;
}
.apercu-fermer-x:hover { color: var(--couleur-rare); }

@keyframes apparition-douce {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.apparition { animation: apparition-douce .7s cubic-bezier(.2,.8,.2,1) forwards; }
