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

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f0e9;
    color: #211f1b;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* ==========================
   HEADER
========================== */

.gallery-header {
    padding: 25px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd6cb;
    background-color: white;
}

.logo img {
    width: 250px;
    height: 30px;
    margin-bottom: -7px;
}

.back-link {
    text-decoration: none;
    color: #211f1b;
    font-size: 14px;
}

.back-link:hover {
    color: #b26b3f;
}


/* ==========================
   INTRODUCTION
========================== */

.gallery-intro {
    color: white;
    text-align: center;
    margin: auto;
    padding: 100px 7%;
    background-color: rgb(100, 5, 5);
}

.small-title {
    color: rgb(226, 46, 46);
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 4px;
}

.gallery-intro h1 {
    font-family: Georgia, serif;
    font-size: 90px;
    font-weight: normal;
    line-height: 1;
    margin: 20px 0;
}

.gallery-intro > p:last-child {
    font-size: 17px;
}


/* ==========================
   SECTIONS
========================== */

.gallery-section {
    padding: 90px 7%;
    border-top: 1px solid #d8d0c5;
    background-color: white;
    color: white;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    color: rgb(114, 8, 8);
    font-family: Georgia, serif;
    font-size: 55px;
    font-weight: normal;
    margin: 5px 0;
}

.section-heading span {
    color: black;
    font-size: 15px;
}


/* ==========================
   IMAGES
========================== */

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.image-card {
    width: 100%;
    height: 300px;
    background: white;
    overflow: hidden;
    cursor: pointer;
}

.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}


/* ==========================
   FOOTER
========================== */

footer {
    background: rgb(75, 5, 5);
    color: white;
    text-align: center;
    padding: 70px 7%;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.socials a {
    color: white;
    text-decoration: none;
}

.socials a:hover {
    color: rgb(214, 97, 97);
}

footer p {
    color: white;
}

.qr {
    text-align: left;
    margin-top: -180px;
}

.qr img {
    width: 200px;
    height: 200px;
}

#top {
    color: white;
    text-decoration: none;
}

.ul {
    text-align: right;
    margin-top: -50px;
}

#back {
    color: white;
    text-decoration: none;
}

#back:hover {
    color: rgb(235, 110, 110);
}


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

.lightbox {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.88);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 9999;

    cursor: zoom-out;
}

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

.lightbox img {
    max-width: 90%;
    max-height: 90%;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

    transform: scale(0.9);

    transition: transform 0.3s ease;

    cursor: default;
}

.lightbox.active img {
    transform: scale(1);
}


/* ==========================
   BOUTON FERMER LIGHTBOX
========================== */

.close-lightbox {
    position: absolute;

    top: 25px;
    right: 35px;

    width: 50px;
    height: 50px;

    border: none;

    background: transparent;

    color: white;

    font-size: 45px;
    line-height: 1;

    cursor: pointer;

    z-index: 10000;

    transition: transform 0.2s ease;
}

.close-lightbox:hover {
    transform: scale(1.15);
}

/* ===== SECTION AVIS CLIENTS ===== */

.avis-clients {
    padding: 90px 7%;
    background: #f8f6f2;
}

.avis-entete {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.avis-sous-titre {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8b6f47;
}

.avis-entete h2 {
    margin: 0 0 15px;
    font-size: 38px;
    color: #222;
}

.avis-entete p {
    margin: 0;
    line-height: 1.7;
    color: #666;
    font-size: 16px;
}

.avis-conteneur {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.avis-carte {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e8e2d9;
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avis-carte:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.avis-etoiles {
    margin-bottom: 18px;
    font-size: 18px;
    letter-spacing: 3px;
    color: #c5964a;
}

.avis-texte {
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.avis-client {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avis-avatar {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;
    background: #222;
    color: white;

    font-size: 14px;
    font-weight: 700;
}

.avis-client h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #222;
}

.avis-client span {
    font-size: 13px;
    color: #888;
}


/* ===== TABLETTE ===== */

@media (max-width: 900px) {

    .avis-conteneur {
        grid-template-columns: repeat(2, 1fr);
    }

    .avis-entete h2 {
        font-size: 32px;
    }
}


/* ===== MOBILE ===== */

@media (max-width: 600px) {

    .avis-clients {
        padding: 65px 5%;
    }

    .avis-entete {
        margin-bottom: 35px;
    }

    .avis-entete h2 {
        font-size: 28px;
    }

    .avis-entete p {
        font-size: 14px;
    }

    .avis-conteneur {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .avis-carte {
        padding: 24px;
    }

    .avis-texte {
        font-size: 14px;
    }
}

/* ==========================
   TABLETTE
   601px à 900px
========================== */

@media (max-width: 900px) {

    /* ==========================
       HEADER
    ========================== */

    .gallery-header {
        padding: 22px 5%;
    }

    .logo img {
        width: 210px;
        height: auto;
    }

    .back-link {
        font-size: 14px;
    }


    /* ==========================
       INTRODUCTION
    ========================== */

    .gallery-intro {
        padding: 80px 5%;
    }

    .small-title {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .gallery-intro h1 {
        font-size: 70px;
    }

    .gallery-intro > p:last-child {
        font-size: 16px;
    }


    /* ==========================
       SECTIONS
    ========================== */

    .gallery-section {
        padding: 75px 5%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 48px;
    }

    .section-heading span {
        font-size: 14px;
    }


    /* ==========================
       IMAGES
    ========================== */

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .image-card {
        height: 280px;
    }


    /* ==========================
       FOOTER
    ========================== */

    footer {
        padding: 60px 5%;
    }

    .footer-logo {
        font-size: 25px;
    }

    .qr {
        margin-top: -160px;
    }

    .qr img {
        width: 170px;
        height: 170px;
    }


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

    .lightbox {
        padding: 30px;
    }

    .lightbox img {
        max-width: 92%;
        max-height: 88%;
    }

    .close-lightbox {
        top: 20px;
        right: 25px;
    }
}

/* ==========================
   TÉLÉPHONE
   600px et moins
========================== */

@media (max-width: 600px) {

    /* ==========================
       HEADER
    ========================== */

    .gallery-header {
        padding: 18px 5%;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo img {
        width: 190px;
        height: auto;
    }

    .back-link {
        font-size: 14px;
    }


    /* ==========================
       INTRODUCTION
    ========================== */

    .gallery-intro {
        padding: 65px 5%;
    }

    .small-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .gallery-intro h1 {
        font-size: 52px;
        margin: 15px 0;
    }

    .gallery-intro > p:last-child {
        font-size: 15px;
        line-height: 1.6;
    }


    /* ==========================
       SECTIONS
    ========================== */

    .gallery-section {
        padding: 60px 5%;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 40px;
        line-height: 1.1;
    }

    .section-heading span {
        font-size: 14px;
        line-height: 1.5;
    }


    /* ==========================
       IMAGES
    ========================== */

    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-card {
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 6;
    }

    .image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* ==========================
       FOOTER
    ========================== */

    footer {
        padding: 55px 5%;
    }

    .footer-logo {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .socials {
        gap: 18px;
    }

    .copyright {
        font-size: 13px;
        line-height: 1.5;
    }

    #back {
        font-size: 14px;
    }

    .ul {
        text-align: center;
        margin-top: 25px;
    }

    .qr {
        text-align: center;
        margin-top: 35px;
    }

    .qr img {
        width: 150px;
        height: 150px;
    }


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

    .lightbox {
        padding: 20px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 82%;
    }

    .close-lightbox {
        top: 12px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 40px;
    }
}