:root {
    /* Couleurs et styles pour la page d'accueil */
    /* Afin de changer les styles, il y a juste à changer ces variables */
    --home-bg: #efefef; /* Couleur de fond de la page d'accueil */
    --hero-gradient-start: #a65f37; /* Couleur de début du dégradé pour la section hero */
    --hero-gradient-end: #bd7d2a; /* Couleur de fin du dégradé pour la section hero */
    --hero-text-color: #fff; /* Couleur du texte dans la section hero */
    --hero-highlight-color: #efc54a; /* Couleur de surlignage dans la section hero */
    --btn-primary-bg: #e6c045; /* Couleur de fond du bouton principal */
    --btn-primary-color: #fff; /* Couleur du texte du bouton principal */
    --btn-secondary-bg: #efefef; /* Couleur de fond du bouton secondaire */
    --btn-secondary-color: #d49a23; /* Couleur du texte du bouton secondaire */
    --finder-bg: #f7f7f7; /* Couleur de fond du finder */
    --finder-border-color: #b7b7b7; /* Couleur de bordure du finder */
    --finder-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Ombre du finder */
    --finder-title-border-color: #bfbfbf; /* Couleur de bordure du titre du finder */
    --finder-title-color: #e43f35; /* Couleur du titre du finder */
    --finder-input-border-color: #9d9d9d; /* Couleur de bordure de l'input du finder */
    --finder-input-bg: #fff; /* Couleur de fond de l'input du finder */
    --finder-input-text-color: #6b6b6b; /* Couleur du texte de l'input du finder */
    --finder-select-chevron-color: #9b9b9b; /* Couleur de la flèche de sélection du finder */
    --finder-go-bg: #e0bf4a; /* Couleur de fond du bouton "Aller" du finder */
    --finder-go-color: #fff; /* Couleur du texte du bouton "Aller" du finder */
    --stats-separator-color: #c6c6c6; /* Couleur de séparation des statistiques */
    --stats-icon-color: #e0b63f; /* Couleur des icônes des statistiques */
    --stats-title-color: #ad5700; /* Couleur du titre des statistiques */
    --stats-text-color: #222; /* Couleur du texte des statistiques */
    --details-bg: #fff; /* Couleur de fond des détails */
    --detail-subtitle-color: #e0b63f; /* Couleur du sous-titre des détails */
    --detail-title-color: #b85e08; /* Couleur du titre des détails */
    --details-h4-color: #111; /* Couleur du titre de niveau 4 des détails */
    --details-p-color: #606060; /* Couleur du texte des paragraphes des détails */
    --details-separator-color: #dedede; /* Couleur de séparation des détails */
    --faq-link-color: #c56d12; /* Couleur des liens de la FAQ */
    --bonsplans-card-bg: #f4f4f4; /* Couleur de fond des cartes */
    --bonsplans-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); /* Ombre des cartes */
    --bonsplans-card-shadow-hover: 0 8px 18px rgba(0, 0, 0, 0.12); /* Ombre des cartes au survol */
    --bonsplans-favorite-bg: rgba(245, 245, 245, 0.95); /* Couleur de fond de l'icône de favoris  */
    --fav-active-bg: #fff0f0; /* Couleur de fond de l'icône de favoris active */
    --fav-active-border-color: #f3b0b0; /* Couleur de bordure de l'icône de favoris */
    --bonsplans-favorite-border-color: rgba(0, 0, 0, 0.16); /* Couleur de bordure de l'icône de favoris  */
    --bonsplans-age-badge-bg: #ddd7d7; /* Couleur de fond du badge d'âge */
    --bonsplans-age-badge-color: #b55d0a; /* Couleur du texte du badge d'âge */
    --bonsplans-title-color: #b35e0f; /* Couleur du titre des cartes */
    --bonsplans-price-label-color: #7c4d1a; /* Couleur du label du prix des cartes */
    --bonsplans-price-value-color: #de7a1d; /* Couleur de la valeur du prix des cartes */
    --bonsplans-auto-color: #111; /* Couleur du texte "Automatique" des cartes */
    --bonsplans-date-color: #000; /* Couleur de la date des cartes */
    --themes-bg: #fff; /* Couleur de fond de la section des thèmes */
    --themes-subtitle-color: #666; /* Couleur du sous-titre de la section des thèmes */
    --theme-card-shadow-hover: 0 8px 18px rgba(0, 0, 0, 0.08); /* Ombre des cartes de thèmes au survol */
    --theme-text-color: #333; /* Couleur du texte des cartes de thèmes */
    --theme-link-color: #de7a1d; /* Couleur des liens des cartes de thèmes */
    --jobs-gradient-start: #b2590c; /* Couleur de début du dégradé pour la section des jobs */
    --jobs-gradient-end: #eec34d; /* Couleur de fin du dégradé pour la section des jobs */
    --jobs-text-color: #fff; /* Couleur du texte de la section des jobs */
    --jobs-btn-bg: #a85d2c; /* Couleur de fond du bouton de la section des jobs */
    --jobs-btn-color: #fff; /* Couleur du texte du bouton de la section des jobs */
    --jobs-btn-hover-bg: #8d4b23; /* Couleur de fond du bouton de la section des jobs au survol */
    --documents-title-color: #b2590c; /* Couleur du titre de la section des documents */
    --documents-subtitle-color: #de7a1d; /* Couleur du sous-titre de la section des documents */
    --documents-link-bg: #f5f5f5; /* Couleur de fond des liens de la section des documents */
    --documents-link-color: #333; /* Couleur du texte des liens de la section des documents */
    --documents-link-border-color: #ddd; /* Couleur de bordure des liens de la section des documents */
    --documents-link-hover-bg: #efefef; /* Couleur de fond des liens de la section des documents au survol */
    --documents-link-hover-border-color: #bbb; /* Couleur de bordure des liens de la section des documents au survol */
    --newsletter-bg: #ffdb78; /* Couleur de fond de la section de la newsletter */
    --newsletter-title-color: #333; /* Couleur du titre de la section de la newsletter */
    --newsletter-text-color: #555; /* Couleur du texte de la section de la newsletter */
    --newsletter-btn-bg: #fff; /* Couleur de fond du bouton de la section de la newsletter */
    --newsletter-btn-color: #333; /* Couleur du texte du bouton de la section de la newsletter */
    --newsletter-btn-border-color: #fff; /* Couleur de bordure du bouton de la section de la newsletter */
    --newsletter-btn-hover-bg: #f9f9f9; /* Couleur de fond du bouton de la section de la newsletter au survol */
    --actualite-card-bg: #c96e1c; /* Couleur de fond des cartes d'actualités */
    --actualite-card-shadow: 0 8px 22px rgba(0, 0, 0, 0.12); /* Ombre des cartes d'actualités */
    --actu-bg-white: #fff; /* Couleur de fond blanche pour les éléments des cartes d'actualités */
    --actualite-text-color: #444; /* Couleur du texte des cartes d'actualités */
}

