/* ==================================================================
   index.css - feuille propre a l'accueil.
   Sections dans l'ordre de la page : hero, bandeau, prestations,
   etapes, realisations, a propos, FAQ. Le bloc contact est dans base.css.
   ================================================================== */

/* ---- Hero ---- */

.hero {
  --accent: var(--menthe);
  padding-block: 4rem 4.5rem;
  color: var(--clair-doux);
  background: linear-gradient(180deg, var(--navy) 0%, var(--bleu-nuit) 55%, var(--bleu) 100%);
}

@media (min-width: 64em) {
  .hero {
    padding-block: 7rem 7.5rem;
  }
}

.hero-grille {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 64em) {
  .hero-grille {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-titre {
  max-width: 13ch;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--clair);
}

.hero-chapo {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
}

.hero-chapo strong {
  font-weight: 800;
  color: var(--clair);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-family: var(--police-mono);
  font-size: 0.9rem;
}

/* Fenetre de code decorative */
.code-fenetre {
  min-width: 0;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.code-barre {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.code-pastille {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
}

.code-bleu {
  background: var(--bleu);
}

.code-menthe {
  background: var(--menthe);
}

.code-magenta {
  background: var(--magenta);
}

.code-corps {
  margin: 0;
  padding: 1.25rem 1.25rem 2.5rem;
  overflow-x: auto;
  font-family: var(--police-mono);
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  line-height: 1.6;
  color: var(--clair);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 30em) {
  .code-corps {
    white-space: pre;
  }
}

.code-commentaire {
  color: var(--clair-doux);
}

.code-menthe-t {
  color: var(--menthe);
}

.code-cle {
  color: var(--magenta-clair);
}

.code-accolade {
  color: #8e9cf0;
}

/* ---- Bandeau des garanties ---- */

.bandeau {
  padding-block: 1.1rem;
  background: var(--navy);
}

.bandeau-liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clair);
}

/* ---- Prestations ---- */

.cartes-prestations {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 48em) {
  .cartes-prestations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .cartes-prestations {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.prestation {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  background: var(--fond);
  border: 1.5px solid var(--teinte-claire);
  border-radius: var(--rayon-carte);
  box-shadow: 7px 9px 0 -2px var(--teinte-claire);
}

.prestation-menthe {
  --teinte: var(--menthe);
  --teinte-texte: var(--menthe-texte);
  --teinte-claire: #bff5e0;
}

.prestation-magenta {
  --teinte: var(--magenta);
  --teinte-texte: var(--magenta-texte);
  --teinte-claire: #f8c3de;
}

.prestation-bleu {
  --teinte: var(--bleu);
  --teinte-texte: var(--bleu);
  --teinte-claire: #c9cfee;
}

.prestation-icone {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  color: var(--teinte-texte);
  background: var(--teinte-claire);
  border-radius: 50%;
}

.prestation-titre {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.prestation-accroche {
  margin-top: 0.75rem;
  font-family: var(--police-mono);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--teinte-texte);
}

.prestation-liste {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  margin-block: 1.75rem 2rem;
  text-align: left;
}

.prestation-liste li {
  position: relative;
  padding-left: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--texte-doux);
}

.prestation-liste li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--teinte);
  border-radius: 50%;
}

.prestation .bouton {
  width: 100%;
  margin-top: auto;
  color: var(--teinte-texte);
  border-color: var(--teinte);
}

.prestation .bouton:hover {
  color: var(--clair);
  background: var(--teinte-texte);
  border-color: var(--teinte-texte);
}

.prestations-note {
  max-width: 62rem;
  margin: 3rem auto 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--texte-doux);
  text-align: center;
}

/* ---- Etapes ---- */

.etapes-liste {
  display: grid;
  gap: 2rem 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 40em) {
  .etapes-liste {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .etapes-liste {
    grid-template-columns: repeat(5, 1fr);
  }
}

.etape {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.etape-numero {
  padding-bottom: 0.5rem;
  font-family: var(--police-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--menthe);
  border-bottom: 3px solid var(--menthe);
}

.etape-titre {
  font-family: var(--police-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clair);
}

/* ---- Realisations ---- */

.cartes-realisations {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 48em) {
  .cartes-realisations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .cartes-realisations {
    grid-template-columns: repeat(3, 1fr);
  }
}

.realisation {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--fond);
  border: 1.5px solid var(--teinte);
  border-radius: var(--rayon-carte);
}

.realisation-menthe {
  --teinte: var(--menthe);
}

.realisation-bleu {
  --teinte: var(--bleu);
}

.realisation-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 3px solid var(--teinte);
}

.realisation-corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.etiquette {
  padding: 0.3rem 0.9rem;
  font-family: var(--police-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.etiquette-menthe {
  color: var(--menthe-texte);
}

.etiquette-bleu {
  color: var(--bleu);
}

.etiquette-magenta {
  color: var(--magenta-texte);
}

.realisation-titre {
  font-family: var(--police-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.realisation-texte {
  font-family: var(--police-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.realisation-lien {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--police-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-underline-offset: 4px;
}

.realisation-lien-attente {
  font-weight: 500;
  color: var(--texte-doux);
}

.prochaine {
  --accent: var(--menthe);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: 68rem;
  margin: 3rem auto 0;
  padding: 1.75rem 1.5rem;
  font-family: var(--police-mono);
  color: var(--clair-doux);
  background: var(--navy);
  border-radius: 26px;
}

@media (min-width: 40em) {
  .prochaine {
    padding: 2rem 2.5rem;
  }
}

.prochaine-texte {
  flex: 1 1 28rem;
}

.prochaine-titre {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clair);
  border-bottom: 2px solid var(--menthe);
}

.prochaine p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---- A propos ---- */

.a-propos-grille {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64em) {
  .a-propos-grille {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.portrait {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 360 / 222;
  object-fit: cover;
  border-radius: 24px;
}

.reperes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  max-width: 26rem;
  margin-top: 1.5rem;
}

.reperes dt {
  font-family: var(--police-mono);
  font-size: 0.95rem;
  color: var(--menthe);
}

.reperes dd {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clair);
}

.a-propos-texte {
  display: grid;
  gap: 1.25rem;
  font-weight: 600;
}

.a-propos-chapo {
  font-family: var(--police-mono);
  font-weight: 700;
  color: var(--menthe);
}

.engagements-titre {
  margin-top: 4rem;
  font-family: var(--police-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--clair);
}

.engagements {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 48em) {
  .engagements {
    grid-template-columns: repeat(3, 1fr);
  }
}

.engagement {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 2.5rem;
  font-family: var(--police-mono);
  font-size: 0.95rem;
  line-height: 1.55;
  border: 1.5px solid var(--bleu);
  border-radius: var(--rayon-carte);
}

.engagement-numero {
  font-weight: 700;
  color: var(--menthe);
}

.engagement-nom {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clair);
}

/* ---- FAQ ---- */

.conteneur-faq {
  max-width: 64rem;
}

.faq {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--fond);
  border: 2px solid var(--filet);
  border-radius: var(--rayon-carte);
}

.faq-item[open] {
  border-color: var(--bleu);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  font-family: var(--police-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
  border-radius: var(--rayon-carte);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icone {
  flex-shrink: 0;
  color: var(--bleu);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icone {
  transform: rotate(45deg);
}

.faq-reponse {
  padding: 0 1.25rem 1.25rem;
  line-height: 1.65;
  color: var(--texte-doux);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icone {
    transition: none;
  }
}
