/* =====================================================
   VARIABLES
===================================================== */

:root {
    --accent: #3498db;
    --accent-dark: #0b4db3;

    --bg: #0b1220;
    --bg-card: rgba(255,255,255,0.04);

    --text: #f8fafc;
    --text-soft: #cbd5e1;

    --white: #ffffff;
    --black: #111111;

    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);

    --transition: .3s ease;
}

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

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

html,
body {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
}

/* =====================================================
   FORCE FULL WIDTH WORDPRESS
===================================================== */

body.page-template-page-ville .site,
body.page-template-page-ville .site-content,
body.page-template-page-ville .content-area,
body.page-template-page-ville .entry-content,
body.page-template-page-ville main,
body.page-template-page-ville .container,
body.page-template-page-ville .wrap,
body.page-template-page-ville .ast-container {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================================
   WRAPPER
===================================================== */

.pv-wrapper {
    position: relative;

    width: 100vw;

    left: 50%;
    right: 50%;

    margin-left: -50vw;
    margin-right: -50vw;

    overflow: hidden;

    font-family: 'Inter', sans-serif;

    background: var(--bg);
    color: var(--text);
}

.pv-section {
    width: 100%;
    padding: 80px 5vw;
}

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

.pv-hero {
    position: relative;

    width: 100%;
    height: 70vh;

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

    background-size: cover;
    background-position: center;
}

.pv-hero__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);
}

.pv-hero__content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.pv-hero__title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;

    text-transform: uppercase;

    color: var(--white) !important;

    text-shadow:
        0 10px 30px rgba(0,0,0,0.5),
        0 2px 5px rgba(0,0,0,0.3);
}

/* =====================================================
   MAIN GRID
===================================================== */

.pv-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.pv-title-accent {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.pv-title-accent::after {
    content: '';

    display: block;

    width: 60px;
    height: 4px;

    background: var(--accent);

    margin-top: 15px;
}

.pv-text-content {
    font-size: 1.1rem;
    line-height: 1.9;

    color: #FFFFFF;
}

/* =====================================================
   BUTTONS & SOCIAL
===================================================== */

.pv-social-links {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-wrap: wrap;

    margin-top: 30px;
}

.pv-btn,
.pv-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-dark) 100%
    );

    color: var(--white);

    transition: var(--transition);
}

.pv-btn:hover,
.pv-social-icon:hover,
.pv-card:hover,
.pv-agenda-card:hover {
    transform: translateY(-4px);
}

.pv-btn {
    height: 50px;
    padding: 0 30px;

    border-radius: 50px;

    font-weight: 600;
}

.pv-social-icon {
    width: 50px;
    aspect-ratio: 1;

    border-radius: 50%;

    flex-shrink: 0;
}

.pv-social-icon i {
    font-size: 18px;
}

/* =====================================================
   GALLERY
===================================================== */

.pv-main-image-container {
    width: 100%;
    height: 500px;

    overflow: hidden;
    border-radius: var(--radius);

    margin-bottom: 15px;

    box-shadow: var(--shadow);
}

.pv-main-image-container img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s ease;
}

.pv-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.pv-thumb-item {
    aspect-ratio: 1;

    overflow: hidden;
    border-radius: 10px;

    cursor: pointer;

    border: 2px solid transparent;

    transition: var(--transition);
}

.pv-thumb-item:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pv-thumb-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =====================================================
   INFO CARDS
===================================================== */

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

.pv-card {
    padding: 40px;

    border-radius: var(--radius);

    background: var(--bg-card);

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    transition: var(--transition);
}

.pv-card--center {
    text-align: center;
}

.pv-card__title {
	 margin-bottom: 15px;

    text-transform: uppercase;

    font-size: 1.3rem;
    font-weight: 700;
	color: #FFD200 !important;
}
.pv-card__label {
    margin-bottom: 15px;

    text-transform: uppercase;

    font-size: 1.3rem;
    font-weight: 700;

    color: #FFD200;
}

.pv-card__big {
    font-size: 4rem;
    font-weight: 900;

    line-height: 1;

    margin-bottom: 15px;

    color: var(--white);
}

.pv-card__value {
    font-size: 2.5rem;
    font-weight: 800;
}

.pv-card__label2 {
    font-size: 1.1rem;
    color: var(--white);
}

.pv-card__subtitle {
    color: var(--accent);

    font-size: 1.2rem;
    font-weight: 300;
}

.pv-address {
    line-height: 1.8;
}

.pv-info-grid a {
    color: var(--white);
}

