@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #222;
    overflow-x: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 340px;
    overflow: hidden;
    isolation: isolate;
}

.image-container>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    filter: contrast(1.06) saturate(1.12) brightness(0.96);
    transform: scale(1.04);
}

.image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.35) 70%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.10) 45%,
            rgba(0, 0, 0, 0.45) 100%);
}

.logo-image {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
}

.logo-image::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;

    background:
        radial-gradient(circle at center,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.12) 35%,
            rgba(255, 255, 255, 0.06) 55%,
            transparent 75%);

    filter: blur(60px);
    z-index: -2;
}

.logo-image::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;

    background:
        radial-gradient(circle at center,
            rgba(175, 128, 78, 0.25) 0%,
            rgba(175, 128, 78, 0.12) 40%,
            transparent 70%);

    filter: blur(80px);
    z-index: -3;
}

.logo-image img {
    width: min(340px, 70vw);
    height: auto;

    filter:
        drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6)) brightness(0) saturate(100%) invert(74%) sepia(25%) saturate(700%) hue-rotate(5deg) brightness(105%);
}

.logo-image::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 140, 0.35) 0%, rgba(255, 210, 140, 0.15) 40%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.75) 100%);
}

.logo-image img:hover {
    transform: scale(1.02);
}

.link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.link-container h4 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
    font-family: 'Playfair Display', serif;
}

/* ==================== CARROUSEL DES RÉGIONS ==================== */

.regions-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 60px 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #a22, #822);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 14px 18px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: linear-gradient(145deg, #b33, #a11);
    transform: translateY(-50%) scale(1.1);
}

.left-btn {
    left: 10px;
}

.right-btn {
    right: 10px;
}

.regions-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 10px 80px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.regions-carousel::-webkit-scrollbar {
    display: none;
}

.regions-carousel.is-centered {
    justify-content: center;
}

.region-card {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #222;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    height: 320px;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: #f8f8f8;
}

.region-card span {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .carousel-btn {
        font-size: 1.5rem;
        padding: 10px 14px;
    }

    .region-card {
        width: 220px;
        height: 280px;
    }

    .region-card img {
        height: 180px;
    }

    .regions-carousel {
        padding: 10px 40px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        display: none;
    }

    .regions-carousel {
        padding: 0 20px;
        gap: 20px;
    }
}

.home-liens-visuels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
}

.home-liens-visuels a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.home-liens-visuels a:hover {
    transform: scale(1.05);
}

.home-liens-visuels img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
}

.image-full-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.bloc-conseils {
    background-color: #f0f0f0;
    padding: 80px 20px;
}

.bloc-conseils h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    color: #333;
    text-align: center;
}

.bloc-conseils .conseil-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bloc-conseils .conseil-item a * {
    text-decoration: none;
}

.bloc-conseils .conseil-item a:visited {
    color: inherit;
}

.conseils-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.conseil-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    flex: 1 1 280px;
    max-width: 300px;
    transition: transform 0.3s;
}

.conseil-item:hover {
    transform: translateY(-5px);
}

.conseil-item h3 {
    color: #822;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.conseil-item p {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
}

.button-carte {
    position: fixed;
    bottom: 60px;
    left: 47%;
    background-color: #822;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-carte img {
    width: 40px;
    height: 40px;
}

.button-carte:hover {
    background-color: #822;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .button-carte {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .button-carte img {
        width: 30px;
        height: 30px;
    }

    .button-carte:hover {
        background-color: #822;
        transform: translateY(-1px);
    }
}

/* =========================
   Widget vidéo flottant
========================= */

