/* Composants — direction visuelle de la maquette de référence.
   Le rythme vient des fonds, des filets et des espaces. Une carte n'existe
   que pour un produit ; usages, capacités et comparatifs sont des colonnes
   séparées par un trait. */

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--blanc   { background: var(--surface); }
.section--offres  { background: var(--fond-offres); }
.section--capacite{ background: var(--fond-capacite); }
.section--marques { background: var(--fond-marques); }
/* Bande de confiance : un filet en haut et en bas, pas une carte. */
.section--bande   { background: var(--surface); border-block: var(--trait); }
.section--nuit    { background: linear-gradient(100deg, var(--nuit-clair), #0B1C31); color: var(--nuit-texte); }
/* Sections secondaires : moins de hauteur qu'une section stratégique. */
.section--serree  { padding-block: calc(var(--section) * 0.7); }

.section__titre { margin-bottom: var(--e2); max-width: var(--largeur-titre);
                  letter-spacing: -0.025em; }
.section__sous-titre { max-width: var(--largeur-titre); color: var(--gris-doux);
                       font-size: 1.0625rem; line-height: 1.6; }
.section__intro { max-width: var(--largeur-titre); margin-bottom: var(--e6);
                  color: var(--gris-doux); font-size: 1.0625rem; line-height: 1.6; }
.section--nuit .section__sous-titre { color: var(--nuit-secondaire); }
.section--nuit h2 { color: var(--nuit-texte); }

.section__entete {
  display: flex;
  flex-direction: column;
  gap: var(--e2);
  margin-bottom: var(--e6);
}
.section__entete > div { max-width: 62ch; }

@media (min-width: 768px) {
  .section__entete { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--e4); }
}


/* ---------- Boutons et liens ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e1);
  min-height: 44px;
  padding: 0 var(--e4);
  border: 1px solid transparent;
  border-radius: var(--rayon-bouton);
  background: var(--bleu);
  color: #fff;
  font: inherit;
  font-weight: var(--gras);
  font-size: var(--petit);
  cursor: pointer;
  transition: background var(--transition);
}
.bouton:hover { background: var(--bleu-survol); color: #fff; text-decoration: none; }
.bouton--pleine-largeur { width: 100%; }

.lien-action {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  color: var(--bleu);
  font-size: var(--petit);
  font-weight: var(--gras);
  white-space: nowrap;
}
.lien-action svg { transition: transform var(--transition); }
.lien-action:hover { text-decoration: none; }
.lien-action:hover svg { transform: translateX(3px); }
.section--nuit .lien-action { color: #7FB0FF; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #EDF1F6;
}
.entete__interieur { display: flex; align-items: center; gap: var(--e4); min-height: 74px; }
.entete__logo img { height: 46px; width: auto; display: block; }

.entete__nav { display: none; margin-left: auto; }
.entete__nav ul { display: flex; gap: var(--e4); list-style: none; margin: 0; padding: 0; }
.entete__nav a { color: var(--texte); font-size: var(--corps); font-weight: var(--demi-gras); }
.entete__nav a:hover { color: var(--bleu); text-decoration: none; }

.recherche {
  display: none;
  align-items: center;
  gap: var(--e1);
  width: 230px;
  height: 40px;
  padding: 0 var(--e3);
  border: 1px solid #BDD1EF;
  border-radius: var(--rayon-pilule);
  color: var(--bleu);
  background: var(--surface);
}
.recherche input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: var(--petit);
  color: var(--texte);
}
.recherche:focus-within { border-color: var(--bleu); }

.entete__bascule {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: var(--trait); border-radius: var(--rayon-bouton);
  cursor: pointer;
}
.entete__bascule span, .entete__bascule span::before, .entete__bascule span::after {
  display: block; width: 18px; height: 2px; background: var(--texte); border-radius: 2px;
}
.entete__bascule span { position: relative; }
.entete__bascule span::before, .entete__bascule span::after { content: ""; position: absolute; left: 0; }
.entete__bascule span::before { top: -6px; }
.entete__bascule span::after  { top: 6px; }

.menu-mobile { border-bottom: var(--trait); background: var(--surface); }
.menu-mobile ul { list-style: none; margin: 0; padding: var(--e2) 0 var(--e3); }
.menu-mobile a { display: block; padding: var(--e2) 0; color: var(--texte); font-weight: var(--demi-gras); }

@media (min-width: 680px) { .recherche { display: flex; margin-left: auto; } }
@media (min-width: 1024px) {
  .entete__interieur { min-height: 92px; }
  .entete__logo img { height: 72px; }
  .entete__nav { display: block; }
  .recherche { margin-left: 0; }
  .entete__bascule, .menu-mobile { display: none; }
}

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

/* Mobile : l'image reste entière, à son format naturel. Le titre et le
   sous-titre se superposent à elle ; les cartes viennent en dessous, sur le
   fond clair. Grille à une colonne où l'image et l'accroche partagent la
   première rangée. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(90deg, #F5F9FF, #EDF6FF);
  overflow: hidden;
}
.hero__image { grid-row: 1; grid-column: 1; }
.hero__image picture, .hero__image img { display: block; width: 100%; height: auto; }

.hero__accroche {
  grid-row: 1;
  grid-column: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3.5rem;
  padding-bottom: 0.5rem;
}
/* Le label et le sous-titre s'étendent sur toute la largeur ; seul le titre
   reste dans la zone claire de l'image, à gauche des disques. */
.hero__accroche .hero__texte { max-width: none; }
/* Mesuré sur l'image : le haut reste clair jusqu'à 75 % de la largeur, le
   milieu seulement jusqu'à 53 %, et les 15 % du bas sont clairs partout.

   Les coupures du titre sont explicites plutôt que laissées au navigateur :
   quatre lignes, toujours les mêmes, quelle que soit la largeur d'écran. */
.hero h1 { max-width: 72%; }
.saut-mobile { display: inline; }
.hero__sous-titre { max-width: none; margin-top: auto; padding-top: var(--e3); }
.hero__choix { grid-row: 2; grid-column: 1; padding-block: var(--e4) var(--e6); }

.hero__label {
  font-size: 0.8125rem;
  font-weight: var(--demi-gras);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: var(--e2);
}
.hero h1 {
  margin-bottom: var(--e2);
  font-size: 1.625rem;
  line-height: 1.75rem;
  font-weight: var(--noir);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 em { display: block; font-style: normal; color: var(--bleu); }
.hero__sous-titre {
  color: var(--texte);
  font-size: 0.6875rem;
  font-weight: var(--gras);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Cartes de choix : image à gauche, titre et description à droite,
   interlignes serrés. */
.portes { display: grid; gap: var(--e2); }
.porte {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: var(--e3);
  padding: var(--e2) var(--e3);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #CFDAE7;
  border-radius: 10px;
  color: var(--texte);
  transition: border-color var(--transition), background var(--transition);
}
.porte:hover { text-decoration: none; color: var(--texte); border-color: var(--bleu); background: #fff; }
.porte__image { width: 46px; height: auto; display: block; }
.porte__texte { display: block; line-height: 1.15; }
.porte__nom { display: block; font-weight: var(--gras); font-size: var(--corps); }
.porte__quoi {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 3px;
  color: var(--gris-doux); font-size: 0.8125rem; font-weight: 500;
  line-height: 1.3;
}

.aide {
  display: flex;
  align-items: center;
  gap: var(--e2);
  margin-top: var(--e2);
  padding: var(--e3);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #CFDAE7;
  border-radius: 10px;
  font-size: 1.25rem;
  white-space: normal;
}
.aide__pastille {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--bleu-clair); color: var(--bleu);
  border-radius: 50%; font-weight: 800; font-size: var(--corps);
}
/* La carte est plus large que sa phrase : la flèche part au bord droit pour
   ne pas laisser un trou après le texte. */
.aide svg { margin-left: auto; }

@media (min-width: 640px) {
  .portes { grid-template-columns: repeat(3, 1fr); }
  /* En colonnes, la carte d'aide se détache du bloc ; empilée, elle est
     la quatrième carte et garde l'écart de la grille. */
  .aide { margin-top: var(--e4); }
}

@media (min-width: 1024px) {
  /* Desktop : l'image occupe tout le bandeau, recadrée en hauteur sur les
     produits. Le texte, accroche et cartes réunies, se place dans sa zone
     claire à gauche. Cadrage validé, à ne pas modifier. */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 41rem;
  }
  .hero__image { position: absolute; inset: 0; }
  .hero__image picture { display: block; height: 100%; }
  .hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 67%; }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 30%,
      rgba(255, 255, 255, 0.45) 48%,
      rgba(255, 255, 255, 0) 64%
    );
  }

  .hero__accroche, .hero__choix { position: relative; z-index: 1; padding-block: 0; }
  .hero__accroche .hero__texte, .hero__choix .hero__texte { max-width: 39rem; }
  .hero__accroche { margin-bottom: var(--e5); }
    .hero h1 { font-size: 3.375rem; line-height: 1.07; text-transform: none;
             letter-spacing: -0.035em; max-width: 650px; }
  .hero__sous-titre {
    font-size: 1.1875rem;
    font-weight: var(--demi-gras);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    max-width: 38ch;
    margin-top: 0;
    padding-top: 0;
  }
  .hero__accroche .hero__texte { max-width: 39rem; }
  .hero h1 { max-width: none; }
  .saut-mobile { display: none; }
}