.home {
    background: var(--home-bg);
    padding-bottom: 0;
}

.hero {
    background: linear-gradient(120deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    color: var(--hero-text-color);
    padding: 44px 16px 132px;
}
.btnSavoirPlus{
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-style: italic;
    color: var(--jobs-gradient-start);
}
.btnSavoirPlus:hover{
    text-decoration: underline;
}
.hero-box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-box h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    font-weight: 800;
}

.hero-box h1 span {
    display: block;
    color: var(--hero-highlight-color);
    margin-top: 4px;
}

.hero-box p {
    margin: 16px auto 0;
    max-width: 690px;
    font-size: 1.03rem;
    font-weight: 700;
}

.cta {
    margin-top: 24px;
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    border-radius: 8px;
    font-size: 1.04rem;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 24px;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.b1 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}

.b1 svg,
.finder h2 svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.b2 {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
}

.cta .btn,
.cta .btn:hover,
.cta .btn:focus,
.cta .btn:active {
    text-decoration: none;
    box-shadow: none;
    transform: none;
    filter: none;
}

.cta .b1:hover,
.cta .b1:focus,
.cta .b1:active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}

.cta .b2:hover,
.cta .b2:focus,
.cta .b2:active {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
}

.finder-wrap {
    margin-top: -84px;
    padding: 0 16px;
}

