/* Cadre commun : barre du haut et pied de page. */

.barre {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px;
  background-color: transparent;
  transition: background-color 150ms var(--courbe), backdrop-filter 150ms var(--courbe);
}
.barre.est-defilee { background-color: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.barre .contenant { height: 100%; display: flex; align-items: center; gap: 24px; }
/* Comme Codex : la barre prend toute la largeur de l'écran, logo et liens à gauche, boutons calés à droite. */
.barre > .contenant { max-width: none; padding-inline: 48px; }
.barre__logo { display: inline-flex; align-items: center; flex: none; border-radius: 6px; outline: 2px solid transparent; outline-offset: 2.5px; transition: outline-color 150ms var(--courbe); }
.barre__logo:focus-visible { outline-color: #fff; }
.barre__logo img { display: block; height: 22px; width: auto; }
.barre__liens { display: flex; align-items: center; gap: 10px; margin-left: 12px; margin-right: auto; }
.barre__actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1099.98px) {
  .barre > .contenant { padding-inline: 28px; }
  .barre__liens { gap: 2px; margin-left: 0; }
}

/* Sur le ciel (accueil) : un voile sombre très doux sous la barre, sinon les liens blancs se perdent dans le rose.
   Liens en blanc plein, pastille à 16 % ; le filet du focus passe au noir, le blanc ne se voit pas sur le ciel clair. */
.barre--ciel::before {
  content: ''; position: absolute; inset: 0 0 -36px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8, 14, 40, .42), rgba(8, 14, 40, .18) 60%, transparent);
  transition: opacity 150ms var(--courbe);
}
.barre--ciel.est-defilee::before { opacity: 0; }
.barre--ciel:not(.est-defilee) .nav { color: #fff; text-shadow: 0 1px 10px rgba(8, 14, 40, .45); }
.barre--ciel:not(.est-defilee) .nav:focus-visible,
.barre--ciel:not(.est-defilee) .barre__logo:focus-visible { outline-color: #0D0D0D; }
.barre--ciel:not(.est-defilee) .nav:hover { color: #fff; background: rgba(255, 255, 255, .16); }

/* Tablette étroite (760 à 859 px) : logo, quatre liens et deux boutons ne tiennent pas sur une ligne. Les liens ne se coupent jamais ; « Nous contacter » cède la place, la réservation reste. */
.barre .nav { white-space: nowrap; }
@media (min-width: 760px) and (max-width: 859.98px) {
  .barre__actions .btn-secondaire { display: none; }
}

/* Téléphone : seule la réservation reste. */
@media (max-width: 759.98px) {
  .barre__liens, .barre__actions .btn-secondaire { display: none; }
  .barre__actions { margin-left: auto; }
}

.pied { background: var(--pied); color: var(--texte-2); padding: 64px 0 40px; margin-top: 110px; }
.pied__haut { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.pied__signe img { display: block; width: 36px; height: auto; }
.pied__colonnes { display: flex; flex-wrap: wrap; gap: 24px 80px; }
.pied__colonne { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.pied__colonne h2 { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 4px; letter-spacing: -.01em; }
.pied a { text-decoration: none; color: var(--texte-2); transition: color 150ms var(--courbe); }
.pied a:hover { color: #fff; }
.pied a:focus-visible { outline: 2px solid #fff; outline-offset: 2.5px; border-radius: 4px; }
.pied__droits { margin: 56px 0 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Le panneau « Produit », repris du menu déroulant d'OpenAI : la barre et le panneau ne font qu'un bloc noir,
   la page dessous est floutée et assombrie. Trois colonnes : entrées de la page, cycles de l'audit, tests du cycle choisi. */
.nav--menu { gap: 4px; border: 0; cursor: pointer; background: transparent; }
.nav__chevron { width: 12px; height: 12px; flex: none; transition: transform 200ms var(--courbe); }
.nav--menu[aria-expanded="true"] { color: #fff; }
.nav--menu[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.barre.est-ouverte { background-color: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
.barre--ciel.est-ouverte::before { opacity: 0; }
.barre.est-ouverte .nav { color: #AFAFAF; text-shadow: none; }
.barre.est-ouverte .nav:hover, .barre.est-ouverte .nav--menu { color: #fff; }
.barre.est-ouverte .nav:focus-visible, .barre.est-ouverte .barre__logo:focus-visible { outline-color: #fff; }

.menu-produit {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #000; border-bottom: 1px solid var(--filet);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 200ms var(--courbe), transform 200ms var(--courbe);
}
.menu-produit[hidden] { display: none; }
.menu-produit.est-visible { opacity: 1; transform: none; }
/* « .barre .contenant » met la barre en ligne et centrée : le panneau, qui est dans la barre, reprend une grille alignée en haut. */
.barre .menu-produit__grille {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1fr); gap: 40px; align-items: start;
  height: auto; padding-top: 40px; padding-bottom: 56px;
}
.menu-produit__etiquette { margin: 0 0 18px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .55); letter-spacing: -.005em; }

.menu-produit__explorer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.menu-produit__explorer a {
  display: inline-block; padding: 4px 0;
  font-size: 34px; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; color: #fff; text-decoration: none;
  border-radius: 6px; outline: 2px solid transparent; outline-offset: 2px;
  transition: color 150ms var(--courbe), outline-color 150ms var(--courbe);
}
.menu-produit__explorer a:hover { color: rgba(255, 255, 255, .7); }
.menu-produit__explorer a:focus-visible { outline-color: #fff; }

.menu-produit__liste { display: grid; gap: 2px; margin-left: -10px; }
.menu-produit__cycle {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent;
  font: 500 14px/1.3 'Switzer', system-ui, sans-serif; letter-spacing: -.01em; text-align: left; color: rgba(255, 255, 255, .72);
  cursor: pointer; outline: 2px solid transparent; outline-offset: 0;
  transition: color 150ms var(--courbe), background-color 150ms var(--courbe), outline-color 150ms var(--courbe);
}
.menu-produit__cycle[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.menu-produit__cycle:focus-visible { outline-color: #fff; }
.menu-produit__statut { flex: none; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .5); }
.menu-produit__statut[data-statut="disponible"] { color: var(--clair); }

.menu-produit__titre-tests { margin: 0 0 14px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; color: #fff; }
.menu-produit__liste-tests { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.menu-produit__liste-tests li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--texte-p); }
.menu-produit__liste-tests li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.menu-produit__pieces { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

.menu-voile {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  /* Sortie en 150 ms, entrée en 200 ms : ce qui part s'efface plus vite que ce qui arrive. */
  transition: opacity 150ms var(--courbe), visibility 0s linear 150ms;
}
.menu-ouvert .menu-voile { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 200ms var(--courbe); }

/* Tablette : les grandes entrées rapetissent pour laisser la place aux tests. */
@media (max-width: 1099.98px) {
  .barre .menu-produit__grille { grid-template-columns: minmax(0, .8fr) minmax(250px, 1fr) minmax(0, 1fr); gap: 28px; }
  .menu-produit__explorer a { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-produit, .menu-voile, .nav__chevron { transition: none; }
  .menu-produit { transform: none; }
}