/* ---------- Offres ---------- */

.offres { display: grid; gap: var(--e3); }
.offre {
  display: flex;
  flex-direction: column;
  gap: var(--e1);
  padding: var(--e4);
  background: var(--surface);
  border: var(--trait);
  border-radius: var(--rayon-carte);
  transition: border-color var(--transition);
}
.offre:hover { border-color: var(--bleu); }
.offre__role {
  align-self: flex-start;
  padding: 5px var(--e2);
  border-radius: var(--rayon-pilule);
  color: #fff;
  font-size: var(--minuscule);
  font-weight: var(--gras);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.offre__role--choix { background: var(--bleu); }
.offre__role--prix  { background: var(--vert); }
.offre__role--to    { background: var(--orange); }

.offre__visuel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 135px;
  margin-block: var(--e1);
  background: var(--fond);
  border-radius: var(--rayon-bouton);
  color: var(--texte-secondaire);
}
.offre__visuel span { font-size: 0.8125rem; text-transform: uppercase;
                      letter-spacing: 0.06em; color: var(--gris-doux); }
.offre__visuel b { font-size: var(--h3); color: var(--texte); letter-spacing: -0.02em; }

.offre__nom { font-size: 1.125rem; line-height: 1.35; font-weight: var(--demi-gras); }
.offre__specs { font-size: var(--petit); color: var(--gris-doux); }

