/* ============================================
   LA RESSOURCE - Camping thématique sur l'autonomie
   Feuille de style principale
   ============================================ */

:root {
    --vert-fonce: #1f5d2a;
    --vert-clair: #3a9d3f;
    --vert-vif: #46b04b;
    --bleu-marine: #1a2c5b;
    --bleu-clair: #3a7da5;
    --terre: #6b4226;
    --terre-clair: #8b6244;
    --creme: #f7f3e8;
    --beige: #ebe2cc;
    --gris-clair: #f5f5f0;
    --gris-moyen: #d4d4cc;
    --gris-fonce: #444;
    --texte: #2a2a2a;
    --blanc: #ffffff;
    --rouge-don: #c0392b;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 18px rgba(0,0,0,.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
    --radius: 8px;
    --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Arial, Helvetica, system-ui, -apple-system, sans-serif;
    color: var(--texte);
    background: var(--blanc);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--vert-fonce); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vert-clair); }

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    color: var(--bleu-marine);
    line-height: 1.2;
    margin-bottom: .8em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: .8em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1em; }
p + p { margin-top: 0; }

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
    background: var(--blanc);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--vert-fonce);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 64px; width: auto; }

.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
    color: var(--bleu-marine);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 11px;
    border-radius: 6px;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover { background: var(--gris-clair); color: var(--vert-fonce); }
.main-nav a.active {
    background: var(--vert-fonce);
    color: var(--blanc);
}

.translate-wrap { position: relative; }
.translate-toggle {
    background: var(--bleu-marine);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}
.translate-toggle:hover { background: var(--bleu-clair); }
.translate-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 8px;
    min-width: 170px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--gris-moyen);
}
.translate-menu.active { display: flex; }
.translate-menu a {
    padding: 8px 12px;
    color: var(--bleu-marine);
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}
.translate-menu a:hover { background: var(--gris-clair); }

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--bleu-marine);
    color: var(--bleu-marine);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 44, 91, 0.75), rgba(31, 93, 42, 0.65)),
                url('../img/drone/hero.webp') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}
.hero-content { max-width: 900px; position: relative; z-index: 2; }
.hero h1 {
    color: white;
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
    margin-bottom: 0.4em;
}
.hero .lead {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    margin-bottom: 1.5em;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
    line-height: 1.5;
}
.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 1.2em;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2em; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    font-family: inherit;
}
.btn-primary {
    background: var(--vert-fonce);
    color: white;
}
.btn-primary:hover {
    background: var(--vert-clair);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: white;
    color: var(--bleu-marine);
    border: 2px solid white;
}
.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--bleu-marine);
    border: 2px solid var(--bleu-marine);
}
.btn-outline:hover { background: var(--bleu-marine); color: white; }
.btn-don {
    background: var(--rouge-don);
    color: white;
}
.btn-don:hover {
    background: #a83020;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-large { padding: 16px 36px; font-size: 1.1rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.section-tinted { background: var(--creme); padding-left: 0; padding-right: 0; max-width: 100%; }
.section-tinted > .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section-dark {
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--vert-fonce) 100%);
    color: white;
    padding: 80px 20px;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: white; }
.section-dark .inner { max-width: var(--max-width); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { margin-bottom: 0.4em; }
.section-header .subtitle {
    font-size: 1.15rem;
    color: var(--gris-fonce);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   YOUTUBE EMBED
   ============================================ */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    align-items: center;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    padding: 30px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gris-moyen);
    transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
    font-size: 2.5rem;
    color: var(--vert-fonce);
    margin-bottom: 14px;
    display: block;
}
.card h3 { color: var(--bleu-marine); margin-bottom: 0.4em; }
.card p { color: var(--gris-fonce); }

