/* ====================================================================== */
/* FICHIER : abecedaire.css                                              */
/* RÔLE : Styles spécifiques à la page index de l'abécédaire             */
/* ====================================================================== */

/* ========== RESET GLOBAL (empêche débordement) ========== */

* {
  box-sizing: border-box; /* Inclut padding/border dans width */
}

body {
  overflow-x: hidden; /* Empêche scroll horizontal */
  margin: 0;
  padding: 0;
}

/* ========== CONTAINER PRINCIPAL ========== */

.abcd-container {
  width: 100%;
  max-width: 100vw; /* Ne dépasse JAMAIS la largeur de l'écran */
  display: flex;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
  background-image: linear-gradient(270deg, rgb(5, 11, 36) 1%, rgb(7, 7, 7) 72%, rgb(7, 7, 7) 97%);
  overflow-x: hidden; /* Sécurité supplémentaire */
}

/* ========== HEADER ========== */

.abcd-header {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* Force respect de la largeur */
  height: 100%;
  display: flex;
  background-color: #070707;
}

.abcd-nom {
  flex: 0 0 auto;
  width: 40%;
  height: auto;
  display: flex;
  align-self: center;
  align-items: flex-start;
  padding-left: var(--dl-layout-space-threeunits);
  flex-direction: column;
  justify-content: space-between;
}

.abcd-nom-text {
  fill: #fbfaf9;
  color: #fbfaf9;
  font-size: 7em;
  font-family: "G-Manuscript", cursive;
  padding-top: var(--dl-layout-space-unit);
  padding-bottom: var(--dl-layout-space-unit);
}

.abcd-nom-baseline-mobile {
  fill: var(--dl-color-theme-neutral-light);
  color: var(--dl-color-theme-neutral-light);
  display: none;
  font-size: 1.5em;
  align-self: center;
  font-style: normal;
  text-align: center;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  font-weight: 700;
  padding-top: 0;
  padding-bottom: 0;
}

.abcd-baseline-desktop {
  flex: 0 0 auto;
  width: 60%;
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
}

.abcd-baseline-desktop span {
  fill: #f37021;
  color: #f37021;
  font-size: 3.5em;
  align-self: center;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  padding-top: var(--dl-layout-space-oneandhalfunits);
  padding-bottom: var(--dl-layout-space-oneandhalfunits);
}

/* ========== BODY ========== */

.abcd-body {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* Force respect de la largeur */
  height: 100%;
  display: flex;
  margin-top: var(--dl-layout-space-threeunits);
  align-items: flex-start;
  margin-bottom: var(--dl-layout-space-twounits);
  flex-direction: column;
}

/* ========== TITRE PRINCIPAL ========== */

.abcd-titre {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--dl-layout-space-threeunits);
  justify-content: center;
}

.abcd-titre h1 {
  color: #fbfaf9;
  font-size: 5em;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  align-self: center;
  font-style: normal;
  font-weight: 700;
  text-align: center !important;
  width: 100% !important;
  padding: 0 var(--dl-layout-space-twounits); /* Évite débordement sur mobile */
}

/* ========== ZONE LISTE ========== */

.abcd-liste {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* Force respect de la largeur */
  height: 100%;
  display: flex;
  padding-left: var(--dl-layout-space-sixunits);
  padding-right: var(--dl-layout-space-sixunits);
  flex-direction: column;
}

/* ========== BANDEAU ALPHABET MOBILE (2 lignes) ========== */

.abcd-bandeau-mobile {
  flex: 0 0 auto;
  width: 100%;
  display: none;
  overflow: hidden;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.abcd-ligne1,
.abcd-ligne2 {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: stretch;
  flex-direction: row;
  justify-content: space-between;
}

.abcd-ligne1 {
  padding-bottom: var(--dl-layout-space-oneandhalfunits);
}

/* ========== BANDEAU ALPHABET DESKTOP (1 ligne) ========== */

.abcd-bandeau {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap; /* Permet retour à la ligne si besoin */
}

/* ========== LIENS LETTRES (communs mobile + desktop) ========== */

.abcd-letter-link {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}

.abcd-letter-link a {
  color: #fbfaf9;
  font-size: 2em;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  font-weight: 700; /* ✅ AJOUT */
  text-decoration: none;
}

.abcd-letter-link a:hover {
  color: #f37021;
  outline: 2px solid var(--body-accent);
  outline-offset: 6px;
  border-radius: 100%;
}

.abcd-letter-link a:focus {
  color: #ffbe7d;
}

/* ========== SECTIONS ALPHABÉTIQUES ========== */

.abcd-sections {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* Force respect de la largeur */
  padding-left: var(--dl-layout-space-threeunits);
  padding-right: var(--dl-layout-space-unit); /* Évite débordement */
  display: flex;
  margin-top: var(--dl-layout-space-oneandhalfunits);
  flex-direction: column;
}

.abcd-section {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  
}

.titre-inter {
  color: #fbfaf9;
  font-size: 1.5em;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  font-weight: 700; /* ✅ AJOUT */
  padding-top: var(--dl-layout-space-twounits);
  padding-bottom: var(--dl-layout-space-oneandhalfunits);
}

/* ========== LISTES D'ENTRÉES ========== */

.list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.list-item {
  display: flex;
}

.entry-link a {
  fill: #fbfaf9;
  color: #fbfaf9;
  font-size: 1.25em;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  font-style: normal;
  font-weight: 300;
  line-height: 1.25;
  padding-top: var(--dl-layout-space-halfunit);
  padding-bottom: var(--dl-layout-space-halfunit);
  text-decoration: none;
}

.entry-link a:hover {
  color: #f37021;
  text-decoration: none;
}

/* ========== ENCART EXPERTISE INTRO ========== */

.div-encart-expertise-intro {
  flex: 0 0 auto;
  width: 90%;
  max-width: 100%; /* Évite débordement */
  display: flex;
  position: relative;
  align-self: center;
  align-items: flex-start;
  flex-direction: column;
  margin-top: var(--dl-layout-space-twounits);
  margin-bottom: var(--dl-layout-space-threeunits);
}

.experience {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* Évite débordement */
  height: 100%;
  display: flex;
  align-self: center;
  align-items: flex-start;
  border-color: #f37021;
  border-style: outset;
  border-width: 10px;
  border-radius: var(--dl-layout-radius-buttonradius);
  box-sizing: border-box;
}

.div-temoignage-intro {
  flex: 0 0 auto;
  width: 90%;
  display: flex;
  align-self: center;
}

.temoignage-intro {
  fill: #fbfaf9;
  color: #fbfaf9;
  font-size: 150%;
  align-self: center;
  font-style: italic;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  line-height: 1.4;
  padding-top: var(--dl-layout-space-unit);
  padding-left: var(--dl-layout-space-fourunits);
  padding-right: var(--dl-layout-space-unit);
  padding-bottom: var(--dl-layout-space-unit);
}

.portrait-encart-intro {
  width: 10%;
  align-self: center;
  object-fit: cover;
}

/* ✅ SIGNATURE DESKTOP : alignée à DROITE */
.bloc-signature-encart-intro {
  display: flex !important;
  justify-content: flex-end !important; /* Force alignement à droite */
  width: 100% !important;
  padding-right: var(--dl-layout-space-unit) !important;
  padding-left: 0 !important;
  margin-top: -75px !important; /* Remonte légèrement la signature */
  color: #fbfaf9;
  z-index: 1;
}

.bloc-signature-encart-intro .signature-encart {
  font-size: 4em;
  font-family: "G-Manuscript", cursive;
  color: #fbfaf9;
  flex-shrink: 0 !important;
  text-align: right !important;
}


/* ========== FOOTER ========== */

.abcd-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* Force respect de la largeur */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--dl-layout-space-twounits);
  background-color: #070707;
  color: #fbfaf9;
  font-size: 1em;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  flex-wrap: wrap; /* Permet retour à la ligne sur mobile */
}

