/* === BASE === */
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #faf7ec; /* Couleur de fond unifiée */
  color: #073a23; /* Couleur de texte principale */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Bandeau Supérieur (Hero Section)
   ========================================================================== */
/* Conteneur principal du bandeau, avec l'image de fond */
header.hero {
  background-size: cover;
  background-position: center;
  min-height: 70vh; /* Hauteur réduite car le bandeau d'icônes est en dehors */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  box-sizing: border-box;
  text-align: center;
}

/* Conteneur pour le contenu textuel dans le header */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 750px;
  width: 100%;
}

.logo-bg {
  margin-bottom: 1.5em;
}

header.hero .logo {
  width: 140px;
  height: auto;
}

/* Titre principal */
.header-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2em;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #003a1c;
}

/* Slogan sous le titre */
.header-slogan {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15em;
  max-width: 500px;
  color: #f5f5f5; /* Blanc cassé pour le contraste */
}

/* Bandeau pour les icônes */
.icon-band {
  background-color: #faf7ec; /* Fond crème */
  padding: 2em 0 1em; /* Marge inférieure réduite */
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

/* Conteneur des icônes à l'intérieur du bandeau */
.icon-band .header-icons {
  display: flex;
  gap: 3em;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Style de chaque item (icône + texte) */
.icon-band .icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #073a23;
  font-weight: 600;
  transition: transform 0.2s ease-out;
}

.icon-band .icon-item:hover {
  transform: translateY(-5px);
}

/* Style des icônes SVG */
.icon-band .icon-item svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5em;
  stroke: currentColor; /* Le SVG hérite de la couleur du parent .icon-item */
}

/* Style du texte sous les icônes */
.icon-band .icon-item span {
  font-size: 1.1em;
  text-align: center;
}
/* ==========================================================================
   Section "Secteurs d'activité"
   ========================================================================== */

.secteurs {
  padding: 2em 2em 4em; /* Marge supérieure réduite */
  text-align: center; /* Centre tout le contenu de la section */
  background-color: transparent; /* Utilise le fond du body */
}

.secteurs h2 {
  font-size: 2.5em;
  margin-bottom: 1.5em;
  color: #073a23;
}

.secteurs-container {
  display: flex;
  justify-content: center; /* Centre les icônes horizontalement */
  align-items: flex-start;
  gap: 3em; /* Espace entre les icônes */
  flex-wrap: wrap; /* Permet aux icônes de passer à la ligne sur petits écrans */
}

.secteur {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px; /* Donne une largeur fixe à chaque bloc icône */
}

.secteur img {
  width: 60px;
  height: 60px;
  margin-bottom: 1em;
  /* Filtre pour colorer les SVG en #9f8541 */
  filter: invert(59%) sepia(12%) saturate(2331%) hue-rotate(358deg) brightness(94%) contrast(88%);
}

.secteur span {
  font-size: 1.1em;
  font-weight: 600;
  color: #073a23;
}

/* Conteneur pour le bouton de simulation */
.simulation-button-container {
  margin-top: 3em; /* Espace au-dessus du bouton */
}

/* Conteneur pour les boutons de choix de parcours */
.user-choice-container {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin-top: 3em;
  flex-wrap: wrap;
  padding: 0 2em;
  align-items: flex-start; /* Aligner les items en haut */
}

.choice-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrer le bouton et le texte */
  text-align: center;
  max-width: 350px;
  flex-grow: 1;
}

.choice-legend {
  font-size: 0.9em;
  line-height: 1.5;
  color: #073a23; /* Couleur verte standard */
  margin-top: 1em;
  max-width: 300px; /* Limiter la largeur pour une meilleure lisibilité */
}