.stat-card {
    text-align: center;
    padding: 30px 20px;
}
.stat-card .number {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--vert-fonce);
    display: block;
    line-height: 1;
}
.stat-card .label {
    color: var(--gris-fonce);
    font-size: 0.95rem;
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 30px 0;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 3/2;
    transition: transform .3s;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================
   FLOATING BUTTONS (right side)
   ============================================ */
.floating-buttons {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: all .2s;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn-back {
    background: var(--bleu-marine);
    color: white;
}
.float-btn-back:hover { background: var(--bleu-clair); color: white; }
.float-btn-don {
    background: var(--rouge-don);
    color: white;
}
.float-btn-don:hover { background: #a83020; color: white; }
.float-btn .icon { font-size: 1.4rem; margin-bottom: 2px; line-height: 1; }
.float-btn .label { font-size: 0.6rem; }

/* ============================================
   DON BLOCK
   ============================================ */
.don-block {
    background: linear-gradient(135deg, #fff 0%, var(--creme) 100%);
    border: 2px solid var(--rouge-don);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    margin: 50px auto;
    max-width: 800px;
    box-shadow: var(--shadow-md);
}
.don-block .icon-coeur {
    font-size: 3rem;
    color: var(--rouge-don);
    margin-bottom: 14px;
    display: block;
}
.don-block h3 { color: var(--rouge-don); margin-bottom: 0.5em; }
.don-block .small {
    font-size: 0.88rem;
    color: var(--gris-fonce);
    margin-top: 18px;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bleu-marine);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px 20px 24px;
    margin-top: 0;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}
.site-footer h4 { color: white; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--vert-vif); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    font-size: 1rem;
}
.social-links a:hover { background: var(--vert-fonce); transform: translateY(-2px); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 0.85rem;
    color: rgba(255,255,255,.6);
}
.footer-bottom a { text-decoration: underline; }
.email-img { max-width: 280px; height: auto; vertical-align: middle; filter: invert(1) brightness(1.3); }

/* ============================================
   PAGE HEADERS (sub pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--vert-fonce) 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}
.page-header h1 { color: white; }
.page-header p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.92);
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.text-content {
    max-width: 800px;
    margin: 0 auto;
}
.text-content p { font-size: 1.05rem; }
.text-content h2 { margin-top: 1.6em; }

.alert-box {
    background: #fff8e1;
    border-left: 4px solid #f0a000;
    padding: 18px 22px;
    border-radius: 6px;
    margin: 24px 0;
}
.info-box {
    background: #e8f4f8;
    border-left: 4px solid var(--bleu-clair);
    padding: 18px 22px;
    border-radius: 6px;
    margin: 24px 0;
}

/* Image avec légende */
figure { margin: 30px 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
figcaption {
    text-align: center;
    color: var(--gris-fonce);
    font-style: italic;
    font-size: 0.92rem;
    margin-top: 10px;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-reservation { max-width: 700px; margin: 0 auto; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-field { margin-bottom: 14px; }
.form-field label {
    display: block;
    font-weight: 600;
    color: var(--bleu-marine);
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--gris-moyen);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--texte);
    transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--vert-fonce);
    box-shadow: 0 0 0 3px rgba(58, 157, 63, 0.15);
}
.form-field textarea { resize: vertical; min-height: 90px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        box-shadow: var(--shadow-md);
        display: none;
        gap: 4px;
    }
    .main-nav.active { display: flex; }
    .main-nav a { padding: 12px; }
    .floating-buttons {
        right: 12px;
        top: auto;
        bottom: 16px;
        transform: none;
        flex-direction: row-reverse;
    }
    .float-btn { width: 52px; height: 52px; }
    .float-btn .label { display: none; }
    .float-btn .icon { font-size: 1.4rem; margin: 0; }
    .section { padding: 60px 16px; }
    .section-dark, .page-header { padding: 60px 16px; }
    .nav-container { padding: 0 14px; height: 70px; }
    .logo-link img { height: 52px; }
    .translate-toggle { padding: 6px 10px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .hero { min-height: 65vh; padding: 60px 16px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   ACTUALITÉS
   ============================================ */
.actu-article {
    background: white;
    border: 1px solid var(--gris-moyen);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.actu-article:hover { box-shadow: var(--shadow-md); }

.actu-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gris-moyen);
    padding-bottom: 18px;
}
.actu-date {
    display: inline-block;
    background: var(--vert-fonce);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.actu-title {
    color: var(--bleu-marine);
    font-size: 1.7rem;
    margin: 8px 0 12px;
    line-height: 1.2;
}
.actu-resume {
    font-style: italic;
    color: var(--gris-fonce);
    font-size: 1.05rem;
    margin: 0;
}

.actu-content { font-size: 1rem; line-height: 1.7; }
.actu-content .actu-h2 {
    color: var(--vert-fonce);
    font-size: 1.35rem;
    margin: 28px 0 14px;
    font-family: Georgia, 'Times New Roman', serif;
}
.actu-content .actu-h3 {
    color: var(--bleu-marine);
    font-size: 1.15rem;
    margin: 22px 0 10px;
}
.actu-content .actu-p { margin-bottom: 14px; }
.actu-content .actu-ul, .actu-content .actu-ol {
    margin: 14px 0 14px 24px;
}
.actu-content .actu-ul li, .actu-content .actu-ol li {
    margin-bottom: 6px;
}
.actu-content .actu-quote {
    background: var(--creme);
    border-left: 4px solid var(--vert-fonce);
    padding: 14px 20px;
    margin: 18px 0;
    font-style: italic;
    color: var(--bleu-marine);
    border-radius: 0 6px 6px 0;
}
.actu-content a {
    color: var(--vert-fonce);
    text-decoration: underline;
}

.actu-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.actu-photo {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    background: var(--gris-clair);
    box-shadow: var(--shadow-sm);
}
.actu-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.actu-photo:hover img { transform: scale(1.05); }
.actu-photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: white;
    padding: 24px 12px 10px;
    font-size: 0.85rem;
}

.actu-empty { padding: 60px 20px; text-align: center; }

/* ============================================
   AGENDA
   ============================================ */
.ag-section { margin-bottom: 50px; }
.ag-section-title {
    color: var(--bleu-marine);
    border-bottom: 2px solid var(--vert-fonce);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.ag-event {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    background: white;
    border: 1px solid var(--gris-moyen);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.ag-event:hover { box-shadow: var(--shadow-md); }
.ag-event.ag-past { opacity: 0.85; }

.ag-date-block {
    background: linear-gradient(135deg, var(--vert-fonce), var(--bleu-marine));
    color: white;
    border-radius: 8px;
    text-align: center;
    padding: 14px 8px;
    align-self: start;
}
.ag-event.ag-past .ag-date-block {
    background: linear-gradient(135deg, #888, #555);
}
.ag-day { font-size: 2.4rem; font-weight: 700; line-height: 1; font-family: Georgia, 'Times New Roman', serif; }
.ag-month { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.ag-year { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }

.ag-body { display: flex; flex-direction: column; }
.ag-title {
    color: var(--bleu-marine);
    font-size: 1.3rem;
    margin: 0 0 12px;
}
.ag-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--gris-fonce);
}
.ag-meta-item { display: flex; align-items: center; gap: 6px; }
.ag-meta-icon { font-size: 1rem; }

.ag-desc {
    margin: 8px 0 12px;
    line-height: 1.6;
}
.ag-action { margin-top: 8px; }
.ag-link {
    display: inline-block;
    background: var(--vert-fonce);
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background .2s;
}
.ag-link:hover { background: var(--vert-clair); }

.ag-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.ag-photo {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    background: var(--gris-clair);
}
.ag-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.ag-photo:hover img { transform: scale(1.05); }
.ag-photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: white;
    padding: 16px 8px 6px;
    font-size: 0.78rem;
}

@media (max-width: 600px) {
    .ag-event { grid-template-columns: 80px 1fr; gap: 14px; padding: 16px; }
    .ag-day { font-size: 1.8rem; }
    .ag-month { font-size: 0.8rem; }
    .ag-year { font-size: 0.75rem; }
    .ag-title { font-size: 1.1rem; }
    .actu-article { padding: 24px 18px; }
    .actu-title { font-size: 1.4rem; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.lightbox.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 90vh;
    text-align: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption {
    color: white;
    margin-top: 14px;
    font-size: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.lightbox-counter {
    color: rgba(255,255,255,.7);
    margin-top: 8px;
    font-size: 0.85rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.15);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background .2s, transform .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,.3);
    transform: scale(1.1);
}
.lightbox-close {
    top: 20px; right: 20px;
}
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

@media (max-width: 600px) {
    .lightbox-close, .lightbox-prev, .lightbox-next {
        width: 42px; height: 42px;
        font-size: 1.2rem;
    }
}


/* CAMPING VIDEO JOURNAL 20260803 */
.video-journal-callout{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px;border:1px solid rgba(34,83,58,.16);border-radius:16px;background:#fff}.video-journal-callout h2{margin:.2rem 0 .7rem}.video-journal-callout p{margin:0;max-width:760px}.video-journal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.camping-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:28px}.camping-video-card{background:#fff;border:1px solid rgba(31,67,47,.16);border-radius:14px;overflow:hidden;box-shadow:0 10px 28px rgba(20,50,32,.08)}.camping-video-thumb{position:relative;display:block;background:#10261a}.camping-video-thumb img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.camping-video-thumb span{position:absolute;right:10px;bottom:10px;background:rgba(12,37,24,.92);color:#fff;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:700}.camping-video-body{padding:18px}.camping-video-theme{text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;font-weight:700;color:#6b7e35;margin:0 0 7px}.camping-video-body h3{font-size:1.08rem;margin:0 0 10px}.camping-video-body h3 a{text-decoration:none;color:inherit}.camping-video-body p{font-size:.92rem;line-height:1.55}.camping-video-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.camping-video-links a{font-weight:700;font-size:.86rem}.video-site-roles{display:grid;gap:12px;padding:0;list-style:none}.video-site-roles li{background:#f4f7f1;border-left:4px solid #6b7e35;padding:14px 16px;border-radius:6px}
@media(max-width:980px){.camping-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.video-journal-callout{align-items:flex-start;flex-direction:column}}@media(max-width:620px){.camping-video-grid{grid-template-columns:1fr}.video-journal-actions{display:grid}.video-journal-actions .btn{width:100%}}


/* ============================================
   PORTEUR DU PROJET / DEVELOPPEMENT PROFESSIONNEL
   ============================================ */
.project-lead-section {
    padding: 0 20px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.project-lead-card {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 38px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(26,44,91,.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f3e8 52%, #eef6ef 100%);
    box-shadow: 0 18px 48px rgba(26,44,91,.12);
    overflow: hidden;
    position: relative;
}
.project-lead-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--bleu-marine), var(--vert-fonce));
}
.project-lead-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 800;
    color: var(--vert-fonce);
    margin-bottom: .55rem;
}
.project-lead-content h2 { margin: 0 0 .25em; }
.project-lead-role {
    color: var(--bleu-marine);
    font-weight: 700;
    margin-bottom: 1.1em;
}
.project-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 8px;
}
.external-link-note {
    font-size: .82rem;
    color: #666;
    margin: 0;
}
.project-status-strip,
.strategic-note {
    margin-top: 22px;
    padding: 17px 19px;
    border-radius: 10px;
    border-left: 4px solid var(--vert-fonce);
    background: rgba(255,255,255,.78);
    color: #334;
}
.strategic-note {
    max-width: 930px;
    margin-left: auto;
    margin-right: auto;
    background: var(--creme);
}

@media (max-width: 760px) {
    .project-lead-section { padding: 0 16px 60px; }
    .project-lead-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .project-lead-media { max-width: 280px; margin: 0 auto; }
    .project-lead-actions { display: grid; }
    .project-lead-actions .btn { width: 100%; }
}


/* ============================================
   ACCESSIBILITE / PREUVES / VIDEO CONSENTEMENT
   Mise à jour 2026-09-12
   ============================================ */
.skip-link {
    position: fixed;
    left: 14px;
    top: 10px;
    z-index: 2000;
    transform: translateY(-160%);
    background: var(--bleu-marine);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 3px;
}

.youtube-consent-btn,
.youtube-consent-note { position: relative; z-index: 2; }
.youtube-consent-btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: #fff;
    color: var(--bleu-marine);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}
.youtube-consent-btn:hover { transform: translateY(-2px); }
.youtube-consent-note {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    margin: 0;
    color: rgba(255,255,255,.94);
    text-align: center;
    font-size: .82rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.institutional-proof-links {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(26,44,91,.06);
    border: 1px solid rgba(26,44,91,.12);
    font-size: .9rem;
    line-height: 1.6;
}
.institutional-proof-links a { font-weight: 700; }

.milestone-card { display: flex; flex-direction: column; }
.milestone-card .btn { margin-top: auto; }
.land-scope-note { max-width: 920px; margin-left: auto; margin-right: auto; }
.budget-provision-row td { background: #fff8e1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===== R3 — VISUELS DU PROJET / POSITIONNEMENT INSTITUTIONNEL ===== */
.vision-feature {
    overflow: hidden;
}
.vision-feature-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.vision-feature-grid figure,
.vision-triptych figure,
.vision-card,
.investor-hero-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(24,45,88,.10);
    box-shadow: 0 10px 30px rgba(14,31,61,.08);
}
.vision-feature-grid figure img,
.vision-triptych figure img,
.vision-card img,
.investor-hero-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.vision-feature-grid figure:not(.vision-feature-large) img { aspect-ratio: 16 / 10; }
.vision-feature-large {
    grid-column: 1 / -1;
}
.vision-feature-large img { aspect-ratio: 16 / 8.5; }
.vision-feature-grid figcaption,
.vision-triptych figcaption,
.investor-hero-figure figcaption {
    padding: 12px 15px;
    font-size: .9rem;
    line-height: 1.45;
    color: #41506b;
}
.vision-triptych {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.vision-triptych img { aspect-ratio: 16 / 10; }
.concept-visual-disclaimer {
    max-width: 980px;
    margin: 26px auto 0;
    padding: 14px 18px;
    border-left: 4px solid var(--vert-vif);
    border-radius: 8px;
    background: rgba(52, 130, 84, .07);
    color: #34445f;
    font-size: .9rem;
    line-height: 1.55;
}
.vision-actions {
    text-align: center;
    margin-top: 28px;
}
.investor-hero-figure {
    max-width: 1100px;
    margin: 0 auto;
}
.investor-hero-figure img { aspect-ratio: 16 / 9; }
.vision-gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.vision-card a {
    display: block;
    overflow: hidden;
    background: #e9efe8;
}
.vision-card img {
    aspect-ratio: 4 / 3;
    transition: transform .35s ease;
}
.vision-card a:hover img { transform: scale(1.025); }
.vision-card figcaption {
    padding: 14px 16px 16px;
    display: grid;
    gap: 5px;
}
.vision-card figcaption strong {
    color: var(--bleu-marine);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.02rem;
}
.vision-card figcaption span {
    color: #60708a;
    font-size: .88rem;
    line-height: 1.48;
}
.terrain-gallery .vision-card img { aspect-ratio: 3 / 2; }
.professional-models .card {
    min-height: 100%;
}

@media (max-width: 900px) {
    .vision-feature-grid,
    .vision-triptych,
    .vision-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vision-feature-large { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .vision-feature-grid,
    .vision-triptych,
    .vision-gallery {
        grid-template-columns: 1fr;
    }
    .vision-feature-large { grid-column: auto; }
    .vision-feature-large img,
    .vision-feature-grid figure:not(.vision-feature-large) img,
    .vision-triptych img,
    .vision-card img,
    .terrain-gallery .vision-card img {
        aspect-ratio: 16 / 10;
    }
    .concept-visual-disclaimer { margin-left: 4px; margin-right: 4px; }
}


/* R3.1 — vidéo institutionnelle */
.video-poster-link{position:relative;display:block;max-width:1100px;margin:0 auto;border-radius:16px;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.18);background:#111;text-decoration:none}
.video-poster-link img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.video-poster-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28));transition:background .2s ease}
.video-poster-link:hover .video-poster-overlay,.video-poster-link:focus-visible .video-poster-overlay{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.42))}
.video-play-cta{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;border-radius:999px;background:rgba(255,255,255,.94);color:#15365f;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.institutional-video-shell{max-width:1100px;margin:28px auto 0}
.institutional-video-player{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;border-radius:16px;box-shadow:0 18px 45px rgba(0,0,0,.18)}
.video-disclaimer{max-width:1100px;margin:12px auto 0;font-size:.9rem;color:#5b6470;text-align:center}
.budget-r31-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 30px}
.budget-r31-summary .card{text-align:center}
.budget-r31-summary .number{display:block;font-size:2rem;font-weight:800;color:var(--bleu-marine);margin-bottom:6px}
@media(max-width:780px){.budget-r31-summary{grid-template-columns:1fr}.video-play-cta{padding:12px 16px;font-size:.92rem}.institutional-video-shell{margin-top:18px}}


/* ===== OpenStreetMap : façade de confidentialité ===== */
.map-facade-shell {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
    max-height: 500px;
    background: linear-gradient(135deg, #e8efe6 0%, #f4f0e5 100%);
}
.map-facade, .map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-facade {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 32px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(61, 109, 72, .14), transparent 36%),
        radial-gradient(circle at 80% 75%, rgba(31, 66, 91, .10), transparent 34%),
        linear-gradient(135deg, #f7f8f3, #e7eee5);
}
.map-facade-inner { max-width: 620px; }
.map-facade-icon { display:block; font-size:3rem; margin-bottom:10px; }
.map-facade h3 { margin-bottom:10px; }
.map-facade p { margin:0 auto 20px; color:var(--gris-fonce); }
@media (max-width: 600px) {
    .map-facade-shell { aspect-ratio: 4 / 3; }
    .map-facade { padding: 24px 18px; min-height: 300px; }
}

/* R3.3 — finitions institutionnelles */
.scope-note{margin-top:14px;padding:12px 14px;border-left:4px solid var(--vert-vif);background:rgba(83,133,82,.08);font-size:.92rem;line-height:1.55}.camping-video-thumb span{max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ==========================================================
   R3.3-V — REPARATION VISUELLE + CACHE BUSTING — 2026-09-12
   ========================================================== */

/* HERO : hiérarchie plus compacte, jamais 4 lignes géantes */
.hero {
    min-height: 520px;
    padding: 64px 22px;
}
.hero-content {
    width: min(100%, 920px);
    max-width: 920px;
}
.hero h1 {
    max-width: 780px;
    margin: 0 auto .55em;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.hero .lead {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
}
.hero-cta { margin-top: 1.55rem; }

/* Vidéo historique YouTube : façade locale, chargement uniquement au clic */
.youtube-facade-shell,
.home-institutional-video {
    width: min(100%, 1040px);
    margin: 0 auto;
}
.youtube-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1525;
    box-shadow: 0 18px 42px rgba(12, 31, 61, .16);
}
.youtube-facade > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.youtube-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,15,28,.04), rgba(5,15,28,.34));
    pointer-events: none;
}
.youtube-load-button,
.local-video-load-button {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: rgba(255,255,255,.96);
    color: #173560;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.youtube-load-button:hover,
.youtube-load-button:focus-visible,
.local-video-load-button:hover,
.local-video-load-button:focus-visible { transform: translate(-50%, -50%) scale(1.03); }
.youtube-facade iframe,
.local-video-facade video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-context-note {
    max-width: 920px;
    margin: 12px auto 0;
    text-align: center;
    font-size: .88rem;
    color: #68738a;
}

/* Fondateur : vraie carte premium, portrait secondaire */
.project-lead-section {
    max-width: 1120px;
    padding: 22px 20px 58px;
}
.project-lead-card {
    max-width: 1080px;
    margin: 0 auto;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    padding: 30px 34px;
    border-radius: 18px;
}
.project-lead-media {
    width: 220px;
    max-width: 220px;
    justify-self: center;
}
.project-lead-media img {
    width: 220px;
    height: 220px;
    aspect-ratio: 1;
    object-fit: cover;
}
.project-lead-content { min-width: 0; }
.project-lead-content h2 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); }
.project-lead-role { font-size: .98rem; line-height: 1.45; }
.project-status-strip { font-size: .94rem; line-height: 1.55; }

