/* ========================================
   STYLES DE BASE (HTML & BODY)
   ======================================== */
/* Réinitialisation globale */
html, body {
    height: 100%;              /* Hauteur 100% de la fenêtre */
    margin: 0;                 /* Supprime les marges par défaut */
    padding: 0;                /* Supprime les paddings par défaut */
    overflow-x: hidden;        /* Empêche le défilement horizontal */
}

/* Styles du body principal */
body {
    background-color: #303030; /* Fond gris foncé */
    min-height: 100vh;         /* Hauteur minimale = 100% de la fenêtre */
    display: flex;             /* Utilise flexbox */
    flex-direction: column;    /* Empile les éléments verticalement */
    margin: 0;                 /* Supprime les marges */
}

.corps {
    background: #e5e0e0;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
}

.header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    /* Retire background-image ici */
}

.header-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('photo/com/fontete.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; /* Ajuste l’opacité ici */
    z-index: 0;
}

.header-content > * {
    position: relative;
    z-index: 1;
}
.theme {
    text-align: center;
    font-weight: bold;
    margin: 30px auto 20px auto;
    width: 100%;
    display: block;
    color: #000000;
    font-size: 2em;
}

h1 {
    margin: 0px 0;
    color: #fff;
    text-align: center;
}
.logo-img {
    width: 200px;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}


/* ========================================
   TEXTE ET TYPOGRAPHIE
   ======================================== */
.tete {
    text-align: center;
    font-size: 1.5em;   /* Agrandit le texte */
    font-style: italic; /* Met en italique */
    color: #000000;       
}
.menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
 
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 101;
    padding: 0;
    transition: background 0.2s;
    
}
.menu-toggle:hover {
    background: #d3b1b1;
}
.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 4px;
    margin: 3px 0;
    background: #444;
    border-radius: 2px;
    transition: 0.3s;
    
}

/* Styles pour les menus déroulants */
.button.out {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
    flex: 1;
    max-width: 300px;
}

.dropdown button {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.29);
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 0.5px;
    display: inline-block;
    width: 100%;
    min-width: 200px;
}

.dropdown button:hover, .dropdown button:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #000;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    border: 1px solid rgba(255, 255, 255, 0.29);
    min-width: 200px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: #000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design pour les menus déroulants */
@media (max-width: 768px) {
    .button.out {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .dropdown { display: block; width: 100%; max-width: none; }
    .dropdown button { width: 100%; min-width: auto; }
    .dropdown-content {
        width: 100%;
        position: static;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.29);
        border-radius: 12px;
        margin-top: 5px;
    }
}

/* Modales (Contacte & Langues) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    padding: 22px 22px 18px 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-box h2 { margin: 0 0 8px 0; text-align: center; color: #111; }
.modal-content { text-align: center; }

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Menu déroulant */
.menu-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #f1dada;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    position: absolute;
    top: 80px;
    left: 24px;
    min-width: 220px;
    z-index: 100;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
    
}
.menu-list.show {
    display: flex;
}
.menu-list li {
    width: 100%;
}
.menu-list li a {
    display: block;
    padding: 16px 28px;
    color: #222;
    text-decoration: none;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.menu-list li a:hover {
    background: #f2f2f2;
}
.menu-list li:last-child a {
    border-bottom: none;
}

#search-input {
    display: none;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 60vw;           /* Largeur responsive */
    max-width: 700px;      /* Largeur max */
    min-width: 280px;
    padding: 12px 48px 12px 20px;
    border-radius: 24px;
    border: 1.5px solid #ccc;
    font-size: 1.15em;
    background: #fff;
    color: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    outline: none;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s, opacity 0.25s, transform 0.25s;
    opacity: 0;
    pointer-events: none;
}
#search-input.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
#search-input:focus {
    border: 1.5px solid #d3b1b1;
    background: #fff;
    box-shadow: 0 6px 32px rgba(180, 120, 120, 0.18);
}


/* ... existing code ... */


