
.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: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; /* Ajuste l’opacité ici */
    z-index: 0;
}

.header-content > * {
    position: relative;
    z-index: 1;
}


h1 {
    margin: 0px 0;
    color: #fff;
    text-align: center;
}
.logo-img {
    width: 200px;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}


.menu-btn {
    background: #444;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-btn:hover {
    background: #666;
}
.logo-img {
    width: 200px; /* ou la taille que tu veux */
    height: auto;
}
.corps {
    background: #e5e0e0;
    flex: 1 1 auto;
    width: 100%;
}
body {
    background-color: #303030;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   EFFETS PROFESSIONNELS AU SCROLL
   ======================================== */

.meditation-container {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.meditation-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de brillance subtile au survol de la galerie */
.meditation-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(211, 177, 177, 0.1) 50%,
        transparent 70%);
    background-size: 200% 200%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: shimmer 3s ease-in-out infinite;
}

.meditation-container:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
.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;
    
}

/* 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);
}
p {
    font-size: 20px;
    color: #000000;
    margin-bottom: 22px;
    text-align: justify;
    max-width: 900px; /* Largeur maximale réduite */
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   STYLES POUR LES CONTENEURS DE MÉDITATION ET VIDÉOS
   ======================================== */

.meditation-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    /* Effet glassmorphism */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.meditation-text {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.meditation-text h2 {
    color: #1a1a1a;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 3px solid #d3b1b1;
    padding-bottom: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.meditation-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    text-align: justify;
}

.meditation-text a {
    color: #d3b1b1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.meditation-text a:hover {
    color: #b08888;
    text-decoration: underline;
}

.meditation-video {
    flex: 1;
    min-width: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.meditation-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #000;
    display: block;
    max-width: 100%;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE - TABLETTES (max-width: 768px)
   ======================================== */

@media screen and (max-width: 768px) {
    .meditation-container {
        gap: 20px;
        margin: 30px 15px;
        padding: 20px;
    }

    .meditation-text h2 {
        font-size: 1.5em;
    }

    .meditation-text p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ========================================
   RESPONSIVE - iPhone SE et petits écrans (max-width: 480px)
   ======================================== */

@media screen and (max-width: 480px) {
    .meditation-container {
        margin: 20px 10px;
        padding: 12px;
        gap: 15px;
        border-radius: 8px;
    }

    .meditation-text h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
        border-bottom: 2px solid #d3b1b1;
        padding-bottom: 8px;
    }

    .meditation-text p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .meditation-video video {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .tete {
        font-size: 1.2em !important;
        padding: 0 10px;
    }
}

/* ========================================
   RESPONSIVE - Très petits écrans (max-width: 375px)
   iPhone SE 1ère génération
   ======================================== */

@media screen and (max-width: 375px) {
    .meditation-container {
        margin: 15px 8px;
        padding: 10px;
        gap: 12px;
    }

    .meditation-text h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .meditation-text p {
        font-size: 14px;
        line-height: 1.5;
    }

    .tete {
        font-size: 1.1em !important;
    }
}

/* ========================================
   MODE PAYSAGE pour petits écrans
   ======================================== */

@media screen and (max-width: 768px) and (orientation: landscape) {
    .meditation-container {
        padding: 15px;
        gap: 15px;
    }

    .meditation-text h2 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }

    .meditation-text p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* ========================================
   BOUTON STYLE VERRE (LIQUID GLASS EFFECT)
   ======================================== */
.btn-glass {
    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;
}

.btn-glass:hover, .btn-glass: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);
    color: #000;
}

/* ========================================
   GALERIE PHOTO MODERNE - VITRINE
   ======================================== */

.meditation-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.branham-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.branham-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 177, 177, 0.3), rgba(180, 120, 120, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.branham-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: height 0.4s ease;
    z-index: 2;
}

.branham-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05) saturate(1.1);
    border-color: rgba(211, 177, 177, 0.5);
}

.branham-img:hover::before {
    opacity: 1;
}

.branham-img:hover::after {
    height: 40%;
}

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

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media screen and (max-width: 768px) {
    .meditation-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        padding: 25px;
        margin: 30px 15px;
    }

    .branham-img {
        height: 280px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}

/* ========================================
   RESPONSIVE - MOBILES
   ======================================== */

@media screen and (max-width: 480px) {
    .meditation-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 12px;
        margin: 20px 10px;
    }

    .branham-img {
        height: 280px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

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

    .lightbox-counter {
        font-size: 14px;
        padding: 8px 18px;
        bottom: 20px;
    }
}
