/* ==========================================================================
   Pages de conseils (idée cadeau, road trip, gendarmerie ou stage privé).
   Mêmes couleurs et composants que le reste du site (fcpm-composants.css) :
   bleu #2448B6, marine #082270, jaune #FFC72C, Poppins, bouton1 en relief.
   ========================================================================== */

body { background: #f3f6fd; font-family: 'poppins', sans-serif; }

/* Menu blanc du site : sur ces pages sans photo de fond, il garde un fond marine pour rester lisible */
body > header, #nav { background: var(--fcpm-marine); }
main { padding-top: 0 !important; } /* style.css impose 20px en !important */

/* ---------- En-tête : photo du site sous un voile marine ---------- */

.guideEntete {
    position: relative;
    padding: 72px 20px 64px;
    background:
        linear-gradient(180deg, rgba(8, 34, 112, 0.88) 0%, rgba(36, 72, 182, 0.80) 100%),
        var(--guide-image) center / cover no-repeat;
    color: #fff;
    text-align: center;
}

.guideEnteteContenu { max-width: 820px; margin: 0 auto; }

.guideSurtitre {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fcpm-jaune);
}

.guideTitre {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.guideChapeau {
    margin: 0 auto 28px;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.6;
    color: #e3e9fb;
}

.guideActions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.guideActions .bouton1,
.guideActions .fcpm-bouton-clair {
    display: inline-block;
    width: auto;
    min-width: 230px;
    padding: 14px 26px;
    text-decoration: none;
}

/* ---------- Article ---------- */

.guideArticle {
    max-width: 820px;
    margin: -28px auto 0;
    position: relative;
    padding: 44px clamp(20px, 5vw, 56px);
    background: #fff;
    border-radius: var(--fcpm-arrondi-carte);
    box-shadow: var(--fcpm-ombre-carte);
    color: var(--fcpm-texte);
    font-size: 17px;
    line-height: 1.75;
}

.guideArticle h2 {
    margin: 40px 0 14px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fcpm-marine);
    text-wrap: balance;
}

.guideArticle h2:first-child { margin-top: 0; }

.guideArticle h3 {
    margin: 26px 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--fcpm-bleu);
    text-wrap: balance;
}

.guideArticle p { margin: 0 0 16px; }
.guideArticle ul { margin: 0 0 18px; padding-left: 22px; }
.guideArticle li { margin-bottom: 8px; }
.guideArticle strong { color: var(--fcpm-marine); }

.guideArticle a:not(.bouton1):not(.fcpm-bouton-clair) {
    color: var(--fcpm-bleu);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--fcpm-jaune);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Encadré d'appel à l'action au fil du texte */
.guideEncart {
    margin: 30px 0;
    padding: 24px 26px;
    border-left: 5px solid var(--fcpm-jaune);
    border-radius: var(--fcpm-arrondi);
    background: var(--fcpm-bleu-doux);
}

.guideEncart p { margin: 0 0 14px; font-weight: 500; color: var(--fcpm-marine); }

.guideEncart .bouton1 {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    text-decoration: none;
}

/* Tableau comparatif : défile sur téléphone plutôt que d'écraser les colonnes */
.guideTableau {
    margin: 22px 0 26px;
    overflow-x: auto;
    border-radius: var(--fcpm-arrondi);
    border: 1px solid var(--fcpm-trait);
}

.guideTableau table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.guideTableau th, .guideTableau td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fcpm-trait); }
.guideTableau thead th { background: var(--fcpm-marine); color: #fff; font-weight: 600; }
.guideTableau tbody th { width: 24%; color: var(--fcpm-marine); background: #f7f9fe; }
.guideTableau tbody tr:last-child th, .guideTableau tbody tr:last-child td { border-bottom: 0; }

/* ---------- Stages en ligne ---------- */

.guideStages, .guideFaq, .guideFin, .guideAutres {
    max-width: 820px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.guideStages h2, .guideFaq h2, .guideFin h2 {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 700;
    color: var(--fcpm-marine);
    text-align: center;
}

.guideStagesListe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guideStage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--fcpm-arrondi);
    box-shadow: 0 2px 8px rgba(8, 34, 112, 0.08);
}

.guideStageFormat { align-self: flex-start; padding: 2px 10px; border-radius: var(--fcpm-pilule); background: var(--fcpm-bleu-doux); color: var(--fcpm-bleu); font-size: 12px; font-weight: 600; }
.guideStageNom { color: var(--fcpm-marine); line-height: 1.35; text-wrap: balance; }
.guideStageInfos { font-size: 14px; color: var(--fcpm-gris); }
.guideStagePrix { margin-top: auto; font-size: 22px; font-weight: 700; color: var(--fcpm-bleu); }
.guideStagePrix small { font-size: 14px; font-weight: 500; color: var(--fcpm-gris); }
.guideStagesLien { margin: 16px 0 0; text-align: center; }

/* ---------- Questions fréquentes ---------- */

.guideQuestion {
    margin-bottom: 10px;
    background: #fff;
    border-radius: var(--fcpm-arrondi);
    box-shadow: 0 2px 8px rgba(8, 34, 112, 0.08);
}

.guideQuestion summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--fcpm-marine);
}

.guideQuestion summary::-webkit-details-marker { display: none; }

.guideQuestion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--fcpm-bleu);
}

.guideQuestion[open] summary::after { content: '–'; }
.guideQuestion summary:focus-visible { outline: 0; box-shadow: var(--fcpm-anneau); border-radius: var(--fcpm-arrondi); }
.guideQuestion p { margin: 0; padding: 0 20px 20px; line-height: 1.7; color: var(--fcpm-texte); }

/* ---------- Fin de page ---------- */

.guideFin {
    padding: 36px 24px;
    border-radius: var(--fcpm-arrondi-carte);
    background: linear-gradient(135deg, var(--fcpm-marine), var(--fcpm-bleu));
    text-align: center;
    color: #e3e9fb;
}

.guideFin h2 { color: #fff; }
.guideFin p { max-width: 600px; margin: 0 auto 22px; line-height: 1.6; }

.guideAutres { margin-bottom: 70px; text-align: center; }
.guideAutres ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 10px 0 0; padding: 0; list-style: none; }

@media (max-width: 576px) {
    .guideEntete { padding: 48px 16px 52px; }
    .guideChapeau { font-size: 16px; }
    .guideArticle { font-size: 16px; padding: 30px 18px; border-radius: 12px; }
    .guideArticle h2 { font-size: 22px; }
    .guideActions .bouton1, .guideActions .fcpm-bouton-clair { width: 100%; max-width: none; min-width: 0; }
    .guideStages, .guideFaq, .guideFin, .guideAutres { padding-left: 16px; padding-right: 16px; }
    .guideFin { margin-left: 16px; margin-right: 16px; }
}
