:root {
    --background: #f6fbfb;
    --surface: #ffffff;
    --surface-alt: #eef7f6;
    --text: #16302e;
    --muted: #5d706d;
    --primary: #1f766e;
    --primary-dark: #15524d;
    --border: #d4e6e3;
    --shadow: 0 12px 30px rgba(18, 58, 54, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary-dark);
    color: white;
    padding: 0.7rem 1rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(22, 48, 46, 0.06);
}

.site-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.current {
    color: white;
    background: var(--primary);
}

/* modifier le 22 juin */
.hero {
min-height: 65vh;
display: flex;
align-items: center;
justify-content: center;
padding: 5rem 1.5rem;

background-image:
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30)),
    url("accueil/images/bandeauorig.jpg");

background-size: cover;
background-position: center;
background-repeat: no-repeat;

color: white;
text-align: center;

}

.hero-content {
max-width: 900px;
margin: 0 auto;
text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
/* fin modification le 22 juin */
.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.1;
}

.lead {
    max-width: 820px;
    font-size: 1.2rem;
    white-space: pre-line;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.section,
.page-header {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-header {
    padding-bottom: 1rem;
}

.page-header h1,
.section h2 {
    margin-top: 0;
    color: var(--primary-dark);
}

.cards {
    display: grid;
    gap: 1.4rem;
}

.two-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card {
    display: block;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover,
.home-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(18, 58, 54, 0.16);
}

.home-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-alt);
}

.card-body {
    padding: 1.2rem;
}

.card-body h3 {
    margin: 0 0 0.4rem;
    color: var(--primary-dark);
}

.card-body p {
    margin: 0;
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.split-section > div,
.text-box,
.notice,
.carousel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-section > div,
.text-box,
.notice {
    padding: 1.4rem;
}

.text-box,
.page-description,
.lead,
.notice p,
.muted {
    white-space: pre-line;
}

.button {
    display: inline-block;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
}

.button:hover,
.button:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button.secondary {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--surface-alt);
}

.muted {
    color: var(--muted);
}

.map-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.carousel {
    overflow: hidden;
}

.carousel-frame {
    width: 100%;
    background: var(--surface-alt);
}

.carousel-frame img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    background: var(--surface-alt);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.carousel-controls button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
}

.carousel-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.site-footer {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    background: var(--primary-dark);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 820px) {
    .main-nav {
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1.5rem 1rem;
        background: white;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0.9rem;
    }

    .two-cards,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 1.2rem;
    }
}
