/* ==========================================================================
   Page d'accueil — styles spécifiques au contenu
   Les coques (hero, carrousel, sections, cartes) sont des Web Components.
   Ce fichier ne contient QUE les styles du contenu slotté et des blocs
   restés en HTML natif (skip, portes, infolettre, bascule).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Skip link
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background-color: var(--ds-brand-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* --------------------------------------------------------------------------
   1. Contenu du hero (slotté dans <ds-hero> / <ds-carousel>)
   -------------------------------------------------------------------------- */
/*.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
*/
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }

@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); } }

.hero-text h1 {
  margin: 0 0 var(--ds-space-5);
  max-width: 18ch;
}

.hero-ss {
  font-family: var(--ds-font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: var(--pr-fw-medium);
  color: var(--ds-brand-primary);
  margin: 0 0 var(--ds-space-5);
}

/* Paragraphes du Hero */
.hero-text > p:not(.hero-ss):not(.hero-eyebrow):not(.hero-slide-action) {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 0 var(--ds-space-4);
}
/*
.hero-media {
  border-radius: var(--ds-radius-card);
  overflow: hidden;
  box-shadow: var(--ds-shadow-card);
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
  */

.hero-media { width: 100%; border-radius: var(--ds-radius-card); overflow: hidden; box-shadow: var(--ds-shadow-card); }

.hero-media img { display: block; width: 100%; height: clamp(300px, 32vw, 520px); object-fit: cover; object-position: center; }

/* Titre des slides 2 et 3 (h2 stylé comme un h1) */
.hero-h1 {
  margin: 0 0 var(--ds-space-5);
  max-width: 18ch;
  font-family: var(--ds-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: var(--pr-fw-bold);
  line-height: var(--pr-lh-tight);
  letter-spacing: -0.02em;
  color: var(--ds-text-main);
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--ds-font-body);
  font-size: var(--pr-fs-xs);
  font-weight: var(--pr-fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-brand-primary);
  margin: 0 0 var(--ds-space-3);
}

.hero-slide-action {
  margin-top: var(--ds-space-5);
}

/* --------------------------------------------------------------------------
   2. Les 3 portes — débordent sous le hero
   -------------------------------------------------------------------------- */

/* Le hero n'a pas de padding en bas : les portes touchent son bord */
#accueil {
   --ds-hero-padding-top: clamp(5rem, 9vh, 7rem);
  --ds-hero-padding-bottom: 0;
}

/* Les portes sont décalées de 40px vers le bas → elles débordent du hero */
.portes {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  transform: translateY(40px);
  position: relative;
  z-index: 2;
}

.portes p {
   font-size: var(--pr-fs-lg, 1.125rem);
}

.porte {
  text-align: center;
}

.porte h3 {
  margin: var(--ds-space-3) 0 var(--ds-space-2);
}

/* La première section reçoit le débordement des portes */
.apres-portes {
  --section-padding: 0;
  padding-block: calc(40px + var(--ds-space-12)) var(--ds-space-12);
}

/* --------------------------------------------------------------------------
   3. Contenu de la section « Qui nous sommes »
   -------------------------------------------------------------------------- */
.deux-colonnes {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .deux-colonnes { grid-template-columns: 1.1fr 1fr; }
}

.sous-titre-italique {
  font-family: var(--ds-font-heading);
  font-style: italic;
  font-weight: var(--pr-fw-medium);
  color: var(--ds-brand-primary);
  margin: var(--ds-space-6) 0 var(--ds-space-4);
}

.verbes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--ds-space-6);
}
.verbes li {
  display: inline-flex;
  align-items: center;
  padding: var(--ds-space-2) var(--ds-space-4);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-bg-subtle);
  color: var(--ds-brand-primary);
  font-size: var(--pr-fs-sm);
  font-weight: var(--pr-fw-semibold);
}

