/* =======================================================
    Spécifique à la page "Démo contrôle de gestion"
    (thème vert pomme)
    Sécurisé pour cohabiter avec .navbar et .footer :
    - Aucun style ne cible .navbar ou .footer
    - Aucune élévation de z-index au-dessus de la navbar (9999)
    - Ancrages = scroll-margin-top: var(--navbar-h, 90px)
======================================================= */

/* =======================================================  
   🗂️  STRUCTURE GLOBALE – VERT POMME CLAIR
   ======================================================= */

.section {
    position: relative;                 /* garantit que le footer passe au-dessus si besoin */
    z-index: 1;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: #f9fdf7;                /* fond ultra léger vert pâle */
    border-radius: 1rem;
    scroll-margin-top: var(--navbar-h, 90px);  /* ancrages sous la navbar */
}

.section.active {
    display: block;
}

.section:nth-of-type(even) {
    background: #ffffff;
}

.section .container {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =======================================================
   🏷️  TITRES & INTRODUCTIONS – contrastés
   ======================================================= */

.section h2 {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #223d16;             /* vert très foncé (presque noir) */
    text-align: center;
    letter-spacing: .5px;
}

.section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 2rem 0 1.5rem 0.5rem;
    color: #2e5d1a;             /* titres renforcés */
    text-align: left;
    letter-spacing: .3px;
}

.section h4 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
    color: #3a731c;
    margin: 1.5rem 0 1.25rem 1rem;
    text-align: left;
    letter-spacing: 0.2px;
}

.intro {
    font-size: 1.35rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro br {
    margin: 1rem 0;
}

/* =======================================================
   📝  AVANT-PROPOS – VERT POMME
   ======================================================= */

.avant-propos {
    padding: 2rem 1.5rem;
    background-color: #ffffff;
    border: 2px solid #a8db87;
    border-left: 10px solid #6cbf3c;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(108, 191, 60, 0.06);
    margin-bottom: 2rem;
}

.avant-propos p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    margin: 1.5rem 2.5rem;
}

/* =======================================================
   📝  TEXTE & LISTES
   ======================================================= */

.text,
.liste-demo li {
    font-size: 1.125rem;
    color: #444;
    text-align: justify;
    align-items: center;
    padding: 0 1rem;
    margin: 1rem 2rem;
}

.text br {
    margin: .75rem 0;
}

.liste-demo {
    list-style-type: disc;
    padding-left: 4rem;
    margin: .75rem 1.5rem;
}

/* style inline */
i { font-style: italic; }
strong { font-weight: bold; }

/* Liens spécifiques à la section "Démo contrôle de gestion" */
#demo-controle-gestion a {
    color: #2e5d1a;
    font-weight: 600;
    text-decoration: underline;
}
#demo-controle-gestion a:hover {
    color: #6cbf3c;
    text-decoration: none;
}

/* =======================================================
    🔙  BOUTON RETOUR
   ======================================================= */

   /* Bouton "Retour" spécifique à la section Démo contrôle de gestion */

#demo-controle-gestion .container {
    position: relative;
}

#demo-controle-gestion .demo-back-btn {
    position: absolute;
    top: 0.35rem;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #a8db87;
    background: #ffffff;
    color: #223d16;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(108, 191, 60, 0.12);
}

#demo-controle-gestion .demo-back-btn:hover {
    background: #f4fcf2;
    border-color: #6cbf3c;
    color: #6cbf3c;
}



/* =======================================================
   🧭  ÉTAPES DE LA DÉMONSTRATION POWER BI
   ======================================================= */

.etape {
    padding: 2rem 1.5rem;
    background-color: #ffffff;
    border: 2px solid #a8db87;
    border-left: 10px solid #6cbf3c;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(42, 129, 203, 0.06);
    margin-bottom: 2rem;
}

.etape p {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #333;
    text-align: justify;
    margin: 1rem 2.5rem;
}

.etape code {
    background-color: #f4fcf2;
    color: #155f0e;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.etape img {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 1.5rem auto;
    border: 1px solid #d3e6f7;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(42, 129, 203, 0.08);
}

.medium-pic { width: 50%; }
.small-pic { width: 25%; }
.very-small-pic { width: 15%; }

/* Ligne d’icônes inline */
.ligne-icones {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.icone-inline {
    width: 1.25rem;
    margin: 0 !important;
    display: inline-block;
    line-height: 1;
}

/* =======================
   STYLE VIDÉO TUTORIEL
   ======================= */

.video {
    width: 75%;
    max-width: 860px;
    height: auto;
    display: block;
    margin: 2rem auto;
    border: 1px solid #a8db87;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
}