.finder {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--finder-bg);
    border: 1px solid var(--finder-border-color);
    border-radius: 12px;
    box-shadow: var(--finder-shadow);
    padding: 18px 20px 20px;
}

.finder h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--finder-title-border-color);
    color: var(--finder-title-color);
    font-size: clamp(1.12rem, 2.4vw, 2rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.8fr 1.2fr;
    gap: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.grid input,
.grid select,
.go {
    height: 42px;
    border-radius: 6px;
    border: 2px solid var(--finder-input-border-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0 12px;
    background: var(--finder-input-bg);
    color: var(--finder-input-text-color);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.grid select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--finder-select-chevron-color) 50%), linear-gradient(135deg, var(--finder-select-chevron-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) 18px, calc(100% - 14px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.grid .full {
    grid-column: 1 / span 3;
}

.go {
    border: 0;
    background: var(--finder-go-bg);
    color: var(--finder-go-color);
    cursor: pointer;
}

.stats {
    max-width: 1080px;
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.stats article {
    text-align: center;
    padding: 12px 8px 8px;
    position: relative;
}

.stats article:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: var(--stats-separator-color);
}

.stats svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--stats-icon-color);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats h3 {
    margin: 8px 0 0;
    color: var(--stats-title-color);
    font-size: 2rem;
    font-weight: 800;
}

.stats p {
    margin: -2px 0 0;
    color: var(--stats-text-color);
    font-size: 1.05rem;
    font-weight: 600;
}

.detailsInscription {
    width: 100%;
    margin: 0 auto 0;
    padding: 42px 0 24px;
    text-align: center;
    background: var(--details-bg);
}

.detail-subtitle {
    margin: 0;
    color: var(--detail-subtitle-color);
    font-size: 1.08rem;
    font-weight: 800;
}

.detail-title {
    margin: 8px 0 40px;
    color: var(--detail-title-color);
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
}

.detailsInscription .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 0;
}

.detailsInscription .grid > div {
    position: relative;
    padding: 10px 10px 0;
}

.detailsInscription .grid img {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
}

.detailsInscription .grid h3 {
    margin: 0;
    color: var(--details-h4-color);
    font-size: 1.18rem;
    font-weight: 800;
}

.detailsInscription .grid p {
    margin: 10px 0 0;
    color: var(--details-p-color);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 500;
}

.detailsInscription .grid > div:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--details-separator-color);
}

.FAQ {
    margin: 40px 0 0;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 700;
}

.FAQ a {
    color: var(--faq-link-color);
    text-decoration: none;
}

.FAQ a:hover {
    text-decoration: underline;
}

.BonsPlans {
    max-width: 1120px;
    margin: 28px auto 0;
    padding: 20px 16px 8px;
}

.BonsPlans .detail-title {
    margin: 0 0 18px;
    color: var(--detail-title-color);
    font-size: clamp(1.8rem, 3vw, 2.85rem);
    text-align: left;
}

.BonsPlans .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 0;
}

.BonsPlans .card {
    width: 100% !important;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bonsplans-card-bg);
    box-shadow: var(--bonsplans-card-shadow);
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.BonsPlans .card:hover {
    transform: scale(1.015);
    box-shadow: var(--bonsplans-card-shadow-hover);
}

.BonsPlans .bp-favorite {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bonsplans-favorite-bg) url("../assets/heartIcon2.png") center/20px 20px no-repeat;
    border: 1px solid var(--bonsplans-favorite-border-color);
    z-index: 2;
    cursor: pointer;
}

