/* ==============================
   Variables générales
============================== */

:root {
    --blue-dark: #07131f;
    --blue: #123b5c;
    --blue-light: #dceaf2;
    --silver: #d7e0e5;
    --white: #ffffff;
    --text: #27313a;
    --muted: #70808b;
    --red: #b52d2d;
    --gold: #c79e57;
    --light-bg: #f4f6f7;
}

/* ==============================
   Réglages généraux
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    line-height: 1.15;
}

h2 {
    color: var(--blue-dark);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin-bottom: 28px;
}

p {
    margin-bottom: 18px;
}

/* ==============================
   Navigation
============================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    color: var(--white);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    display: block;
    color: var(--gold);
    font-size: 0.65rem;
    letter-spacing: 4px;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

/* ==============================
   Accueil
============================== */

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(4, 18, 29, 0.35), rgba(4, 18, 29, 0.8)),
        url("images/mustang-avant.jpg") center / cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 15, 25, 0.85),
        rgba(3, 15, 25, 0.15)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 90px;
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
}

.hero h1 span {
    display: block;
    margin-top: 18px;
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.7rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 520px;
    margin-bottom: 36px;
    color: #e5edf1;
    font-size: 1.08rem;
}

.button {
    display: inline-block;
    padding: 15px 28px;
    background: var(--red);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #8f2020;
    transform: translateY(-3px);
}

/* ==============================
   Sections avec image
============================== */

.history {
    background: var(--light-bg);
}

.history-grid,
.restoration-grid,
.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.section-image {
    height: 580px;
    overflow: hidden;
    box-shadow: 18px 18px 0 var(--blue-light);
}

.section-image img {
    transition: transform 0.6s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

.section-content p {
    color: #596973;
}

/* ==============================
   Histoire du nom
============================== */

.name-story {
    margin-top: 40px;
    padding: 30px;
    border-left: 4px solid var(--gold);
    background: #f0f3f4;
}

.name-story h3 {
    margin-bottom: 15px;
    color: var(--blue-dark);
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
}

.name-story p {
    margin-bottom: 12px;
}

.song-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border-bottom: 2px solid var(--gold);
    color: var(--blue-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

.song-link:hover {
    color: #b8860b;
}

.song-link span {
    font-size: 1.2rem;
}

/* ==============================
   Timeline
============================== */

.timeline {
    margin-top: 35px;
    padding-left: 24px;
    border-left: 2px solid var(--gold);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 23px;
}

.timeline-item strong {
    color: var(--blue);
    font-size: 1.2rem;
}

.timeline-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ==============================
   Section sombre
============================== */

.dark-section {
    background: var(--blue-dark);
    color: var(--white);
}

.dark-section h2 {
    color: var(--white);
}

.dark-section .section-content p {
    color: #c3d0d8;
}

.dark-section .section-image {
    box-shadow: -18px 18px 0 var(--gold);
}

blockquote {
    margin-top: 35px;
    padding: 22px 25px;
    border-left: 3px solid var(--gold);
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    font-style: italic;
}

/* ==============================
   Moment spécial
============================== */

.special-moment {
    background: var(--light-bg);
}

.special-card {
    position: relative;
    padding: 55px;
    background: var(--white);
    box-shadow: 0 20px 55px rgba(7, 19, 31, 0.1);
}

.special-card h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.special-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 25px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.5rem;
}

.special-photo {
    height: 470px;
    overflow: hidden;
}

.special-photo img {
    transition: transform 0.6s ease;
}

.special-photo:hover img {
    transform: scale(1.05);
}

/* ==============================
   Section traversée en bateau
============================== */

.boat-section {
    background: var(--blue-dark);
    color: var(--white);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 20px;
}

.section-heading p:not(.eyebrow) {
    color: #c3d0d8;
}

.light-heading h2 {
    color: var(--white);
}

.photo-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-placeholder {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #172c3b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.photo-placeholder img {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.photo-placeholder:hover img {
    opacity: 0.8;
    transform: scale(1.06);
}

.photo-placeholder figcaption {
    position: absolute;
    right: 20px;
    bottom: 15px;
    left: 20px;
    z-index: 2;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==============================
   Certification vétéran
============================== */

.veteran-section {
    background: var(--gold);
    color: var(--blue-dark);
}

.veteran-content {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 850px;
}

.veteran-content h2 {
    margin-bottom: 18px;
    color: var(--blue-dark);
}

.veteran-content p {
    color: #283b48;
}

.veteran-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border: 5px solid var(--blue-dark);
    border-radius: 50%;
    font-size: 3.5rem;
}

/* ==============================
   Galerie familiale
============================== */

.family-section {
    background: var(--light-bg);
}

.family-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.family-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #dbe2e6;
    cursor: pointer;
}

.family-photo img {
    transition: transform 0.5s ease;
}

.family-photo:hover img {
    transform: scale(1.07);
}

.family-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        transparent 45%,
        rgba(0, 0, 0, 0.7)
    );
}

.family-photo figcaption {
    position: absolute;
    right: 15px;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==============================
   Galerie principale
============================== */

.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item,
.gallery-large {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--blue-dark);
    grid-row: auto;
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.75)
    );
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item figcaption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 1;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==============================
   Citation finale
============================== */

.quote-section {
    padding: 80px 0;
    background:
        linear-gradient(rgba(7, 19, 31, 0.85), rgba(7, 19, 31, 0.85)),
        url("images/mustang-arriere.jpg") center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.quote-section p {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 4vw, 3.3rem);
}

/* ==============================
   Footer
============================== */

.site-footer {
    padding: 25px 0;
    background: #030b12;
    color: #a7b5bd;
    font-size: 0.78rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* ==============================
   Curseur sur les images
============================== */

.clickable-image {
    cursor: zoom-in;
}

/* ==============================
   Lightbox
============================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 25px;
    background: rgba(2, 8, 13, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    width: auto;
    max-width: min(1100px, 95vw);
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border: 3px solid var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 30px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--gold);
}

#lightbox-caption {
    max-width: 800px;
    margin-top: 18px;
    color: var(--white);
    text-align: center;
    font-size: 0.95rem;
}

.no-scroll {
    overflow: hidden;
}

/* ==============================
   Responsive tablette
============================== */

@media (max-width: 800px) {
    .navbar {
        min-height: 75px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .section {
        padding: 75px 0;
    }

    .history-grid,
    .restoration-grid,
    .special-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .restoration-grid .section-image {
        order: -1;
    }

    .section-image {
        height: 400px;
    }

    .special-photo {
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item,
    .gallery-large {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==============================
   Responsive téléphone
============================== */

@media (max-width: 520px) {
    .hero h1 {
        font-size: 3.3rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .special-card {
        padding: 32px 25px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-large {
        height: 280px;
    }

    .photo-placeholder-grid,
    .family-gallery {
        grid-template-columns: 1fr;
    }

    .veteran-content {
        flex-direction: column;
        align-items: flex-start;
    }
}