/* assets/css/style.css */

/* Import des polices Google */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&family=Roboto+Condensed:wght@300;400&display=swap');

:root {
    --couleur-orange: #F27D42; /* Orange du haut */
    --couleur-rose: #FA586F;   /* Rose du bandeau important */
    --couleur-texte: #333;
    --font-titre: 'Univers Light Condensed', sans-serif;
    --font-corps: 'Univers Light Condensed', sans-serif;
}


@font-face {
  font-family: "Univers Light Condensed";
  src: url("../../fonts/UniversLightCondensed.ttf") format("truetype");
  font-weight: 300;
}

html {
    font-size: 100%; /* 1rem = 16px */
}

body {
    font-family: var(--font-corps);
    background-color: #f8f9fa;
    color: var(--couleur-texte);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* TITRES */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 0.02rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0.02rem;
}

h3 {
    font-size: 1.6rem;
    line-height: 1.3;
}

h4, h5, h6 {
    line-height: 1.3;
}

/* Paragraphes */
p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

/* Navigation principale */
.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-link {
    color: #333 !important;
    font-weight: 400;
    text-transform: capitalize; /* Première lettre en majuscule */
    letter-spacing: 0;
    font-size: 1rem;
}

.navbar-brand {
    font-family: var(--font-titre);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 1.3rem;
}

.btn-nouveau {
    background-color: #FDD835; /* Jaune bouton */
    color: #333;
    border-radius: 20px;
    font-weight: bold;
}

/* Bandeau Important */
.bandeau-info {
    font-family: var(--font-corps);
    background-color: var(--couleur-rose);
    color: white;
    text-align: left;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%; /* Assure que le bandeau prend toute la largeur */
    overflow: hidden;
    white-space: nowrap;
}

.bandeau-info-text {
    display: inline-block;
    padding-left: 100%;
    animation: bandeau-defile 18s linear infinite;
}

@keyframes bandeau-defile {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bandeau-info {
        text-align: center;
    }

    .bandeau-info-text {
        padding-left: 0;
        animation: none;
    }
}


