
:root {
    --blue: #1769aa;
    --blue-dark: #104b7a;
    --blue-light: #eaf4fc;
    --purple: #7656c9;
    --green: #20a464;
    --green-dark: #16814d;
    --text: #303846;
    --muted: #687386;
    --background: #f4f7fb;
    --white: #ffffff;
    --border: #e1e8f0;
    --shadow: 0 8px 28px rgba(24, 54, 88, 0.07);
    --radius: 16px;
}


/* =====================================
   RESET
===================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

body.no-scroll {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--purple);
}

h1,
h2,
h3 {
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    color: var(--blue-dark);
    font-size: clamp(30px, 4vw, 44px);
}

h2 {
    color: var(--blue);
    font-size: clamp(23px, 3vw, 30px);
    margin-bottom: 20px;
}

h3 {
    color: var(--purple);
    font-size: 19px;
}

p {
    margin-top: 0;
}


/* =====================================
   PREMIÈRE EN-TÊTE
===================================== */

.top-header {
    min-height: 105px;
    padding: 18px 6%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--blue-dark);
    font-size: 26px;
    font-weight: 800;
}

.brand:hover {
    color: var(--blue);
}

.logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.site-name {
    overflow-wrap: anywhere;
}

.header-description {
    margin: 0;
    color: var(--muted);
}


/* =====================================
   DEUXIÈME EN-TÊTE
===================================== */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 64px;
    background: #edf5fc;
    border-bottom: 1px solid #d8e6f3;
    box-shadow: 0 4px 14px rgba(24, 54, 88, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 12px 17px;
    border-radius: 10px;
    color: var(--blue-dark);
    font-weight: 700;
    transition: background 0.25s, color 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--blue);
}

.burger {
    display: none;
}


/* =====================================
   CONTENU ET COLONNES
===================================== */

.page-container {
    width: min(1200px, 92%);
    margin: 36px auto 45px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 28px;
}

.content-column {
    min-width: 0;
}