/* Film institutionnel sur l'accueil : pas de requête MP4 avant clic */
.home-institutional-film { padding-top: 54px; padding-bottom: 64px; }
.local-video-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #07101c;
    box-shadow: 0 18px 42px rgba(12, 31, 61, .16);
}
.local-video-facade > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.local-video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,15,28,.02), rgba(5,15,28,.32));
    pointer-events: none;
}
.local-video-facade.is-loaded::after { display:none; }
.local-video-facade.is-loaded .local-video-load-button { display:none; }

/* Vision : composition éditoriale compacte sur desktop */
.vision-page-header { padding-top: 54px; padding-bottom: 48px; }
.vision-page-header h1 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
.vision-gallery {
    max-width: 1180px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}
.vision-gallery .vision-card:first-child {
    grid-column: span 2;
}
.vision-gallery .vision-card:first-child img {
    aspect-ratio: 16 / 9;
}
.vision-card {
    border-radius: 14px;
}
.vision-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.terrain-gallery .vision-card:first-child { grid-column: auto; }
.terrain-gallery .vision-card:first-child img,
.terrain-gallery .vision-card img { aspect-ratio: 3 / 2; }
.vision-card figcaption { min-height: 94px; }

@media (max-width: 900px) {
    .hero { min-height: 470px; padding: 54px 20px; }
    .hero h1 { font-size: clamp(1.9rem, 5vw, 2.55rem); max-width: 700px; }
    .vision-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
    .vision-gallery .vision-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .project-lead-section { padding: 18px 16px 48px; }
    .project-lead-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
    }
    .project-lead-media,
    .project-lead-media img {
        width: 170px;
        max-width: 170px;
        height: 170px;
    }
    .project-lead-actions { justify-content: center; }
    .project-status-strip { text-align: left; }
}