/* Style du Menu Latéral */
.sidebar-menu .list-group-item {
    border: none;
    padding: 15px 20px;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Le titre principal du menu (ex: Connaître l'Eglise) */
.sidebar-menu .menu-titre {
    border: 2px solid var(--couleur-rose);
    color: #333;
    background-color: white;
    font-family: var(--font-titre);
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Les sous-menus (1. La Foi Messianique, etc.) */
.sidebar-menu .sub-item {
    background-color: #ffe6eb; /* Rose très pâle */
    color: #333;
    margin-left: 20px; /* Décalage vers la droite (l'effet d'escalier) */
    position: relative;
    border-left: 3px solid var(--couleur-rose); /* Petite ligne verticale décorative */
}

/* L'élément actif (celui qu'on visite) */
.sidebar-menu .sub-item.active {
    background-color: #e6b3cc; /* Rose plus foncé comme sur la maquette */
    color: #333;
    border-color: #a64d79;
    font-weight: bold;
}

.sidebar-menu .sub-item:hover {
    background-color: #f8cdd6;
}

/* ============================= */
/* DROPDOWN AU SURVOL */
/* ============================= */

@media (min-width: 992px) {

.navbar .dropdown:hover .dropdown-menu{
    display:block;
    margin-top:0;
}

.navbar .dropdown-menu{
    margin-top: 0;
}

}

@media (min-width: 992px){

.dropdown-menu{
    display:block;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:all 0.25s ease;
}

.navbar .dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

}

.dropdown-item:hover{
    background:#f8e8ef;
    color:#800040;
}


.navbar .dropdown-toggle::after{
    transition: transform 0.2s ease;
}

.navbar .dropdown:hover .dropdown-toggle::after{
    transform: rotate(180deg);
}

/* --- ACCUEIL --- */

/* La barre orange de raccourcis */
.shortcut-bar {
    background-color: var(--couleur-orange);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    font-family: var(--font-titre);
}

.shortcut-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
    transition: opacity 0.3s;
}

.shortcut-bar a:hover {
    opacity: 0.8;
}

.shortcut-bar i {
    margin-right: 5px;
}

/* Le bouton "Denier" à droite */
.btn-denier {
    background-color: #d95e26; /* Un orange un peu plus foncé pour le contraste */
    padding: 5px 15px;
    border-radius: 0;
    font-weight: bold;
}

/* Le grand bloc beige de bienvenue */
.hero-section {
    background-color: #FFF5F0; /* Beige très clair/Orangé pâle */
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-title {
    color: #FDD835; /* Jaune/Orange du texte sur ta maquette */
    font-family: var(--font-titre);
    font-weight: bold;
    font-size: 2.8rem;
    line-height: 1.2;
    letter-spacing: 0.03rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Légère ombre pour lisibilité */
}

/* Les flèches de défilement */
.scroll-arrows {
    color: #ddd;
    font-size: 3rem;
    margin-top: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- PAGE CONTACT --- */
.form-contact-custom .form-control {
    background-color: #f4f4f4; /* Gris très clair */
    border: 1px solid #333;
    border-radius: 0; /* Bords carrés comme sur la maquette */
    margin-bottom: -1px; /* Permet aux bordures de se superposer pour ne faire qu'un trait */
    padding: 10px 15px;
    color: #4a3b4a;
}

/* Le focus (quand on clique sur le champ) */
.form-contact-custom .form-control:focus {
    background-color: #fff;
    border-color: #dc835ae8;
    box-shadow: none;
    z-index: 1; /* Pour que la bordure orange passe au-dessus des autres */
    position: relative;
}

/* --- AGENDA DIASPORA --- */

/* 1. La Ligne du temps (Timeline) */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* La ligne centrale verticale */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e6b3cc; /* Rose de la maquette */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Les conteneurs de texte (Gauche et Droite) */
.timeline-container {
    padding: 10px 30px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
    text-align: left;
}

/* Les icônes rondes sur la ligne centrale */
.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #f8cdd6;
    border: 3px solid white;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #800040;
}

/* Positionnement des icônes selon le côté */
.timeline-left .timeline-icon { right: -20px; }
.timeline-right .timeline-icon { left: -20px; }

/* Textes de la timeline */
.timeline-date {
    color: #800040;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.timeline-texte {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

/* Les liens des versets */
.verset-link {
    color: #F27D42;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed #F27D42;
}
.verset-link:hover {
    color: #800040;
    border-bottom-color: #800040;
}

/* --- BOUTONS TRIMESTRES --- */
.nav-pills .nav-link {
    color: #800040;
    font-weight: bold;
    border-radius: 30px;
    margin: 0 5px;
    border: 1px solid #e6b3cc;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff;
    background-color: #800040;
}

/* Adaptation de la timeline pour les 3 colonnes */
.timeline-sm .timeline-container {
    padding: 10px 15px; /* On réduit l'espace pour que ça rentre dans les colonnes */
}
.timeline-sm .timeline-texte {
    font-size: 0.85rem; /* Texte un peu plus petit */
}
.timeline-sm .timeline-date {
    font-size: 1rem;
}
.timeline-sm .timeline-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    top: 15px;
}
.timeline-sm .timeline-left .timeline-icon { right: -15px; }
.timeline-sm .timeline-right .timeline-icon { left: -15px; }

/* Pour mobile : on aligne la timeline à gauche */
/* ============================= */
/* TIMELINE MOBILE FIX */
/* ============================= */

@media screen and (max-width: 768px) {

.timeline::after{
    left:8px;
    width:3px;
}

.timeline-container{
    width:100%;
    padding-left:40px;
    padding-right:10px;
    margin-bottom:15px;
}

.timeline-left,
.timeline-right{
    left:0;
    text-align:left;
}

.timeline-icon{
    left:2px;
    right:auto;
    width:18px;
    height:18px;
    font-size:0.75rem;
}

.timeline-date{
    font-size:0.95rem;
}

.timeline-texte{
    font-size:0.85rem;
    line-height:1.5;
}

}

/* ============================= */
/* NAVIGATION TRIMESTRE */
/* ============================= */

.trimestre-navigation{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin:40px 0;
}

.trimestre-btn{
    background:white;
    border:2px solid #e6b3cc;
    width:45px;
    height:45px;
    border-radius:50%;
    font-size:1rem;
    color:#800040;
    cursor:pointer;
    transition:all 0.3s ease;
}

.trimestre-btn:hover{
    background:#800040;
    color:white;
}

.trimestre-titre{
    font-family:var(--font-titre);
    font-size:1.4rem;
    color:#800040;
}

@media (max-width:768px){

.trimestre-navigation{
    gap:15px;
}

.trimestre-titre{
    font-size:1.1rem;
}

.trimestre-btn{
    width:38px;
    height:38px;
}

}

/* ============================= */
/* RESPONSIVE TYPO */
/* ============================= */

@media (max-width: 992px) {

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.2rem; }

}

@media (max-width: 768px) {

    html { font-size: 95%; }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }

    .hero-section {
        padding: 3rem 1rem;
    }

}

@media (max-width: 480px) {

    html { font-size: 90%; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }

}

/* ============================= */
/* FOOTER MODERNE PREMIUM */
/* ============================= */

.footer-custom {
    background-color: #2c1f2c;
    color: #f1f1f1;
    font-size: 0.95rem;
}

.footer-title {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--couleur-orange);
    letter-spacing: 0.05rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--couleur-orange);
    padding-left: 5px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: #3b2a3b;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--couleur-orange);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem 0;
}