.offre__prix {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--e2);
  margin-block: var(--e2) var(--e1);
}
/* Un seul style de prix pour tout le site : accueil, résultats, comparateur. */
.prix { display: block; font-size: var(--prix-carte); line-height: 1.1;
        font-weight: var(--gras); letter-spacing: -0.025em; }
.prix-to { display: block; margin-top: 4px; color: var(--gris-doux);
           font-size: 0.9375rem; font-weight: var(--demi-gras); }

.tendance {
  padding: 6px var(--e2);
  border-radius: var(--rayon-bouton);
  background: var(--fond);
  color: var(--gris-doux);
  font-size: 0.8125rem;
  font-weight: var(--gras);
  text-align: center;
  flex-shrink: 0;
}
.tendance small { display: block; font-size: 0.625rem; font-weight: var(--demi-gras); }
.tendance--baisse { background: var(--vert-clair); color: var(--vert); }
.tendance--hausse { background: var(--rouge-clair); color: var(--rouge); }
.tendance--attente { font-weight: var(--demi-gras); }

.offre__marchand { font-size: var(--petit); color: var(--gris-doux); margin-bottom: var(--e2); }
.offre .bouton { margin-top: auto; width: 100%; }

@media (min-width: 680px)  { .offres { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offres { grid-template-columns: repeat(3, 1fr); } }

/* Le catalogue ne permet pas toujours trois rôles distincts. Une carte seule
   au quart de la largeur donne l'impression qu'il manque du contenu : elle
   passe alors en bandeau horizontal, et deux cartes se partagent la ligne. */
@media (min-width: 680px) {
  .offres--1, .offres--2 { grid-template-columns: repeat(2, 1fr); }
  .offres--1 { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .offres--1 { grid-template-columns: 1fr; }
  .offres--2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }

  .offres--1 .offre {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto 220px;
    grid-template-rows: auto auto auto;
    column-gap: var(--e5);
    row-gap: 4px;
    align-items: center;
    padding: var(--e4) var(--e5);
  }
  .offres--1 .offre__visuel { grid-column: 1; grid-row: 1 / 4; height: 100%;
                              min-height: 150px; margin: 0; }
  .offres--1 .offre__role   { grid-column: 2; grid-row: 1; }
  .offres--1 .offre__nom    { grid-column: 2; grid-row: 2; font-size: 1.375rem; }
  .offres--1 .offre__specs  { grid-column: 2; grid-row: 3; }
  .offres--1 .offre__prix   { grid-column: 3; grid-row: 1 / 4; flex-direction: column;
                              align-items: flex-start; justify-content: center;
                              gap: var(--e2); margin: 0; }
  .offres--1 .offre__marchand { grid-column: 4; grid-row: 3; margin: 0; text-align: center; }
  .offres--1 .bouton        { grid-column: 4; grid-row: 2; }
}

/* ---------- Usages ---------- */

.usages { display: grid; grid-template-columns: repeat(2, 1fr); }
.usage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 132px;
  padding: var(--e3) var(--e2);
  border-bottom: var(--trait);
  color: var(--texte);
}
.usage svg:first-child { color: var(--bleu); margin-bottom: 3px; }
.usage b { font-size: var(--corps); font-weight: var(--demi-gras); }
.usage small { color: var(--gris-doux); font-size: 0.875rem; line-height: 1.45; max-width: 20ch; }
.usage em { font-style: normal; color: var(--bleu); margin-top: auto; padding-top: var(--e2); }
.usage:hover { text-decoration: none; color: var(--texte); }
.usage:hover b { color: var(--bleu); }