@media (max-width: 620px) {
    .hero {
        min-height: 440px;
        padding: 46px 16px 50px;
    }
    .hero h1 {
        max-width: 350px;
        font-size: clamp(1.72rem, 8vw, 2rem);
        line-height: 1.08;
        letter-spacing: -.02em;
    }
    .hero .lead { font-size: .98rem; line-height: 1.45; }
    .hero-tag { font-size: .72rem; padding: 7px 14px; }
    .hero-cta { gap: 9px; margin-top: 1.2rem; }
    .hero-cta .btn { width: 100%; max-width: 320px; }
    .youtube-facade,
    .local-video-facade { border-radius: 12px; }
    .youtube-load-button,
    .local-video-load-button {
        padding: 11px 15px;
        font-size: .86rem;
        white-space: normal;
        text-align: center;
        max-width: 82%;
    }
    .vision-page-header { padding-top: 38px; padding-bottom: 34px; }
    .vision-page-header h1 { font-size: 2rem; }
    .vision-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .vision-gallery .vision-card:first-child { grid-column: auto; }
    .vision-card figcaption { min-height: 0; padding: 12px 14px 14px; }
    .vision-card img,
    .vision-gallery .vision-card:first-child img,
    .terrain-gallery .vision-card:first-child img,
    .terrain-gallery .vision-card img { aspect-ratio: 16 / 10; }
}
