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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #000;
    line-height: 1.6;
    background-image: url("img/back.jpg");
    background-repeat: no-repeat;
    background-position: left top;
    background-attachment: fixed;


}

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

h3 {
    text-align: center;
    padding: 30px 0 20px 0;
}
/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 20px;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

nav a {
    font-family: 'Quicksand', sans-serif;
     text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    color: #000;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 12px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

#nav-menu ul li:nth-last-child(-n+2) a {
    color: orange;
}

#nav-menu ul li:nth-last-child(-n+2) a:hover {
    color: #000;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #000;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= HERO ================= */
.hero {
    height: 80vh;
    background: url("img/mains-v.jpg") center/cover no-repeat;
    margin-top: 70px;
}

/* ================= SECTIONS ================= */
.section {
    padding: 20px 10%;
}

.section h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 50px;
}


.content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Fond blanc uniquement sur le bloc image + texte */
.section .content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;

    max-width: 1100px;      /* largeur contrôlée */
    margin: 0 auto;        /* centré dans la section */
}


.image {
    flex: 1;
    max-width: 400px;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.text {
    flex: 2;
    font-size: 16px;
}

.download-btn-container {
    margin-top: 20px;
    text-align: left;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: #E67E22;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.download-btn:hover {
    background-color: #d76c1f;
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 18px;
}



/* ================= SECTION INTERMEDIAIRE ================= */

.section-60 {
    display: flex;
    justify-content: center;
}

/* bloc principal limité à 60% */
.section-60 .double-image {
    width: 60%;
    max-width: 1100px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;

    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: center;
}

/* colonnes images */
.double-image > div {
    flex: 1;
}

/* images */
.double-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}


@media (max-width: 768px) {

    /* bloc principal */
    .section-60 .double-image {
        width: 90%;
        padding: 15px;
        gap: 12px;
        flex-direction: row; /* force la ligne */
    }

    /* chaque image = 50% */
    .img-link {
        flex: 1 1 50%;
    }

    .img-link img {
        width: 100%;
        height: auto;
    }
}




/* images cliquables */
.img-link {
    flex: 1;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover = effet bouton */
.img-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* images */
.img-link img {
    width: 100%;
    height: auto;
    display: block;
}


/* ====== VARIANTE IMAGE UNIQUE ====== */

.img-link2 {
    display: block;
    width: 30%;
    padding-top: 30px;

}

.img-link2 img {
    width: 100%;
    height: auto;
    display: block;

}

@media (max-width: 768px) {
    .img-link2 {
        width: 70%;
        margin: 20px auto 0; /* centre le bouton */
    }
}

/* ================= SEPARATEUR ================= */
.separator {
    text-align: center;
    margin: 40px 0;
}

.separator img {
    width: 50%;
    max-width: 702px;
    height: auto;
    display: inline-block;
}

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

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

#exemples .intro {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #333;
}

/* Masonry layout */
.gallery {
    columns: 3;
    column-gap: 20px;
}

/* Carte image */
.gallery-item {
    background: #FFB347;
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    break-inside: avoid; /* empêche la coupure */
    transition: transform 0.3s;
}

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

/* Images et vidéos : format respecté */
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Légende */
.caption {
    text-align: center;
    font-size: 14px;
    padding: 8px 0;
    color: #333;
}


/* ================= VIDEOS ================= */

/* Conteneur ratio 16:9 */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

/* Iframe responsive */
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== CAROUSEL ===== */
.carousel-container {
    position: relative;
    width: 60%;                 /* 👉 60% sur ordinateur */
    max-width: 1200px;
    margin: 0 auto;             /* centrage */
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 10px;
}