@media (min-width: 680px) {
  .usages { grid-template-columns: repeat(3, 1fr); }
  .usage { border-bottom: 0; border-right: var(--trait); }
  .usage:nth-child(3n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .usages { grid-template-columns: repeat(6, 1fr); }
  .usage:nth-child(3n) { border-right: var(--trait); }
  .usage:last-child { border-right: 0; }
}

/* ---------- Capacités ---------- */

.capacites { display: grid; grid-template-columns: repeat(2, 1fr); }
.capacite {
  text-align: center;
  padding: var(--e4) var(--e2);
  border-bottom: 1px solid #DCE4ED;
  color: var(--texte);
}
.capacite b { display: block; font-size: 1.3125rem; line-height: 1.2;
              font-weight: var(--gras); letter-spacing: -0.015em; }
.capacite small { display: block; margin-top: 5px; font-size: 0.8125rem;
                  color: var(--gris-doux); }
.capacite:hover { text-decoration: none; }
.capacite:hover b { color: var(--bleu); }

@media (min-width: 680px) {
  .capacites { grid-template-columns: repeat(6, 1fr); }
  .capacite { border-bottom: 0; border-right: 1px solid #CCD6E2; }
  .capacite:last-child { border-right: 0; }
}

/* ---------- Familles ---------- */

.familles { display: grid; }
.famille { padding-block: var(--e4); border-bottom: var(--trait); }
.famille:last-child { border-bottom: 0; }
.famille h3 { font-size: 1.375rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.famille > p { font-size: 0.9375rem; font-weight: var(--demi-gras);
               color: var(--gris-doux); margin-bottom: var(--e3); }
.famille ul { list-style: none; margin: 0 0 var(--e3); padding: 0; display: grid; gap: 6px; }
.famille li { display: flex; align-items: flex-start; gap: var(--e1);
              font-size: var(--petit); line-height: 1.7; }
.famille li svg { color: var(--vert); flex-shrink: 0; margin-top: 2px; }
.famille__capacites {
  display: block;
  padding: 6px var(--e3);
  background: #F0F3F7;
  border-radius: var(--rayon-pilule);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--texte-secondaire);
}

@media (min-width: 768px) {
  .familles { grid-template-columns: repeat(3, 1fr); }
  .famille { padding: 0 var(--e5); border-bottom: 0; border-right: var(--trait); }
  .famille:first-child { padding-left: 0; }
  .famille:last-child { padding-right: 0; border-right: 0; }
}

/* ---------- Suivi des prix ---------- */

.suivi { display: grid; gap: var(--e5); align-items: center; }
.suivi__mesures { display: flex; flex-wrap: wrap; gap: var(--e4); margin-top: var(--e4); }
.suivi__mesures > div { padding-right: var(--e4); border-right: 1px solid rgba(255, 255, 255, 0.2); }
.suivi__mesures > div:last-child { border-right: 0; padding-right: 0; }
.suivi__mesures b { display: block; font-size: 1.875rem; line-height: 1.1;
                    font-weight: var(--gras); letter-spacing: -0.025em; }
.suivi__mesures small { font-size: 0.8125rem; color: var(--nuit-secondaire); }
.suivi__attente {
  padding: var(--e4);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--rayon-carte);
  color: var(--nuit-secondaire);
  font-size: var(--petit);
  line-height: 1.6;
}

@media (min-width: 1024px) { .suivi { grid-template-columns: 0.95fr 1.05fr; gap: var(--e7); } }

/* ---------- Marques ---------- */

.marques__ligne { display: grid; gap: var(--e3); align-items: center; }
.marques__titre { font-size: 1.125rem; font-weight: var(--demi-gras); }
.marques { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e4); list-style: none; margin: 0; padding: 0; }
.marques a { color: var(--gris-doux); font-size: var(--petit); font-weight: var(--demi-gras); }
.marques a:hover { color: var(--nuit); text-decoration: none; }