.footer-bottom {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-custom {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* --- PAGE RENCONTRE PRIERE --- */
.info-rencontre-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
    color: #333;
}

.info-rencontre-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-rencontre-list i {
    font-size: 1.5rem;
    color: #4a3b4a; /* Couleur sombre du texte */
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* Le bouton d'inscription de la maquette */
.btn-participation {
    background-color: #E8D5E5; /* Rose/Violet très clair */
    color: #4a3b4a;
    font-weight: bold;
    font-family: var(--font-titre);
    font-size: 1.1rem;
    padding: 10px 25px;
    border-radius: 5px;
    border: 1px solid #d5bcd1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-participation:hover {
    background-color: #d5bcd1;
    color: #4a3b4a;
    transform: translateY(-2px);
}

.btn-participation.btn-gris {
    background-color: #e9ecef !important; /* Gris clair */
    color: #6c757d !important; /* Texte gris foncé */
    border-color: #ced4da !important;
    box-shadow: none !important;
}

.rencontre-row {
    align-items: flex-start;
}

.rencontre-media-col,
.rencontre-content-col {
    display: flex;
    flex-direction: column;
}

.rencontre-poster {
    width: 100%;
    max-width: 640px;
    height: auto;
}

.rencontre-content-col h2 {
    line-height: 1.2;
}

.rencontre-form .form-control {
    margin-bottom: 12px;
    border-color: #d8d8d8;
}

@media (min-width: 992px) {
    .rencontre-section {
        padding-inline: 0.5rem;
    }

    .rencontre-media-col {
        padding-right: 1rem;
    }

    .rencontre-content-col {
        padding-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .rencontre-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .rencontre-media-col,
    .rencontre-content-col {
        width: 100%;
        max-width: 100%;
    }

    .rencontre-poster {
        margin-inline: auto;
    }

    .rencontre-content-col h2 {
        font-size: 1.9rem;
        margin-bottom: 1rem !important;
    }

    .info-rencontre-list {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .rencontre-section {
        padding-inline: 0.35rem;
    }

    .rencontre-content-col h2 {
        font-size: 1.55rem;
    }

    .info-rencontre-list {
        font-size: 1rem;
    }

    .info-rencontre-list li {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .info-rencontre-list i {
        font-size: 1.15rem;
        width: 18px;
        margin-right: 0;
        margin-top: 5px;
    }

    .btn-participation {
        width: 100%;
        text-align: center;
    }

    .rencontre-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rencontre-content-col h2 {
        font-size: 1.35rem;
    }

    .rencontre-content-col p {
        font-size: 1rem !important;
    }

    .rencontre-form .form-control,
    .rencontre-form textarea.form-control {
        font-size: 0.95rem;
    }
}

/* --- PAGE AGENDA MOBILE --- */
@media (max-width: 768px) {
    .agenda-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .agenda-title {
        font-size: 2rem;
        margin-bottom: 2rem !important;
        text-align: center;
    }

    .agenda-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem !important;
        text-align: center;
    }

    .agenda-month-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }

    .agenda-page .timeline::after {
        left: 50%;
        margin-left: -1.5px;
        width: 3px;
    }

    .agenda-page .timeline-container {
        width: 50%;
        padding-top: 0.4rem;
        padding-bottom: 1rem;
    }

    .agenda-page .timeline-left {
        left: 0;
        text-align: right;
        padding-right: 1.45rem;
        padding-left: 0.45rem;
    }

    .agenda-page .timeline-right {
        left: 50%;
        text-align: left;
        padding-left: 1.45rem;
        padding-right: 0.45rem;
    }

    .agenda-page .timeline-icon {
        top: 8px;
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .agenda-page .timeline-left .timeline-icon {
        left: auto;
        right: -12px;
        transform: none;
    }

    .agenda-page .timeline-right .timeline-icon {
        left: -12px;
        right: auto;
        transform: none;
    }

    .agenda-page .timeline-date {
        font-size: 1.1rem;
        margin-top: 0;
        margin-bottom: 0.6rem;
    }

    .agenda-page .timeline-texte {
        font-size: 1rem;
        line-height: 1.65;
    }

    .agenda-page .verset-link {
        font-size: 1.03rem;
    }
}

@media (max-width: 480px) {
    .agenda-title {
        font-size: 1.75rem;
    }

    .agenda-subtitle {
        font-size: 1.35rem;
    }

    .agenda-month-title {
        font-size: 1.2rem;
    }

    .agenda-page .timeline-date {
        font-size: 1.02rem;
    }

    .agenda-page .timeline-texte {
        font-size: 0.96rem;
    }

    .agenda-page .timeline-left {
        padding-right: 1.2rem;
        padding-left: 0.25rem;
    }

    .agenda-page .timeline-right {
        padding-left: 1.2rem;
        padding-right: 0.25rem;
    }
}