/* Style du bouton de simulation */
.button-simulation {
  display: inline-block;
  padding: 1em 2.5em;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff; /* Texte blanc */
  background-color: #c3a866; /* Couleur demandée pour simulation et retour */
  border: 2px solid #c3a866;
  border-radius: 50px; /* Bords très arrondis pour un effet "pilule" */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button-simulation:hover {
  background-color: #b09552; /* Nuance plus foncée de la nouvelle couleur */
  border-color: #b09552;
  transform: translateY(-2px); /* Léger mouvement vers le haut */
}

/* Styles génériques pour les formulaires */
.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95em; /* Taille de police réduite pour les intitulés */
    color: #073a23;
    text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px; /* Champs de saisie plus larges/hauts */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important pour que le padding n'affecte pas la largeur */
}



/* Style pour les boutons de soumission de formulaire */
.button-submit {
  display: inline-block;
  padding: 1em 2.5em;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff; /* Texte blanc */
  background-color: #3e7b6a; /* Nouvelle couleur verte */
  border: 2px solid #3e7b6a;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer; /* Indiquer que c'est cliquable */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button-submit:hover {
  background-color: #316154; /* Nuance plus foncée */
  border-color: #316154;
  transform: translateY(-2px);
}

/* Style pour les cases à cocher */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px; /* Aligner la checkbox avec le début du texte */
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9em;
    font-weight: normal;
    text-align: justify; /* Justification du texte */
    flex: 1;
}



/* ==========================================================================
   Generic Page Content
   ========================================================================== */
.page-container {
  max-width: 1100px;
  margin: 4em auto;
  padding: 3em;
  background-color: transparent; /* Fond transparent pour hériter de la couleur du body */
  box-shadow: none; /* Suppression de l'ombre */
  text-align: center;
}

.page-container h1 {
    font-size: 2.8em;
    color: #073a23;
    margin-bottom: 0.8em;
}

.page-container p {
    font-size: 1.2em;
    line-height: 1.7;
    color: #073a23;
    margin-bottom: 2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #faf7ec; /* Couleur de fond unifiée */
  color: #073a23; /* Texte foncé pour le contraste */
  padding: 4em 2em;
  text-align: center;
  border-top: 1px solid #e0e0e0; /* Ajoute une fine ligne de séparation */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title {
  font-size: 2.5em;
  margin-bottom: 1.5em;
  color: #073a23;
}

.site-footer .temoignage-cards {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 3em;
}

.site-footer .temoignage-cards .card {
  background: #fff; /* Fond blanc pour les cartes */
  color: #073a23;
  border-radius: 12px;
  padding: 2em;
  width: 250px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer .temoignage-cards .card p {
  font-style: italic;
  margin-bottom: 1.5em;
}

.site-footer .temoignage-cards .card h4 {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.95em; /* Intitulés plus petits */
  text-align: left;
  color: #073a23;
}

.contact-button {
  display: inline-block;
  padding: 1em 2.5em;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff; /* Texte blanc */
  background-color: #3e7b6a; /* Nouvelle couleur verte */
  border: 2px solid #3e7b6a;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #316154; /* Nuance plus foncée */
  border-color: #316154;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 2em;
  margin-top: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  font-size: 0.9em;
  color: #073a23;
}

.footer-bottom a {
  color: #073a23;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #3e7b6a; /* La couleur des boutons de formulaire */
}


/* ==========================================================================
   Page Particulier
   ========================================================================== */


.page-container-small {
    max-width: 600px;
    margin: 4em auto;
    padding: 2em;
}

.page-container-large {
    max-width: 900px;
    margin: 4em auto;
    padding: 2em;
    text-align: center;
}

.intro-particulier h1 {
    font-size: 2.5em;
    color: #073a23;
    margin-bottom: 0.5em;
}

.intro-particulier p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3em auto;
}

.simulator-section {
    background-color: #fff;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 3em;
}