.abcd-footer span {
  color: #fbfaf9;
}

.abcd-footer-year,
.abcd-footer-legal {
  display: inline-block;
}

.abcd-footer-legal a {
  color: #fbfaf9;
  font-family: "Inter", sans-serif; /* ✅ AJOUT */
  text-decoration: none;
}

.abcd-footer-legal a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1400px) {
  .abcd-nom {
    width: 50%;
  }
  
  .abcd-baseline-desktop {
    width: 50%;
  }

  /* ✅ ENCART INTRO : ajustements */
  .div-encart-expertise-intro {
    width: 90%;
    margin-top: var(--dl-layout-space-unit);

  }
}


@media (max-width: 1080px) {
  /* Bandeau alphabet : mobile visible, desktop caché */
  .abcd-bandeau-mobile {
    display: flex;
  }
  
  .abcd-bandeau {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Header mobile */
  .abcd-nom {
    width: 100%;
    padding-left: var(--dl-layout-space-twounits);
    padding-right: var(--dl-layout-space-unit); /* ✅ AJOUT : évite débordement */
  }
  
  .abcd-nom-text {
    font-size: 4em;
  }
  
  .abcd-nom-baseline-mobile {
    display: block;
  }
  
  .abcd-baseline-desktop {
    display: none;
  }
  
  /* Titre principal */
  .abcd-titre h1 {
    font-size: 2.5em; /* ✅ RÉDUIT pour éviter débordement */
    padding: 0 var(--dl-layout-space-unit);
  }
  
  /* Liste : padding réduit sur mobile */
  .abcd-liste {
    padding-left: var(--dl-layout-space-twounits);
    padding-right: var(--dl-layout-space-twounits);
  }
  
  /* Bandeau alphabet : mobile visible, desktop caché */
  .abcd-bandeau-mobile {
    display: flex;
  }
  
  .abcd-bandeau {
    display: none;
  }
  
  /* Sections : padding réduit */
  .abcd-sections {
    padding-left: var(--dl-layout-space-unit);
    padding-right: var(--dl-layout-space-unit);
  }
  
  /* Footer : padding réduit */
  .abcd-footer {
    padding: var(--dl-layout-space-unit);
    font-size: 0.9em;
  }

@media (max-width: 768px) {
  /* ... (règles existantes) ... */
    
  .div-temoignage-intro {
    width: 100%;
  }
  
  .portrait-encart-intro {
    display: none; /* Cache le portrait sur mobile */
  }
  
  .temoignage-intro {
    font-size: 125%;
    padding-left: var(--dl-layout-space-twounits);
    padding-right: var(--dl-layout-space-twounits);
  }
  
  /* ✅ SIGNATURE MOBILE : taille normale + alignée à droite */
  .bloc-signature-encart-intro {
    display: flex !important;
    justify-content: flex-end !important;
    padding-right: var(--dl-layout-space-unit) !important;
  }
  
  .bloc-signature-encart-intro .signature-encart {
    font-size: 3em !important; /* ✅ TAILLE NORMALE SUR MOBILE */
  }
}

}

@media (max-width: 480px) {
  /* Ultra petit écran : réduction supplémentaire */
  .abcd-nom-text {
    font-size: 3em;
  }
  
  .abcd-titre h1 {
    font-size: 2em;
  }
  
  .abcd-liste {
    padding-left: var(--dl-layout-space-unit);
    padding-right: var(--dl-layout-space-unit);
  }
  
  .abcd-letter-link a {
    font-size: 1.5em;
  }
}