.vis {
  border-radius: var(--ds-radius-card);
  overflow: hidden;
  margin-bottom: var(--ds-space-5);
}
.vis img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lien-bloc {
  margin-top: var(--ds-space-5);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  color: var(--ds-brand-primary);
  font-weight: var(--pr-fw-semibold);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ds-brand-primary) 35%, transparent);
  padding-bottom: 2px;
  transition: color var(--ds-transition-fast),
              border-color var(--ds-transition-fast);
}
.arrow-link:hover {
  color: var(--ds-brand-primary-hover, var(--ds-brand-primary));
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
   4. Contenu des sections « Nos actions » et « Agir »
   -------------------------------------------------------------------------- */

/* Carte mise en avant (« Soutenir nos actions ») */
.card--star {
  border-color: color-mix(in srgb, var(--ds-brand-primary) 35%, var(--ds-border-color));
  background: linear-gradient(160deg, var(--ds-bg-surface), var(--ds-bg-subtle));
}

/* Paragraphe d'introduction dans le slot par défaut (section « Agir ») */
.section-lead {
  font-size: var(--pr-fs-lg);
  color: var(--ds-text-muted);
  max-width: 62ch;
  margin: var(--ds-space-6) 0;
}

/* --------------------------------------------------------------------------
   5. Section finale — fond sombre + contenu centré
   -------------------------------------------------------------------------- */

/* Fond sombre de la section */
.final-section::part(section) {
  background: linear-gradient(160deg,var(--ds-brand-primary),color-mix(in srgb, var(--ds-brand-primary) 60%, white));
  /*background: rgba(18, 99, 180, 0.5);*/
  color: #fff;
  text-align: center;
}

/* Titre du slot → lisible sur fond sombre */
.final-section::part(title) {
  color: #fff;
  margin-bottom: var(--ds-space-4);
}

/* Contenu slotté dans le slot par défaut */
.final-section .final-strong {
  font-size: var(--pr-fs-lg);
  color: rgba(255, 255, 255, 0.9);
  
  margin: 0 auto var(--ds-space-4);
}

.final-section .final-cta {
  margin: var(--ds-space-6) auto;
}

/* Formulaire infolettre */
.infolettre {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  justify-content: center;
  max-width: 520px;
  margin: var(--ds-space-6) auto 0;
}
.infolettre input {
  flex: 1 1 240px;
  padding: var(--ds-space-3) var(--ds-space-5);
  border: 2px solid var(--ds-brand-accent, var(--ds-brand-primary));
  border-radius: var(--ds-radius-pill);
  background-color: #fff;
  color: var(--ds-text-main);
  font-family: var(--ds-font-body);
  font-size: var(--pr-fs-base);
}
.infolettre input:focus {
  outline: none;
  border-color: var(--ds-brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-brand-primary) 20%, transparent);
}

.bg-ocean {
  --section-bg-custom: rgba(18, 99, 180, 0.5);
}

/* --------------------------------------------------------------------------
   6. Notes « à compléter »
   -------------------------------------------------------------------------- */
.todo {
  margin-top: var(--ds-space-6);
  text-align: left;
}

.todo--inline {
  max-width: 560px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   7. Bouton bascule « Masquer les canevas »
   -------------------------------------------------------------------------- */
#bascule {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  padding: 0.5em 0.9em;
  border: 2px dashed var(--ds-brand-accent, var(--ds-brand-primary));
  background-color: var(--ds-bg-subtle);
  color: var(--ds-text-main);
  border-radius: var(--ds-radius-md);
  font: 600 0.82rem var(--ds-font-body);
  cursor: pointer;
}

body.cache ds-highlight.todo {
  display: none;
}

/* --------------------------------------------------------------------------
   8. Grilles de contenu
   -------------------------------------------------------------------------- */
.grid-actions {
  display: grid;
  gap: var(--ds-space-6);
}
@media (min-width: 640px) {
  .grid-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1050px) {
  .grid-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Uniformisation des cartes « terrain » — ratio 16:10 */
#terrain ds-card {
  --ds-card-media-aspect: 16 / 10;
}