.simulator-section h2 {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.simulation-form .form-group {
    margin-bottom: 1.5em;
}

.results-section {
    background-color: #f0f8f0; /* Vert très clair */
    border: 2px solid #c3e6cb;
    padding: 2em;
    border-radius: 12px;
    margin-bottom: 3em;
}

.results-box p {
    font-size: 1.2em;
    line-height: 1.7;
    margin: 0.5em 0;
}

.results-box .gain-highlight {
    font-size: 1.3em;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #c3e6cb;
}

.results-box .small-text {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 1em;
}

.pedagogy-section {
    margin-bottom: 3em;
}

.pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    text-align: left;
}

.pedagogy-block {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pedagogy-block h4 {
    margin-top: 0;
    color: #073a23;
}

.legal-mentions {
    font-size: 0.85em;
    line-height: 1.5;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Page CGP
   ========================================================================== */
.cgp-page .subtitle {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.cgp-section {
    margin-bottom: 4em;
    text-align: center;
}

.cgp-section h2 {
    margin-bottom: 1.5em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    text-align: left;
}

.advantage-item {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.advantage-item h4 {
    margin-top: 0;
    color: #073a23;
}

.comparison-section {
    background-color: #f8f9fa;
    padding: 3em;
    border-radius: 12px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    text-align: left;
}

.comparison-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    font-size: 1.1em;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
}

.comparison-list .icon-ko, .comparison-list .icon-ok {
    margin-right: 0.8em;
    font-size: 1.2em;
}

.comparison-list.dos {
    color: #28a745;
}

.comparison-list.donts {
    color: #dc3545;
}

.cta-section p {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.identification-form-container {
    background-color: #fff;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 2em;
}

.identification-form-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5em;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 1.5em;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3em;
    margin-right: 1em;
    flex-shrink: 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px; /* Aligner la checkbox avec le début du texte */
}

.checkbox-group label {
    font-size: 0.9em;
    font-weight: normal;
    text-align: justify; /* Justification du texte */
    flex: 1;
}

.button-secondary {
    display: inline-block;
    padding: 1em 2.5em;
    font-size: 1.1em;
    font-weight: 700;
    color: #c3a866; /* Texte doré */
    background-color: transparent;
    border: 2px solid #c3a866; /* Bordure dorée */
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-secondary:hover {
    background-color: #c3a866; /* Fond doré au survol */
    color: #fff; /* Texte blanc au survol */
    transform: translateY(-2px);
}

.alert {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-card {
    max-width: 98vw;
    padding: 1.5em 0.5em 1.5em 0.5em;
  }
  .header-icons {
    gap: 1em;
  }
}

@media (max-width: 768px) {
  /* ===== TITRES ===== */
  .secteurs h2, .footer-title {
    font-size: 2em; /* Harmonisation de la taille des titres de section */
  }

  /* ===== ICÔNES HEADER ===== */
  .icon-band .header-icons {
    gap: 1.5em; /* Espacement réduit entre les icônes */
  }

  .icon-band .icon-item svg {
    width: 40px; /* Taille réduite pour les icônes */
    height: 40px;
  }

  .icon-band .icon-item span {
    font-size: 1em; /* Taille de police réduite pour les légendes */
  }

  /* ===== ICÔNES SECTEURS (GRILLE 2x2) ===== */
  .secteurs-container {
    gap: 1.5em; /* Espacement réduit */
  }

  .secteur {
    flex-basis: 40%; /* Assure que 2 éléments tiennent sur une ligne */
    width: auto; /* Annule la largeur fixe */
  }

  /* ===== PAGE PARTICULIER ===== */
  .pedagogy-grid {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  }

  /* ===== PAGE CGP ===== */
  .advantages-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  /* ===== ANCIENS STYLES CONSERVÉS ===== */
  header.hero .logo {
    width: 80px;
  }

  .logo-bg {
    width: 90px;
    height: 90px;
  }

  .temoignage-multi {
    flex-direction: column;
    gap: 2em;
  }

  .cta-simulateur a,
  .contact a {
    font-size: 1em;
    padding: 0.6em 1.2em;
  }

  .hero-card {
    padding: 1em 0.2em;
  }
}