.section-card,
.sidebar-card {
    min-width: 0;
    padding: 28px;
    margin-bottom: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-card {
    scroll-margin-top: 90px;
}


/* =====================================
   HERO
===================================== */

.hero {
    padding: clamp(28px, 5vw, 48px);
    background: var(--white);
    border-top: 4px solid var(--blue);
}

.eyebrow {
    display: inline-block;
    color: var(--purple);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-text {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}


/* =====================================
   BOUTONS
===================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 21px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: var(--white);
}

.btn-green {
    background: var(--green);
    color: var(--white);
}

.btn-green:hover {
    background: var(--green-dark);
    color: var(--white);
}


/* =====================================
   BLOCS D'INFORMATION
===================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    padding: 22px;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin: 12px 0 8px;
}

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

.info-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 12px;
    font-weight: 800;
}

.text-link {
    font-weight: 700;
}

.notice-box {
    padding: 22px;
    margin-bottom: 25px;
    background: #edf8f2;
    border-left: 4px solid var(--green);
    border-radius: 10px;
}

.notice-box strong {
    color: var(--green-dark);
}

.notice-box p {
    margin: 5px 0 0;
}


/* =====================================
   GALERIE
===================================== */

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 3px solid var(--white);
    outline: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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


/* =====================================
   SIDEBAR
===================================== */

.sidebar {
    min-width: 0;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-title {
    font-size: 21px;
    margin-bottom: 17px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li + li {
    margin-top: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f5f8fc;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.sidebar-slideshow {
    overflow: hidden;
    border-radius: 12px;
    background: #f4f7fb;
}

.sidebar-slideshow > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.slide-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.slide-controls button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
    font-size: 22px;
}

#slideCounter {
    color: var(--muted);
    font-size: 13px;
}

.sidebar-contact {
    background: #f1f7ff;
}

.sidebar-contact .btn {
    width: 100%;
}


/* =====================================
   MENU INFÉRIEUR
===================================== */

.bottom-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.bottom-menu a,
.bottom-contact {
    padding: 9px 15px;
    border: none;
    border-radius: 8px;
    color: var(--blue-dark);
    background: #edf5fc;
    font-weight: 700;
}

.bottom-menu a:hover,
.bottom-contact:hover {
    color: var(--white);
    background: var(--blue);
}


/* =====================================
   PREMIER PIED DE PAGE
===================================== */

.footer-main {
    padding: 45px 6%;
    color: var(--white);
    background: #174f7d;
}

.footer-grid {
    width: min(1200px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column p {
    color: #e0edf8;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin-bottom: 9px;
    color: #e0edf8;
}

.footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact {
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 9px;
    padding: 10px 15px;
    color: var(--white);
    background: transparent;
}

.footer-contact:hover {
    color: var(--blue-dark);
    background: var(--white);
}


/* =====================================
   DEUXIÈME PIED DE PAGE
===================================== */

.footer-bottom {
    padding: 17px 20px;
    text-align: center;
    color: #d8e5f0;
    background: #103956;
}

.footer-bottom p {
    margin: 0;
}


/* =====================================
   BOUTON RETOUR EN HAUT
===================================== */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 800;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
    font-size: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-dark);
}


/* =====================================
   FENÊTRE CONTACT
===================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 29, 47, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    position: relative;
    width: min(540px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(15px);
    transition: transform 0.25s;
}

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

.contact-modal h2 {
    padding-right: 30px;
    margin-bottom: 8px;
}

.modal-description {
    color: var(--muted);
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #edf2f7;
    color: var(--text);
    font-size: 29px;
    line-height: 1;
}

.modal-close:hover {
    background: #dce8f4;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--text);
    background: #fbfdff;
    border: 1px solid #d9e2ec;
    border-radius: 9px;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-size: 13px;
}

.consent-group input {
    margin-top: 5px;
    flex: 0 0 auto;
}

.consent-group label {
    color: var(--muted);
}

.submit-button {
    width: 100%;
    min-height: 48px;
}

.form-status {
    margin: 15px 0 0;
    font-weight: 700;
}

.form-status.success {
    color: var(--green-dark);
}

.form-status.error {
    color: #c53030;
}

.privacy-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =====================================
   LIGHTBOX
===================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 60px 20px;
    background: rgba(7, 14, 25, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox > img {
    max-width: min(100%, 1100px);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    font-size: 32px;
}

.lightbox-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 50px;
    border: none;
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    font-size: 35px;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}


/* =====================================
   RESPONSIVE : TABLETTES
===================================== */

@media (max-width: 1000px) {

    .page-container {
        grid-template-columns: minmax(0, 1fr) 245px;
        gap: 18px;
    }

    .section-card {
        padding: 23px;
    }

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

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

}


/* =====================================
   RESPONSIVE : TÉLÉPHONES
===================================== */

@media (max-width: 760px) {

    html {
        scroll-padding-top: 72px;
    }

    .top-header {
        min-height: 82px;
        padding: 12px 16px;
        gap: 8px;
    }

    .brand {
        gap: 9px;
        font-size: 20px;
        min-width: 0;
    }

    .logo {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
    }

    .site-name {
        font-size: 19px;
        line-height: 1.25;
    }

    .header-description {
        display: none;
    }

    .main-nav {
        min-height: 58px;
        justify-content: flex-end;
        padding: 0 16px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 1px solid #cbdff0;
        border-radius: 10px;
        background: var(--white);
        margin-left: auto;
        z-index: 3;
    }

    .burger span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 5px;
        background: var(--blue);
        transition: transform 0.25s, opacity 0.25s;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 140px;
        left: 0;
        bottom: 0;
        z-index: 2;
        width: min(310px, 85vw);
        height: calc(100dvh - 140px);
        padding: 25px 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-y: auto;
        background: var(--white);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.12);
        transform: translateX(-110%);
        visibility: hidden;
        transition: transform 0.28s, visibility 0.28s;
    }

    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-link {
        padding: 13px 15px;
    }

    .page-container {
        width: min(100% - 24px, 600px);
        margin: 20px auto 30px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .content-column,
    .sidebar {
        width: 100%;
        min-width: 0;
    }

    .section-card,
    .sidebar-card {
        padding: 20px;
        margin-bottom: 17px;
        border-radius: 13px;
    }

    .hero {
        padding: 25px 20px;
    }

    .hero-text {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bottom-menu {
        gap: 8px;
        padding: 15px 10px;
    }

    .bottom-menu a,
    .bottom-contact {
        padding: 8px 11px;
        font-size: 14px;
    }

    .footer-main {
        padding: 35px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .contact-modal {
        padding: 25px 20px;
        max-height: 88vh;
    }

    .lightbox {
        gap: 8px;
        padding: 60px 8px 30px;
    }

    .lightbox-arrow {
        width: 34px;
        height: 43px;
        font-size: 27px;
    }

    .lightbox > img {
        max-width: calc(100% - 84px);
        max-height: 75vh;
    }

}


/* =====================================
   PETITS TÉLÉPHONES
===================================== */

@media (max-width: 400px) {

    .site-name {
        max-width: 180px;
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        gap: 7px;
    }

    .gallery-item {
        border-width: 2px;
        border-radius: 8px;
    }

    .back-to-top {
        right: 13px;
        bottom: 13px;
        width: 42px;
        height: 42px;
    }

}


/* =====================================
   ACCESSIBILITÉ
===================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