.carousel-item img {

    height: auto;
    max-height: 461px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-item .caption {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* Boutons */
.carousel-container .prev,
.carousel-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    z-index: 10;
}

.carousel-container .prev { left: 10px; }
.carousel-container .next { right: 10px; }

/* ===== TABLETTE ===== */
@media screen and (max-width: 1024px) {
    .carousel-container {
        width: 80%;            /* tablette */
    }
}

/* ===== MOBILE ===== */
@media screen and (max-width: 768px) {
    .carousel-container {
        width: 100%;           /* 👉 plein écran */
        padding: 0 10px;
    }

    .carousel-item .caption {
        font-size: 12px;
    }

    .carousel-container .prev,
    .carousel-container .next {
        font-size: 24px;
        padding: 4px 8px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-item img {
        max-height: 300px;
    }
}














/* ================= FOOTER ================= */
footer {
    background: linear-gradient(135deg, #FFB347, #FFCC33);
    color: #333;
    padding: 5px 10% 20px 10%;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-contact,
.footer-social {
    margin: 20px;
}

.footer-contact h3,
.footer-social h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #FF5722;
}

.footer-contact .description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;

}

footer a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #FF5722;
}

.footer-social .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social .social-icons a {
    font-size: 28px;
    color: #fff;
    background: #FF5722;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.footer-social .social-icons a:hover {
    transform: scale(1.2);
    background: #E64A19;
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    padding-top: 15px;
    font-size: 10px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #FFCC33;
}

footer p i {
    margin-right: 8px;
    color: #FF5722;
}

/* -------- MOBILE & TABLETTE -------- */
@media (max-width: 1024px) {

    body {
        background-image: none;
    }

    /* ---------- MENU BURGER ---------- */
    .burger {
        display: flex;
        z-index: 1100;
    }

    nav {
        position: absolute;
        top: 65px;
        right: 20px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: block;
        height: 0;
        transition: height 0.3s ease;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 10px 0;
        display: none;
    }

    nav.open {
        height: auto;
    }

    nav.open ul {
        display: flex;
        flex-direction: column;
        width: 200px;
    }

    nav ul li {
        margin: 10px 20px;
        text-align: left;
    }

    /* ---------- SECTIONS ---------- */
    .content {
        flex-direction: column;
        gap: 20px;
    }

    .image,
    .text {
        max-width: 100%;
        height: auto;
    }

    .image img {
        width: 100%;
        height: auto;
    }

    .download-btn-container {
        text-align: center;
        margin-top: 15px;
    }

    /* ---------- TYPOGRAPHIE ---------- */
    .section {
        padding: 20px 5%;
    }

    .section h2 {
        font-size: 24px;
    }

    .text {
        font-size: 15px;
    }

    /* ---------- GALERIE ---------- */
    .gallery {
        columns: 1;          /* une seule colonne */
        column-gap: 0;
    }

    .gallery-item {
        width: 100%;
        margin-bottom: 20px;
    }

   /* ---------- CAROUSEL RESPONSIVE ---------- */
    .carousel-container {
        max-width: 100%;
    }

    .carousel-item img {
        width: 100%;
        height: 250px; /* hauteur fixe pour mobile */
        object-fit: contain; /* l'image s'adapte à la hauteur sans déformation */
        border-radius: 12px;
    }

    .carousel-container .prev,
    .carousel-container .next {
        top: 50%;
        transform: translateY(-50%);
        padding: 5px 10px;
        font-size: 28px;
    }


       /* ---------- FOOTER SOCIAL ---------- */
     /* ---------- FOOTER CONTACT TEXTE ---------- */
    .footer-contact .description {
        text-align: center;
        line-height: 1.4;
    }

    .footer-contact .description strong {
        display: block;
        margin: 0 0 5px 0;
    }

    .footer-contact .description br {
        display: block;
        content: "";
        margin-bottom: 8px;
    }

 .footer-social {
        width: 100%;
        text-align: center;
        margin: 20px 0;
    }

    .footer-social h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .footer-social .social-icons {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-social .social-icons a {
        width: 50px;
        height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
    }

    .footer-top {
        justify-content: center;   /* centre horizontalement */
        align-items: center;       /* centre verticalement si plusieurs lignes */
        text-align: center;        /* centre le texte */
    }

    .footer-top > * {
        margin-bottom: 20px;       /* espace entre les éléments sur mobile */
    }


}