.team-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 30px 0;
    height: 320px;
    perspective: 1200px;
    gap: 0;
}
.carousel-member {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200px;
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    background: #fff;
    transition: 
        transform 0.5s cubic-bezier(.4,2,.6,1),
        box-shadow 0.3s,
        opacity 0.3s;
    opacity: 0;
    z-index: 1;
    transform: translateX(-50%) scale(0.85);
    pointer-events: none;
}
.carousel-member.far-left {
    transform: translateX(-340px) scale(0.7) rotateY(30deg);
    opacity: 0.3;
    z-index: 0;
}
.carousel-member.left {
    transform: translateX(-200px) scale(0.85) rotateY(18deg);
    opacity: 0.7;
    z-index: 1;
}
.carousel-member.active {
    opacity: 1;
    z-index: 3;
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    pointer-events: auto;
}
.carousel-member.right {
    transform: translateX(100px) scale(0.85) rotateY(-18deg);
    opacity: 0.7;
    z-index: 1;
}
.carousel-member.far-right {
    transform: translateX(240px) scale(0.7) rotateY(-30deg);
    opacity: 0.3;
    z-index: 0;
}
.carousel-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}
.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.92);
    text-align: center;
    padding: 18px 0 10px 0;
}
.member-info h3 {
    margin: 0;
    font-size: 1.15em;
    color: #222;
    font-weight: bold;
}
.member-info span {
    font-size: 0.98em;
    color: #888;
}
.video-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    margin-bottom: 24px;
    max-width: 100%;
}


.image-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 40px auto;
    height: 400px;
    perspective: 2000px;
    transform-style: preserve-3d;
    position: relative;
    max-width: 1200px;
}

.slider-card {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform-origin: center center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.slider-card[style*="--i:-2"] {
    transform: translateX(-400px) translateZ(-200px) rotateY(45deg);
    opacity: 0.6;
}

.slider-card[style*="--i:-1"] {
    transform: translateX(-200px) translateZ(-100px) rotateY(35deg);
    opacity: 0.8;
}

.slider-card[style*="--i:0"] {
    transform: translateX(0) translateZ(0) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.slider-card[style*="--i:1"] {
    transform: translateX(200px) translateZ(-100px) rotateY(-35deg);
    opacity: 0.8;
}

.slider-card[style*="--i:2"] {
    transform: translateX(400px) translateZ(-200px) rotateY(-45deg);
    opacity: 0.6;
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}






.bapteme-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.slide {
    min-width: 300px;
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.slide.active {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.tete {
    
    margin: 20px;
}

/* ====== Sortie photos grid & animations ====== */
.sortie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 24px auto 48px auto;
    padding: 0 16px;
    perspective: 1000px;
}

/* Scroller variant */
.sortie-grid.is-scroller {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 24px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.sortie-grid .sortie-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.sortie-grid.is-scroller .photo.sortie {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 auto;
    opacity: 1; /* visible in scroller without reveal */
    transform: translateZ(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.sortie-grid .photo.sortie {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(24px) scale(0.98) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    opacity: 0;
    transition: transform 700ms cubic-bezier(.2,.7,.2,1),
                opacity 600ms ease;
    will-change: transform, opacity;
}

.sortie-grid .photo.sortie.in-view {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sortie-grid .photo.sortie img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.sortie-grid .photo.sortie .member-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient( to top, rgba(0,0,0,0.55), rgba(0,0,0,0.0) );
    color: #fff;
    padding: 24px 16px 16px 16px;
    text-align: left;
}

.sortie-grid .photo.sortie .member-info h3 { color: #fff; }

.sortie-grid .photo.sortie::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15), transparent 40%);
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
}

.sortie-grid .photo.sortie:hover::after {
    opacity: 1;
}

.sortie-grid .photo.sortie:hover img {
    filter: brightness(1.05) contrast(1.05) saturate(1.05);
    transform: scale(1.04);
    transition: transform 400ms ease, filter 300ms ease;
}

.sortie-grid .photo.sortie img { transition: transform 400ms ease, filter 300ms ease; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sortie-grid .photo.sortie,
    .slide,
    .carousel-member {
        transition: none !important;
    }
}

/* Aligner le comportement mobile avec la page d'accueil */
@media (max-width: 768px) {
  .header-content,
  .corps,
  .image-slider,
  .team-carousel,
  .bapteme-slider,
  .sortie-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