.BonsPlans .bp-favorite.is-fav,
.BonsPlans .bp-favorite-link.is-fav .bp-favorite {
    background-image: url("../assets/RedHeart.png");
    background-size: 20px 20px;
    background-color: var(--fav-active-bg);
    border-color: var(--fav-active-border-color);
}

.BonsPlans .bp-favorite-link:focus .bp-favorite,
.BonsPlans .bp-favorite-link:active .bp-favorite {
    transform: scale(1.04);
}

.BonsPlans .bp-favorite:hover {
    transform: scale(1.04);
}

.BonsPlans .card::after {
    content: attr(data-age);
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 14px;
    border-bottom-left-radius: 12px;
    background: var(--bonsplans-age-badge-bg);
    color: var(--bonsplans-age-badge-color);
    font-size: 0.95rem;
    font-weight: 800;
    z-index: 2;
}


.BonsPlans .card-img-top {
    display: block;
    width: 100%;
    height: 368px;
    object-fit: cover;
}

.BonsPlans .card-body {
    padding: 14px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.BonsPlans .bp-title {
    margin: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    color: var(--bonsplans-title-color);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.BonsPlans .bp-meta {
    margin-top: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.BonsPlans .bp-price {
    margin: 0;
    text-align: right;
    color: var(--bonsplans-price-label-color);
    font-size: 0.78rem;
    line-height: 1.1;
    font-weight: 700;
}

.BonsPlans .bp-price span {
    display: block;
    margin-top: 2px;
    color: var(--bonsplans-price-value-color);
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 900;
}

.BonsPlans .bp-auto {
    margin: 0;
    color: var(--bonsplans-auto-color);
    font-size: 0.83rem;
    line-height: 1.14;
    font-weight: 700;
    margin-top: 6px;
}

.BonsPlans .bp-auto span {
    display: block;
    font-weight: 800;
}

.BonsPlans .bp-date {
    margin: 0;
    color: var(--bonsplans-date-color);
    font-size: 1.0rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}
.BonsPlans .card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.BonsPlans .bp-image-wrap,
.BonsPlans .card-body {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.BonsPlans .bp-favorite {
    z-index: 3;
}

.BonsPlans .FAQ {
    margin-top: 14px;
    padding-bottom: 14px;
    text-align: right;
}

.BonsPlans .FAQ a::after {
    content: " \2192";
}

.themes {
    padding: 40px 16px;
    text-align: center;
    background: var(--themes-bg);
    max-width: none;
}

.themes .detail-title {
    color: var(--detail-title-color);
}

.themes-subtitle {
    margin-bottom: 32px;
    color: var(--themes-subtitle-color);
    font-size: 1.02rem;
    font-weight: 500;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.theme-card {
    text-align: center;
}

.theme-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding: 8px 6px 10px;
    border-radius: 18px;
}

.theme-card-link:hover {
    transform: scale(1.015);
    box-shadow: var(--theme-card-shadow-hover);
}

.theme-card-link,
.theme-card-link:hover,
.theme-card-link:focus,
.theme-card-link:visited,
.theme-card-link * {
    text-decoration: none;
}

.theme-image {
    width: 85%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.theme-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-card h3 {
    margin-bottom: 8px;
    color: var(--detail-title-color);
    font-size: 1.3rem;
    font-weight: 800;
}

.theme-card p {
    margin-bottom: 12px;
    color: var(--theme-text-color);
    font-size: 1rem;
    font-weight: 600;
}

.theme-card-link span {
    color: var(--theme-link-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.Jobs {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 60px 16px;
    text-align: center;
    background: linear-gradient(91deg, var(--jobs-gradient-start) 1.12%, var(--jobs-gradient-end) 80.39%);
    overflow: hidden;
}

.Jobs .job-title {
    margin-bottom: 16px;
    color: var(--jobs-text-color);
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.Jobs .jobs-details {
    margin-bottom: 28px;
    max-width: 700px;
    color: var(--jobs-text-color);
    font-size: 1.04rem;
    font-weight: 600;
}

.Jobs .jobs-btn {
    background: var(--jobs-btn-bg);
    color: var(--jobs-btn-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.Jobs .jobs-btn:hover {
    background: var(--jobs-btn-hover-bg);
}

.facebook-news {
    max-width: 1120px;
    margin: 28px auto 0;
    padding: 0 16px;
}
.actualite-card-cta{
    display: inline-block;
    margin: auto 14px 16px;
    color: var(--jobs-gradient-start);
    font-weight: 800;
    text-decoration: italic;    
}
.actualite-card-cta:hover{
    color: var(--jobs-gradient-start);
    text-decoration: underline;
    text-decoration: italic;    
}

.facebook-news-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fb-iframe-wrapper iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    background: var(--actualite-card-bg);
}

.actualites-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 25px;
}

.actualite-card {
    background: var(--actu-bg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--actualite-card-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.actualite-card-link:hover,
.actualite-card:hover {
    transform: scale(1.015);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.actualite-card-link {
    display: flex;
}

.actualite-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.actualite-card .date-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--actualite-card-bg);
    color: var(--actu-bg-white);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.actualite-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--actualite-card-bg);
    color: var(--actu-bg-white);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.actualite-card h3 {
    margin: 12px 14px 6px;
    color: var(--bonsplans-title-color);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
}

.actualite-card p {
    margin: 0 14px 14px;
    color: var(--actualite-text-color);
    font-size: 0.95rem;
    line-height: 1.45;
    overflow: hidden;
    text-align: justify;
}
.documents .grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 0;
}
.actualite-card a {
    display: inline-block;
    margin: auto 14px 16px;
    color: var(--theme-link-color);
    font-weight: 800;
    text-decoration: none;
}
@media (max-width: 980px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid {
        grid-template-columns: 1fr 1fr;
    }
    .fb-iframe-wrapper iframe { 
        height: 420px; 
    }

    .grid .full {
        grid-column: auto;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats article:nth-child(3)::before {
        display: none;
    }

    .detailsInscription .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detailsInscription .grid > div:nth-child(2n)::before {
        display: none;
    }

    .BonsPlans .grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .actualites-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .BonsPlans .card-img-top {
        height: 270px;
    }

    .BonsPlans .bp-title {
        font-size: 1.5rem;
    }

    .BonsPlans .bp-date {
        font-size: 0.92rem;
    }

    .BonsPlans .bp-price span {
        font-size: 1.3rem;
    }
    .documents .grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px !important;
    }
    .documents .grid > div {
        grid-column: auto !important;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-bottom: 110px;
    }
    .themes {
        padding: 28px 16px;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .theme-card h3 {
        font-size: 1.1rem;
    }
    .finder {
        padding: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stats article::before {
        display: none;
    }

    .detailsInscription {
        margin-top: 0px;
        padding: 36px 16px 20px;
    }

    .detailsInscription .grid {
        grid-template-columns: 1fr;
    }

    .detailsInscription .grid > div::before {
        display: none;
    }

    .detail-title {
        margin-bottom: 28px;
    }

    .BonsPlans .grid {
        grid-template-columns: 1fr;
    }

    .actualites-list {
        grid-template-columns: 1fr;
    }

    .actualite-card img {
        height: 220px;
    }

    .BonsPlans .card-img-top {
        height: 230px;
    }

    .BonsPlans .detail-title {
        text-align: center;
    }
    .fb-iframe-wrapper iframe { 
        height: 320px; 
    }
    .newsletter .newsletter-form input[type="email"] {
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
    }
    .BonsPlans .FAQ {
        text-align: center;
    }

    .BonsPlans .bp-title {
        font-size: 1.55rem;
    }
    .documents .grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .documents .grid > div {
        grid-column: auto !important;
    }

}

.documents {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 16px;
    text-align: center;
}

.newsletter .newsletter-form input[type="email"] {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 1rem;
    color: var(--newsletter-text-color);
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    margin-right: 10px;
}

.documents .detail-title {
    margin-bottom: 32px;
    color: var(--documents-title-color);
}



.documents > .grid > div {
    text-align: center;
}

.documents img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.documents h3 {
    margin: 0 0 12px;
    color: var(--documents-subtitle-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.documents a {
    display: inline-block;
    background: var(--documents-link-bg);
    color: var(--documents-link-color);
    border: 1px solid var(--documents-link-border-color);
    border-radius: 4px;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s;
}

.documents a:hover {
    background: var(--documents-link-hover-bg);
    border-color: var(--documents-link-hover-border-color);
}

.newsletter {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 48px 16px;
    text-align: center;
    background: var(--newsletter-bg);
    overflow: hidden;
}

.newsletter img {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.newsletter h2 {
    margin: 0 0 12px;
    color: var(--newsletter-title-color);
    font-size: 1.6rem;
    font-weight: 800;
}

.newsletter p {
    margin: 0 auto 20px;
    max-width: 600px;
    color: var(--newsletter-text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.newsletter .btn-light {
    background: var(--newsletter-btn-bg);
    color: var(--newsletter-btn-color);
    border: 2px solid var(--newsletter-btn-border-color);
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.04rem;
    font-weight: 700;
    cursor: pointer;
}

.newsletter .btn-light:hover {
    background: var(--newsletter-btn-hover-bg);
}

.newsletter .form-success {
    background: #e6ffed;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 14px;
    border-radius: 8px;
    display: block;
    margin: 12px auto;
    max-width: 560px;
    text-align: center;
    font-weight: 700;
}

.newsletter .form-errors {
    background: #fff4f6;
    color: #7a1f2d;
    border: 1px solid #f5c6cb;
    padding: 10px 14px;
    border-radius: 8px;
    display: block;
    margin: 12px auto;
    max-width: 560px;
}

.newsletter .form-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter .form-errors li {
    margin: 0;
    padding: 0;
    position: relative;
    font-weight: 600;
}

.facebook-news {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 16px;
    box-sizing: border-box;
}
.facebook-news-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.facebook-news .detail-title {
    margin: 0 0 12px;
    text-align: center;
    width: 100%;
}
.fb-iframe-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.fb-iframe-wrapper iframe {
    display: block;
    width: 500px;
    max-width: 100%;
    height: 480px;
    border: 0;
    margin: 0 auto;
    border-radius: 12px;
}

/* v20 : bandeaux et accents plus frais + vignettes homogènes */
:root {
    --hero-gradient-start: #2b8ca2;
    --hero-gradient-end: #5eb8c7;
    --hero-highlight-color: #ffdf84;
    --btn-primary-bg: #1f7087;
    --btn-secondary-color: #1f7087;
    --finder-title-color: #1f7087;
    --finder-go-bg: #1f7087;
    --stats-icon-color: #2b8ca2;
    --stats-title-color: #1f7087;
    --detail-subtitle-color: #2b8ca2;
    --detail-title-color: #1f7087;
    --faq-link-color: #1f7087;
    --bonsplans-age-badge-color: #1f7087;
    --bonsplans-title-color: #1f7087;
    --bonsplans-price-label-color: #255b68;
    --bonsplans-price-value-color: #2b8ca2;
    --theme-link-color: #1f7087;
    --jobs-gradient-start: #1f7087;
    --jobs-gradient-end: #62bccb;
    --jobs-btn-bg: #165a6f;
    --jobs-btn-hover-bg: #124859;
    --documents-title-color: #1f7087;
    --documents-subtitle-color: #2b8ca2;
    --actualite-card-bg: #2b8ca2;
}
.BonsPlans .bp-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf6f8;
}
.BonsPlans .card-img-top {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}