.pv-logo-wrapper {
    margin-top: 20px;

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

.pv-logo {
    max-width: 150px;
    height: auto;

    border-radius: 20px; /* coins arrondis */
    object-fit: contain;

    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.35));
}

/* =====================================================
   AGENDA
===================================================== */

.pv-agenda-section {
    background: var(--white);
    padding: 80px 20px;
}

.pv-expo-section {
    background: #f3f3f3;
    padding: 80px 20px;
}

.pv-agenda-container {
    max-width: 1400px;
    margin: auto;
}

.pv-agenda-title {
    margin-bottom: 40px;

    text-align: center;

    font-size: clamp(2rem, 4vw, 42px);
    line-height: 1.2;

    color: var(--black);
}

.pv-agenda-title2 {
	margin-bottom: 40px;

    text-align: center;

    font-size: clamp(2rem, 4vw, 42px);
    line-height: 1.2;
color: #0B3C5D !important;
}

.pv-agenda-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 35px 20px;
}

.pv-agenda-card {
    width: 100%;

    background: var(--white);

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: var(--transition);

    padding-bottom: 20px;
}

.pv-agenda-card img {
    width: 250px;
    height: 350px;

    object-fit: cover;

    margin: 20px auto 0;

    border-radius: 18px;
}

.pv-agenda-card-content {
    padding: 20px;
}

.pv-agenda-post-title {
    text-align: center;

    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}

.pv-title-red,
.pv-title-color1 {
    color: var(--accent);
}

.pv-title-black,
.pv-title-color2 {
    color: var(--black);
}



/* =====================================================
   CAROUSEL
===================================================== */

.pv-full-carousel-section {
    margin: 40px 0;
    padding: 60px 0;

    background: #e2001a;

    color: var(--white);
}

.pv-full-carousel-section .pv-agenda-title {
    color: var(--white);

    padding-bottom: 15px;

    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.pv-carousel-wrapper {
    overflow-x: auto;

    padding: 10px 0 30px;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
}

.pv-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.pv-carousel-track {
    display: flex;
    gap: 20px;

    padding: 0 40px;
}

.pv-carousel-item {
    flex: 0 0 300px;

    max-width: 300px;

    scroll-snap-align: start;
}

.pv-carousel-card {
    position: relative;

    height: 350px;

    overflow: hidden;
    border-radius: 12px;

    background: #000;

    box-shadow: var(--shadow);
}

.pv-carousel-img,
.pv-carousel-img img {
    width: 100%;
    height: 100%;
}

.pv-carousel-img img {
    object-fit: cover;

    opacity: 0.9;

    transition: .5s ease;
}

.pv-carousel-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.pv-carousel-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 20px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.4) 60%,
        transparent 100%
    );
}

.pv-carousel-overlay h3 {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;

    text-transform: uppercase;
}

.pv-carousel-overlay a {
    color: var(--white);
}

.pv-carousel-overlay a:hover {
    color: #ffcccb;
}
/* Activer le scroll sur le wrapper */
.pv-carousel-wrapper {
    overflow-x: auto; /* IMPORTANT pour le scroll */
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* =====================================================
   NAVIGATION CAROUSEL
===================================================== */

.pv-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 14px;

    margin-bottom: 20px;
}

/* Boutons */

.pv-nav-btn {

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

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;

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

    backdrop-filter: blur(8px);

    color: #fff;

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

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.08);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

/* Hover */

.pv-nav-btn:hover {

    background: #000;

    border-color: rgba(255,255,255,0.35);

    transform: translateY(-2px) scale(1.05);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Click */

.pv-nav-btn:active {
    transform: scale(0.96);
}

/* Focus accessibilité */

.pv-nav-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

    .pv-agenda-grid {
        grid-template-columns: repeat(3,1fr);
    }

}

@media (max-width: 980px) {

    .pv-main-grid,
    .pv-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .pv-carousel-item {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .pv-carousel-card {
        height: 320px;
    }

}

@media (max-width: 640px) {

    .pv-section {
        padding: 60px 20px;
    }

    .pv-agenda-grid {
        grid-template-columns: 1fr;
    }

    .pv-agenda-card {
        max-width: 320px;
        margin: auto;
    }

    .pv-carousel-track {
        padding: 0 20px;
    }

    .pv-carousel-item {
        flex: 0 0 85%;
        max-width: 85%;
    }

    .pv-carousel-card {
        height: 300px;
    }

    .pv-main-image-container {
        height: 350px;
    }

    .pv-thumbnails {
        grid-template-columns: repeat(3,1fr);
    }

}