@media (min-width: 900px) { .marques__ligne { grid-template-columns: 1.1fr 1.7fr auto; gap: var(--e5); } }

/* ---------- Confiance ---------- */

.confiance { display: grid; gap: var(--e4); }
.confiance > div { display: grid; grid-template-columns: 36px 1fr; column-gap: var(--e2); }
.confiance span {
  grid-row: 1 / 3;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bleu-clair); color: var(--bleu);
  border-radius: 50%;
}
.confiance b { font-size: var(--petit); font-weight: var(--demi-gras); }
.confiance small { font-size: 0.8125rem; line-height: 1.45; color: var(--gris-doux); }

@media (min-width: 680px)  { .confiance { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .confiance { grid-template-columns: repeat(4, 1fr); } }

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

.faq { max-width: 820px; margin-inline: auto; }
.accordeon { border-top: var(--trait); }
.accordeon__element { border-bottom: var(--trait); }
.accordeon__bouton {
  display: flex; justify-content: space-between; align-items: center; gap: var(--e3);
  width: 100%; min-height: 44px; padding: var(--e3) 0;
  background: none; border: 0; font: inherit; font-size: var(--corps);
  font-weight: var(--demi-gras); line-height: 1.4;
  text-align: left; color: var(--texte); cursor: pointer;
}
.accordeon__bouton::after { content: "+"; font-size: 1.25rem; color: var(--texte-secondaire); flex-shrink: 0; }
.accordeon__bouton[aria-expanded="true"]::after { content: "−"; }
.accordeon__contenu { padding-bottom: var(--e3); color: var(--gris-doux);
                      font-size: 0.9375rem; line-height: 1.65; }

/* ---------- Pied de page ---------- */

.pied { background: var(--nuit); color: #DCE5EE; padding-block: 3.5rem 2rem; }
.pied__colonnes { display: grid; gap: var(--e5); }
.pied__marque img { height: 42px; width: auto; margin-bottom: var(--e3); filter: brightness(0) invert(1); opacity: 0.92; }
.pied__marque p { max-width: 40ch; color: #95A6B8; font-size: 0.8125rem; line-height: 1.7; }
.pied h2 { font-size: var(--petit); font-weight: var(--demi-gras); color: #fff;
           margin-bottom: var(--e2); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e1); }
.pied a { color: #9EB0C1; font-size: var(--petit); line-height: 2; }
.pied a:hover { color: #fff; }
.pied__mention {
  margin-top: var(--e5); padding-top: var(--e4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--minuscule); line-height: 1.6;
  color: #7E90A4; max-width: 70ch;
}

@media (min-width: 680px)  { .pied__colonnes { grid-template-columns: 1.4fr 1fr; gap: var(--e5); } }
@media (min-width: 1024px) { .pied__colonnes { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--e6); } }

/* ---------- Utilitaires ---------- */

.chip {
  display: inline-flex; align-items: center; gap: var(--e1);
  min-height: 36px; padding: 0 var(--e3);
  background: var(--surface); border: var(--trait); border-radius: var(--rayon-pilule);
  font-size: var(--petit); font-weight: var(--demi-gras); color: var(--texte);
}