.video-widget {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    z-index: 1000;
    background: #5c2e15;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

.video-widget video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-pause-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.resize-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.close-btn {
    position: absolute;
    top: -5px;
    right: -7px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-widget.expanded {
    width: 400px;
    height: 450px;
    bottom: 60px;
    right: 20px;
    border-radius: 16px;
}

.video-widget.resized {
    width: 300px;
    height: 200px;
    border-radius: 12px;
}

@media (min-width: 1025px) {
    .video-widget {
        width: 120px;
        height: 200px;
        border-radius: 20px;
    }

    .video-widget.expanded {
        width: 500px;
        height: 400px;
    }

    .video-widget.resized {
        width: 350px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    .button-carte {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .button-carte img {
        width: 18px;
        height: 18px;
    }
}

.join {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.join-btn {
    display: inline-block;
    padding: 14px 32px;

    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: white;
    text-decoration: none;

    background: linear-gradient(135deg, #822, #a22);
    border-radius: 40px;

    box-shadow: 0 6px 18px rgba(130, 34, 34, 0.3);
    transition: all 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(130, 34, 34, 0.4);
    background: linear-gradient(135deg, #a22, #c33);
}

.join-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(130, 34, 34, 0.3);
}

/* =========================
   TROIS IMAGES PREMIUM
========================= */

.three-images-container {
    width: min(1280px, 100%);
    margin: 80px auto;
    padding: 0 24px;

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

.three-images-container a {
    position: relative;
    overflow: hidden;

    min-height: 460px;

    border-radius: 26px;

    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    text-decoration: none;
    color: #fff;

    background: #111;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.16),
        0 4px 10px rgba(0, 0, 0, 0.08);

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

.three-images-container a::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.42) 38%,
            rgba(0, 0, 0, 0.08) 100%);

    z-index: 2;
}

.three-images-container a::after {
    content: "";
    position: absolute;
    inset: 0;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: inherit;

    z-index: 3;
    pointer-events: none;
}

.three-images-container a:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22),
        0 10px 22px rgba(0, 0, 0, 0.12);
}

.three-images-container img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.4s ease;
}

.three-images-container a:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.three-images-container span {
    position: relative;
    z-index: 4;

    width: 100%;

    padding: 34px 28px;

    font-family: "Playfair Display", serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.15;

    text-align: left;
    color: #fff;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.45);
}

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

@media (max-width: 980px) {
    .three-images-container {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .three-images-container a {
        min-height: 380px;
    }
}

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .image-container {
        height: 42vh;
        min-height: 280px;
    }

    .logo-image img {
        max-width: 72vw;
    }

    .link-container {
        padding: 26px 14px;
    }

    .link-container h4 {
        font-size: 1.6rem;
        margin-bottom: 22px;
    }

    .regions-carousel-wrapper {
        padding: 30px 0;
        overflow: hidden;
    }

    .regions-carousel {
        padding: 8px 14px;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .region-card {
        width: 72vw;
        max-width: 320px;
        scroll-snap-align: start;
    }

    .home-liens-visuels {
        padding: 22px 14px;
        gap: 18px;
    }

    .home-liens-visuels a {
        width: 100%;
        max-width: 420px;
    }

    .home-liens-visuels img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .bloc-conseils {
        padding: 50px 14px;
    }

    .bloc-conseils h2 {
        font-size: 1.7rem;
        margin-bottom: 22px;
    }

    .conseils-cards {
        gap: 16px;
    }

    .conseil-item {
        max-width: 520px;
        width: 100%;
    }

    .three-images-container {
        gap: 18px;
        padding: 0 14px;
        margin: 50px auto;
        max-width: 100%;
    }

    .three-images-container a {
        min-height: 300px;
        border-radius: 20px;
    }

    .three-images-container span {
        padding: 22px 18px;
        font-size: 1.45rem;
    }

    .button-carte {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        bottom: 18px !important;
        z-index: 1200;
    }

    .video-widget {
        right: 14px;
        bottom: 92px;
        width: 64px;
        height: 64px;
        border-radius: 50%;
    }

    .video-widget.expanded {
        width: calc(100vw - 28px);
        height: 60vh;
        right: 14px;
        bottom: 92px;
        border-radius: 14px;
    }

    .video-widget.resized {
        width: 220px;
        height: 160px;
        border-radius: 12px;
    }
}