@font-face {
    font-family: "raleway";
    src: url(../fonts/Raleway-VariableFont_wght.ttf);
}

/* === CSS Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-creme: #F8F5F1;
    --color-sable: #E8E1D9;
    --color-eucalyptus: #4F6F5E;
    --color-ardoise: #2F3835;
    --color-accent: #C9A86A;
    --color-white: #FFFFFF;
    --font-main: "raleway";
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root.dark-mode {
        --color-creme: #2F3835;
        --color-sable: #3A4541;
        --color-eucalyptus: #7A9B87;
        --color-ardoise: #E8E1D9;
        --color-white: #1A1F1D;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

li{
    list-style-position: inside;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-ardoise);
    background: var(--color-creme);
    overflow-x: hidden;
    position: relative;
}

/* Subtle texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
    linear-gradient(135deg, transparent 0%, rgba(232, 225, 217, 0.3) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(79, 111, 94, 0.03) 2px, rgba(79, 111, 94, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
}

/* Maintenance banner */
.maintenance-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-eucalyptus);
    color: var(--color-white);
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.maintenance-banner.active {
    display: block;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo-main {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideDown 0.8s ease-out 0.2s forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--color-eucalyptus);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.4s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    color: var(--color-ardoise);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.hero-intro {
    max-width: 600px;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--color-ardoise);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
}

/* === Countdown === */
.countdown-container {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1s forwards;
}

.countdown {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-eucalyptus);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-ardoise);
    opacity: 0.7;
}

.launch-message {
    display: none;
}

.launch-message.active {
    display: block;
    animation: pulse 1.5s ease-in-out infinite;
}

.launch-message h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-eucalyptus);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === Newsletter Form === */
.newsletter-form {
    max-width: 500px;
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.2s forwards;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--color-sable);
    background: var(--color-white);
    color: var(--color-ardoise);
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-eucalyptus);
    box-shadow: 0 0 0 3px rgba(79, 111, 94, 0.1);
}

.form-input::placeholder {
    color: rgba(47, 56, 53, 0.5);
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--color-eucalyptus);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 111, 94, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: 2px solid var(--color-eucalyptus);
    outline-offset: 2px;
}

.rgpd-notice {
    font-size: 0.75rem;
    color: var(--color-ardoise);
    opacity: 0.7;
    line-height: 1.5;
}

.rgpd-notice a {
    color: var(--color-eucalyptus);
    text-decoration: underline;
    transition: var(--transition);
}

.rgpd-notice a:hover {
    color: var(--color-accent);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    display: none;
}

.form-message.success {
    background: rgba(79, 111, 94, 0.1);
    color: var(--color-eucalyptus);
    display: block;
}

.form-message.error {
    background: rgba(201, 168, 106, 0.1);
    color: var(--color-accent);
    display: block;
}

/* === Sections === */
section {
    padding: 5rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--color-eucalyptus);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.03em;
}

/* === Engagements === */
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.engagement-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-sable);
}

.engagement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(79, 111, 94, 0.15);
}

.engagement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.engagement-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-eucalyptus);
    margin-bottom: 0.75rem;
}

.engagement-card p {
    font-size: 0.9375rem;
    color: var(--color-ardoise);
    opacity: 0.8;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-badge {
    background: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-eucalyptus);
    border: 2px solid var(--color-sable);
    transition: var(--transition);
}

