/* ============================================================
   ACB - Association du Counseling Biblique
   Fichier : style.css
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   1. POLICES & VARIABLES GLOBALES
   ──────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Variantes bold/italic : le navigateur reste sur Metropolis
   sans substituer une autre police */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

:root {
    --main-color:   #130027;
    --accent-color: #130027;
    --bg-glass:     rgba(255, 255, 255, 0.95);
    --font-family:  'Metropolis', sans-serif;

    /* Couleurs de bordure des cards Accompagnement */
    --c1: #ed6d5f;
    --c2: #791f73;
    --c3: #af2e68;
    --c4: #e94b54;
}


/* ────────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--main-color);
    background: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('images/fond.png') center / cover no-repeat;
    opacity: 0.5;
    z-index: -1;
}

/* ── Police universelle : tout le site en Metropolis Regular #130027 ── */
*, *::before, *::after {
    font-family: var(--font-family) !important;
}

/* Titres : toujours #130027 */
h1, h2, h3, h4, h5, h6 {
    color: var(--main-color) !important;
}


/* ────────────────────────────────────────────────────────────
   3. NAVIGATION
   ──────────────────────────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 22px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Logo */
.logo-box {
    position: absolute;
    left: 40px;
}

.logo-box img {
    height: 52px;
}

/* Liens de navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--main-color);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--accent-color);
}


/* ────────────────────────────────────────────────────────────
   4. DROPDOWN "MISSION"
   ──────────────────────────────────────────────────────────── */

.nav-item {
    position: relative;
}

/* Checkboxes de contrôle (cachées) */
#mission-toggle,
#mobile-menu-check {
    display: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    margin-top: 10px;
    list-style: none;
}

#mission-toggle:checked ~ .dropdown-menu {
    display: block;
}

.dropdown-item a {
    text-decoration: none;
    color: var(--main-color);
    display: block;
    padding: 8px 0;
    font-size: 15px;
}

.dropdown-item a:hover {
    color: var(--accent-color);
}


/* ────────────────────────────────────────────────────────────
   5. MISE EN PAGE PRINCIPALE
   ──────────────────────────────────────────────────────────── */

.main-column {
    width: 55%;
    margin: 0 auto;
    padding-top: 175px;
}

section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

/* Panneau en verre */
.glass-panel {
    background: var(--bg-glass);
    padding: 50px 40px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Titres & textes */
h2 {
    color: var(--main-color);
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

p {
    line-height: 1.8;
    color: #444;
    text-align: center;
}


/* ────────────────────────────────────────────────────────────
   6. GRILLE GÉNÉRIQUE & CARDS
   ──────────────────────────────────────────────────────────── */

.grid-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 10px;
    border-top: 5px solid var(--main-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: var(--main-color);
    margin-top: 0;
    font-size: 1.3em;
}

.card ul {
    padding-left: 20px;
    color: #555;
    font-size: 0.95em;
    margin: 10px 0;
}

.card li {
    margin-bottom: 8px;
}


/* ────────────────────────────────────────────────────────────
   7. SECTION "NOUS SOUTENIR" — QR CODE
   ──────────────────────────────────────────────────────────── */

.panel-soutenir {
    padding-bottom: 80px;
    position: relative;
}

.qr-container {
    position: absolute;
    bottom: 25px;
    right: 40px;
    text-align: center;
}

.qr-code {
    width: 90px;
    height: 90px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.qr-label {
    display: block;
    font-size: 10px;
    color: var(--main-color);
    margin-top: 5px;
    font-weight: bold;
}

/* ────────────────────────────────────────────────────────────
   9. FOOTER / CONTACT
   ──────────────────────────────────────────────────────────── */

footer#contact {
    background-color: white;
    padding: 80px 0;
    margin-top: 100px;
    border-top: 1px solid #eee;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.contact-column {
    flex: 1;
}

.contact-column h3 {
    color: var(--main-color);
    margin-bottom: 25px;
    font-size: 18px;
}

.contact-column a,
.contact-column p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    margin: 12px 0;
}

.address-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.address-link {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.2s;
}

.address-link:hover {
    color: var(--main-color);
}

.icon {
    width: 20px;
    text-align: center;
    color: var(--main-color);
}


/* ────────────────────────────────────────────────────────────
   10. RESPONSIVE
   ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .main-column {
        width: 90%;
    }
}

@media (max-width: 900px) {
    /* Navbar mobile : logo à gauche, burger à droite */
    .navbar-container {
        justify-content: space-between;
    }

    .logo-box {
        position: static;
    }

    /* Hamburger menu */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--main-color);
        transition: 0.3s;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    #mobile-menu-check:checked ~ nav {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 18px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding: 10px 0;
        background: #f9f9f9;
    }

    .dropdown-item a {
        text-align: center;
        padding: 10px 0;
    }

    /* Footer mobile */
    .contact-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* QR code redevient statique */
    .qr-container {
        position: static;
        margin: 20px auto 0;
        text-align: center;
    }

    .panel-soutenir {
        padding-bottom: 40px;
    }

    /* Listes en 1 colonne */
    .comment-list,
    .comment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    /* Grille cards en 1 colonne */
    .grid-box {
        grid-template-columns: 1fr;
    }

    /* Picto : au-dessus du titre, centré — on annule l'absolu */
    .glass-panel {
        position: static;
    }

    .section-picto {
        position: static;
        display: block;
        margin: 0 auto 15px;
        height: 60px;
    }
}


/* ────────────────────────────────────────────────────────────
   11. PICTOGRAMMES DE SECTION (coin haut-gauche)
   ──────────────────────────────────────────────────────────── */

/* Le glass-panel doit être en position relative pour ancrer le picto */
.glass-panel {
    position: relative;
}

.section-picto {
    position: absolute;
    top: 18px;
    left: 22px;
    height: 72px;
    width: auto;
    opacity: 0.9;
}


/* ────────────────────────────────────────────────────────────
   12. ACCOMPAGNEMENT — blocs info + bouton RDV
   ──────────────────────────────────────────────────────────── */

.accomp-info-row {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accomp-info-text {
    font-size: 0.95em;
    color: #555;
    text-align: left;
    margin: 0;
    line-height: 1.7;
}

.accomp-rdv {
    margin-top: 35px;
    text-align: center;
}

.accomp-rdv p {
    font-size: 1.05em;
    color: #444;
    margin-bottom: 14px;
}

.btn-rdv {
    display: inline-block;
    background: var(--main-color);
    color: white !important;
    text-decoration: none;
    padding: 13px 35px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(19,0,39,0.25);
}

.btn-rdv:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

@media (max-width: 650px) {
    .accomp-info-row {
        flex-direction: column;
    }
}


/* ────────────────────────────────────────────────────────────
   13. FORMATIONS — LOGOS PARTENAIRES
   ──────────────────────────────────────────────────────────── */

.formations-partenariat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(19, 0, 39, 0.08);
}

.formations-partenariat p {
    flex: 1;
    font-size: 0.92em;
    color: #555;
    text-align: center;
    margin: 0;
    line-height: 1.7;
}

.logo-partenaire {
    height: 55px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

/* Logo IBG légèrement plus grand pour équilibrer les tailles de texte */
.logo-partenaire:first-child {
    height: 68px;
}

.logo-partenaire:hover {
    opacity: 1;
}

.link-partenariat {
    color: var(--main-color) !important;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 650px) {
    .formations-partenariat {
        flex-direction: column;
        gap: 20px;
    }
}
