/* =========================
   HOME - index.php
   ========================= */

#global-contenu > #droite.home-main{
  box-sizing: border-box;
  width: min(1100px, calc(100% - 2rem));
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* =========================
   SECTIONS
   ========================= */

.home-section{
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.home-section--tight{
  margin-top: 1rem;
}

.home-section--spaced{
  margin-top: 2rem;
}

/* =========================
   HERO
   ========================= */

.home-hero{
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

.home-hero__eyebrow{
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f4c81;
  text-align: center;
}

.home-hero__title{
  margin: 0 0 0.875rem;
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
}

.home-hero__text{
  max-width: 56.25rem;
  margin: 0 auto 0.875rem;
  line-height: 1.65;
  font-size: 1.05rem;
  text-align: center;
}

.home-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 auto 1.625rem;
}

/* =========================
   BOUTONS / CTA
   ========================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.75rem 1.125rem;
  border-radius: 0.625rem;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
.btn:focus{
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary{
  background: #0f4c81;
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus{
  background: #0c3d67;
  color: #fff;
}

.btn--secondary{
  background: #7dc8fb;
  color: #000;
}

.btn--secondary:hover,
.btn--secondary:focus{
  background: #5eb9f7;
  color: #000;
}

.btn--outline{
  background: #fff;
  border-color: #0f4c81;
  color: #0f4c81;
}

.btn--outline:hover,
.btn--outline:focus{
  background: #f3f9fe;
  color: #0f4c81;
}

/* =========================
   TITRES DE SECTION
   ========================= */

.home-section__title{
  margin: 0 0 1.125rem;
  text-align: center;
  font-size: 1.625rem;
  line-height: 1.25;
}

.home-section__intro{
  max-width: 56.25rem;
  margin: 0 auto 1rem;
  text-align: center;
  line-height: 1.65;
}

/* Paragraphes de sections :
   conteneur centré, texte centré */
.home-section > p{
  max-width: 58rem;
  margin: 0 auto 1rem;
  line-height: 1.65;
  text-align: center;
}

/* =========================
   GRILLES / CARTES
   ========================= */

.cards-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.875rem;
  padding: 1.125rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.04);
  text-align: left;
}

.card__title{
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: left;
}

.card p{
  margin-top: 0;
  margin-bottom: 0.875rem;
  line-height: 1.6;
  text-align: left;
}

.card p:last-child{
  margin-bottom: 0;
}

.card ul{
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  text-align: left;
}

.card li{
  text-align: left;
}

.card li + li{
  margin-top: 0.25rem;
}

/* =========================
   BANDEAU REASSURANCE / CTA
   ========================= */

.notice-box{
  font-weight: 700;
  text-align: center;
  font-size: 1.05rem;
  background: rgba(125,200,251,0.25);
  border: 1px solid rgba(125,200,251,0.7);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  line-height: 1.6;
}

.notice-box a{
  font-weight: 700;
}

/* =========================
   LISTES PROJETS
   ========================= */

/* Grande liste centrale : bloc centré, texte à gauche */
.home-list{
  max-width: 58rem;
  margin: 0 auto 1rem;
  padding-left: 1.5rem;
  line-height: 1.65;
  text-align: left;
}

.home-list li{
  text-align: left;
}

.home-list li + li{
  margin-top: 0.25rem;
}

/* Dans les cartes, on garde la liste classique */
.card .home-list{
  max-width: none;
  margin: 0;
  padding-left: 1.25rem;
}

/* =========================
   FAQ
   ========================= */

.faq{
  max-width: 1000px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.faq__title{
  text-align: center;
  margin-bottom: 1.25rem;
}

.faq details{
  margin-bottom: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
  background: #fff;
}

.faq summary{
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.faq p{
  margin-top: 0.625rem;
  line-height: 1.6;
  text-align: left;
}

/* =========================
   CTA FINAL
   ========================= */

.home-final-cta{
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0;
}

.home-final-cta a{
  text-decoration: none;
}

.home-final-cta a:hover,
.home-final-cta a:focus{
  text-decoration: underline;
}

/* =========================
   PETITES INFOS
   ========================= */

.home-update{
  text-align: right;
  font-size: 0.75rem;
  margin-top: 1rem;
}

/* =========================
   ACCESSIBILITE / FOCUS
   ========================= */

.btn:focus-visible,
.card a:focus-visible,
.faq summary:focus-visible{
  outline: 3px solid #0f4c81;
  outline-offset: 2px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px){
  .home-hero__title{
    font-size: 1.65rem;
  }

  .home-section__title{
    font-size: 1.4rem;
  }

  .home-final-cta{
    font-size: 1.15rem;
  }

  .card{
    padding: 1rem;
  }

  .home-list{
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px){
  .home-hero{
    margin-top: 1rem;
  }

  .home-hero__title{
    font-size: 1.45rem;
  }

  .btn{
    width: 100%;
  }

  .home-hero__actions{
    flex-direction: column;
  }
}