.cert-badge:hover {
    border-color: var(--color-eucalyptus);
    transform: scale(1.05);
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--color-sable);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(79, 111, 94, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(47, 56, 53, 0.95), transparent);
    color: var(--color-white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* === Social & Contact === */
.social-section {
    background: var(--color-white);
    border-radius: 24px 24px 0 0;
    padding: 4rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-creme);
    color: var(--color-eucalyptus);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover,
.social-link:focus {
    background: var(--color-eucalyptus);
    color: var(--color-white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(79, 111, 94, 0.3);
}

.social-link:focus {
    outline: 2px solid var(--color-eucalyptus);
    outline-offset: 3px;
}

/* === Footer === */
footer {
    background: var(--color-ardoise);
    color: var(--color-sable);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    opacity: 0.6;
    margin-bottom: 2rem;
    filter: brightness(1.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-sable);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-white);
}

.footer-copy {
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    .form-input,
    .btn-primary {
        width: 100%;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-unit {
        min-width: 60px;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-number {
        font-size: 2rem;
    }
    
    .engagements-grid {
        grid-template-columns: 1fr;
    }
}

/* === Accessibility === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-eucalyptus);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Modal base --- */
.modal-overlay[hidden],
.modal[hidden] { display: none !important; }

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 9990;
    opacity: 0; transition: opacity .25s ease;
}

.modal {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    z-index: 9991;
    padding: 1.5rem;
    opacity: 0; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.modal.open { opacity: 1; transform: translateY(0); }
.modal-overlay.open { opacity: 1; }

.modal > .modal-header,
.modal > .modal-body,
.modal > .modal-footer {
    max-width: 800px; width: min(100%, 800px);
}

.modal > .modal-header,
.modal > .modal-footer {
    background: var(--color-white);
    border: 1px solid var(--color-sable);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.25rem;
}

.modal > .modal-footer {
    border-radius: 0 0 16px 16px;
    border-top: none; border-bottom: 1px solid var(--color-sable);
    display: flex; justify-content: flex-end; gap: .75rem;
    padding: 1rem 1.25rem 1.25rem;
}

.modal > .modal-body {
    background: var(--color-white);
    border-left: 1px solid var(--color-sable);
    border-right: 1px solid var(--color-sable);
    max-height: min(70vh, 900px);
    overflow: auto;
    padding: 1.25rem 1.25rem 0;
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 {
    font-weight: 400; color: var(--color-eucalyptus); font-size: 1.25rem;
}

.modal-close {
    appearance: none; background: transparent; border: 0; cursor: pointer;
    font-size: 1.75rem; line-height: 1; padding: .25rem .5rem;
    color: var(--color-ardoise);
}
.modal-close:focus-visible {
    outline: 2px solid var(--color-eucalyptus); outline-offset: 2px;
}

/* Footer link button style (to match links) */
.footer-link-btn {
    background: transparent; border: 0; padding: 0; cursor: pointer;
    color: var(--color-sable); font-size: 0.875rem; text-decoration: none;
}
.footer-link-btn:hover,
.footer-link-btn:focus { color: var(--color-white); text-decoration: underline; }

/* Typo in modal content */
.modal-body h4 { margin: 1rem 0 .5rem; color: var(--color-eucalyptus); font-weight: 500; }
.modal-body p { margin: 0 0 1rem; color: var(--color-ardoise); }
.modal-body a { color: var(--color-eucalyptus); text-decoration: underline; }

.linklike {
    background: transparent; border: 0; padding: 0; cursor: pointer;
    color: var(--color-eucalyptus); text-decoration: underline; font: inherit;
}
.linklike:hover, .linklike:focus { color: var(--color-accent); }

/* === Cookie banner === */
.cookie-banner{
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 1000;
    display: flex; gap: .75rem; align-items: center; justify-content: space-between;
    padding: .9rem 1rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: var(--color-cream, #F8F5F1);
    box-shadow: 0 6px 22px rgba(0,0,0,.08);
    font-size: .95rem;
}
.cookie-banner__text{ line-height: 1.4; }
.cookie-banner__actions{ display: flex; gap: .5rem; white-space: nowrap; }

.btn-primary, .btn-secondary{
    border: 0; border-radius: 999px; padding: .55rem .9rem; cursor: pointer; font-weight: 600;
}
.btn-primary{ background: var(--color-eucalyptus, #87B1A7); color: #fff; }
.btn-primary:disabled{ opacity:.6; cursor:not-allowed; }
.btn-secondary{ background: transparent; border:1px solid rgba(0,0,0,.12); }

.cookie-list{ list-style:none; padding:0; margin:.5rem 0 0; }
.cookie-item{ display:flex; gap:.6rem; align-items:flex-start; }

/* Dark mode */
.dark-mode .cookie-banner{
    background: #1f1f1f; color: #eee; border-color: rgba(255,255,255,.12);
}
.dark-mode .btn-secondary{ border-color: rgba(255,255,255,.25); color:#eee; }

/* Toujours cacher les éléments [hidden] (fiable, prioritaire) */
[hidden] { display: none !important; }

/* S'assurer que la bannière apparaît au-dessus de tout */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 99999; /* > overlays/modales */
  /* si tu avais un display:none par défaut dans ton CSS, supprime-le */
}

/* Option : l’overlay cookies */
.modal-overlay[data-cookie-overlay] {
  z-index: 99998; /* sous la bannière */
}