/* NexApps · feuille de style du site
   Les couleurs de marque viennent de tokens.css (chargé avant ce fichier). */

/* ==========================================================================
   1. Variables complémentaires
   ========================================================================== */

:root {
  --lexique-jaune: #FFD66B;        /* Couleur provisoire de Lexique */
  --nex-texte-sur-sombre: #C6D3D5; /* Texte secondaire sur fond pétrole */
  --nex-creme: #FFFDF5;            /* Fond de la carte « Mot du jour » */
  --nex-petrole-clair: #0B2D34;    /* Flèche discrète sur fond pétrole */
  --legal-texte: #1F2937;          /* Texte des pages légales */
  --legal-bordure: #E5E7EB;        /* Filet sous l'en-tête des pages légales */

  --largeur-max: 1280px;
  --marge-page: 32px;
}

/* ==========================================================================
   2. Polices (auto-hébergées, licence OFL dans assets/fonts/)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-700.woff2") format("woff2");
}

/* ==========================================================================
   3. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--nex-police-texte);
  color: var(--nex-petrole);
  background: var(--nex-ecume);
  overflow-x: clip; /* évite tout défilement horizontal (bandeau incliné) */
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--nex-petrole);
}

a:hover {
  color: var(--nex-lagon-fonce);
}

/* Focus visible sur tout ce qui est cliquable */
:focus-visible {
  outline: 3px solid var(--nex-lagon-fonce);
  outline-offset: 3px;
}

/* Sur fond pétrole, le contour passe en lagon vif ; sur fond lagon vif, en pétrole */
.pied :focus-visible,
.carte-secrete :focus-visible {
  outline-color: var(--nex-lagon-vif);
}

.rejoindre :focus-visible {
  outline-color: var(--nex-petrole);
}

/* Pages légales : fond blanc */
.page-legale {
  background: var(--nex-blanc);
}

/* ==========================================================================
   4. Bandeau du haut
   ========================================================================== */

.bandeau-haut {
  display: block;
  padding: 12px 16px;
  background: var(--nex-petrole);
  color: var(--nex-blanc);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.bandeau-haut:hover {
  color: var(--nex-blanc);
}

.bandeau-haut__action {
  color: var(--nex-lagon-vif);
  font-weight: 600;
}

.bandeau-haut:hover .bandeau-haut__action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bandeau-haut:focus-visible {
  outline-color: var(--nex-lagon-vif);
  outline-offset: -5px;
}

/* ==========================================================================
   5. En-tête
   ========================================================================== */

.entete {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 22px var(--marge-page);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-legale .entete {
  border-bottom: 1px solid var(--legal-bordure);
}

.entete__logo {
  display: flex;
  align-items: center;
}

.entete__logo img {
  height: 44px;
  width: auto;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--nex-blanc);
  border: 1.5px solid var(--nex-petrole);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.menu a {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--nex-petrole);
  text-decoration: none;
}

.menu a:hover {
  color: var(--nex-lagon-fonce);
}

.menu .menu__contact,
.menu .menu__contact:hover {
  padding: 10px 20px;
  background: var(--nex-petrole);
  color: var(--nex-blanc);
}

@media (max-width: 640px) {
  .entete {
    flex-direction: column;
    justify-content: center;
  }

  .entete__logo img {
    height: 40px;
  }
}

/* Petits iPhone : le menu reste sur une seule ligne */
@media (max-width: 400px) {
  .menu a {
    padding: 10px 12px;
  }

  .menu .menu__contact,
  .menu .menu__contact:hover {
    padding: 10px 14px;
  }
}

/* ==========================================================================
   6. Éléments communs : boutons, pastilles, ancres
   ========================================================================== */

.bouton {
  display: inline-block;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--nex-petrole);
  color: var(--nex-blanc);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bouton:hover {
  color: var(--nex-blanc);
}

.bouton--grand {
  padding: 17px 28px;
  font-size: 17px;
}

.bouton--ombre {
  box-shadow: 4px 4px 0 var(--nex-lagon);
}

.bouton--contour {
  padding: 15.5px 26.5px;
  background: var(--nex-blanc);
  border: 1.5px solid var(--nex-petrole);
}

.bouton--contour,
.bouton--contour:hover {
  color: var(--nex-petrole);
}

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pastille {
  padding: 8px 14px;
  border: 1.5px solid var(--nex-petrole);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.pastille--blanc {
  background: var(--nex-blanc);
  transform: rotate(-3deg);
}

.pastille--lagon {
  background: var(--nex-lagon-vif);
  transform: rotate(2deg);
}

.pastille--jaune {
  background: var(--lexique-jaune);
  transform: rotate(-1deg);
}

/* Les ancres « Nos apps », « Le studio » et « FAQ » tombent juste sous le haut de l'écran */
.ancre {
  scroll-margin-top: 24px;
}

@media (max-width: 640px) {
  .ancre {
    scroll-margin-top: 16px;
  }
}

/* ==========================================================================
   7. Accueil · Hero
   ========================================================================== */

.hero {
  position: relative;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 48px var(--marge-page) 88px;
}

.hero .pastilles {
  margin-bottom: 32px;
}

.hero__titre {
  position: relative; /* passe devant la grande flèche */
  max-width: 11em;
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(56px, 8.6vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero__accent {
  color: var(--nex-lagon);
}

.hero__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
}

.hero__intro {
  flex: 1 1 420px;
  max-width: 30em;
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  color: var(--nex-ardoise-700);
}

.hero__boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__boutons .bouton--grand {
  padding-block: 18px;
}

.hero__boutons .bouton--contour {
  padding-block: 16.5px;
}

.hero__fleche {
  position: absolute;
  top: 30px;
  right: 2%;
  width: clamp(120px, 16vw, 230px);
  height: auto;
  color: var(--nex-lagon);
  transform: rotate(12deg);
}

/* Téléphone : la flèche se place à droite du titre, sous les pastilles
   (pastilles sur une ligne jusqu'à 480 px de large environ, sur deux lignes en dessous) */
@media (max-width: 640px) {
  .hero__fleche {
    top: 122px;
    right: 20px;
    width: 68px;
  }

  /* Le titre laisse la place à la flèche sur sa droite */
  .hero__titre {
    max-width: calc(100% - 64px);
  }
}

@media (max-width: 480px) {
  .hero__fleche {
    top: 170px;
  }
}

/* ==========================================================================
   8. Accueil · Bandeau défilant
   ========================================================================== */

/* Le cadre coupe ce qui dépasse du bandeau incliné (aucun défilement horizontal,
   y compris sur iPhone). Le padding laisse la place aux coins inclinés. */
.defilant-cadre {
  overflow: hidden;
  margin: -40px 0;
  padding: 40px 0;
}

.defilant {
  margin: 0 -40px;
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--nex-petrole);
  color: var(--nex-blanc);
  transform: rotate(-1.5deg);
}

.defilant__piste {
  display: inline-flex;
  width: max-content;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  animation: defilement 38s linear infinite;
}

.defilant__piste:hover {
  animation-play-state: paused;
}

.defilant__piste p {
  margin: 0;
  padding-right: 0.45em;
}

.defilant__fleche {
  display: inline-block;
  width: 0.62em;
  height: 0.8em;
  margin: 0 0.45em;
  vertical-align: -0.02em;
  transform: rotate(45deg);
  fill: none;
  stroke: var(--nex-lagon-vif);
  stroke-width: 7;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

@keyframes defilement {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .defilant__piste {
    animation: none;
  }
}

/* ==========================================================================
   9. Accueil · Nos apps
   ========================================================================== */

.apps {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 120px var(--marge-page) 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.apps__titre {
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.apps__cartes {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

/* Carte Lexique */
.carte-lexique {
  flex: 2 1 620px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--lexique-jaune);
  border: 2px solid var(--nex-petrole);
  border-radius: 40px;
  box-shadow: 10px 10px 0 var(--nex-petrole);
}

.carte-lexique__texte {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.carte-lexique__tete {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carte-lexique__icone {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
}

.carte-lexique__nom {
  margin: 0 0 2px;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.carte-lexique__statut {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.carte-lexique__description {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.carte-lexique__bouton {
  align-self: flex-start;
}

.carte-lexique__visuel {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.mot-du-jour {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--nex-creme);
  border: 2px solid var(--nex-petrole);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--nex-petrole);
  transform: rotate(3deg);
}

.mot-du-jour__etiquette {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nex-ardoise-500);
}

.mot-du-jour__mot {
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
}

.mot-du-jour__definition {
  font-size: 14px;
  line-height: 1.45;
  color: var(--nex-ardoise-700);
}

/* Carte « App n° 02 » */
.carte-secrete {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  background: var(--nex-petrole);
  color: var(--nex-blanc);
  border-radius: 40px;
}

.carte-secrete__haut {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.carte-secrete__symbole {
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 96px;
  line-height: 0.8;
  color: var(--nex-lagon-vif);
}

.carte-secrete__statut {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--nex-lagon-vif);
  color: var(--nex-petrole);
  font-size: 13px;
  font-weight: 600;
}

.carte-secrete__texte {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carte-secrete__nom {
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.carte-secrete__texte p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--nex-texte-sur-sombre);
}

.carte-secrete__texte a,
.carte-secrete__texte a:hover {
  align-self: flex-start;
  color: var(--nex-lagon-vif);
  font-size: 16px;
  font-weight: 600;
}

/* Formulaire « Être prévenu » */
.prevenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: var(--nex-blanc);
  border: 2px solid var(--nex-petrole);
  border-radius: 28px;
}

.prevenu__label {
  flex: 1 1 280px;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 22px;
}

.prevenu__champ {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 5px;
  background: var(--nex-ecume);
  border: 1.5px solid var(--nex-petrole);
  border-radius: 999px;
}

/* Le contour de focus entoure toute la pilule, pas seulement le champ */
.prevenu__champ:focus-within {
  outline: 3px solid var(--nex-lagon-fonce);
  outline-offset: 3px;
}

.prevenu__champ input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--nex-petrole);
  font: inherit;
  font-size: 16px; /* 16 px minimum : évite le zoom automatique sur iPhone */
}

.prevenu__champ input:focus {
  outline: none;
}

.prevenu__champ input::placeholder {
  color: var(--nex-ardoise-500);
}

.prevenu__bouton {
  padding: 12px 22px;
}

.prevenu__bouton:focus-visible {
  outline-color: var(--nex-lagon-vif);
  outline-offset: -5px;
}

.prevenu__bouton:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Message d'erreur : texte pétrole (lisible) avec un filet rouge */
.prevenu__erreur {
  flex: 1 1 100%;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--nex-erreur);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.prevenu__erreur[hidden] {
  display: none;
}

.prevenu__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nex-ardoise-700);
}

/* Téléphone : la carte « Mot du jour » passe au-dessus, le champ et le bouton s'empilent */
@media (max-width: 640px) {
  .apps {
    padding-top: 64px;
  }

  .carte-lexique__visuel {
    order: -1;
  }

  .mot-du-jour {
    max-width: 100%;
    transform: rotate(-2deg);
  }

  .prevenu__champ {
    flex-direction: column;
    padding: 8px;
    border-radius: 20px;
  }

  .prevenu__champ input {
    flex: 0 0 auto;
    width: 100%;
  }

  .prevenu__bouton {
    width: 100%;
  }
}

/* ==========================================================================
   10. Accueil · Le studio
   ========================================================================== */

/* Petit titre en capitales au-dessus d'un titre de section */
.surtitre {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.studio {
  padding: 48px var(--marge-page);
}

.studio__bloc {
  position: relative;
  overflow: hidden;
  max-width: var(--largeur-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(48px, 8vw, 112px) clamp(28px, 6vw, 96px);
  background: var(--nex-petrole);
  color: var(--nex-blanc);
  border-radius: 48px;
  text-align: center;
}

/* Le contenu passe devant la flèche décorative */
.studio__bloc > :not(.studio__fleche) {
  position: relative;
}

.studio__fleche {
  position: absolute;
  left: -30px;
  bottom: -40px;
  width: 260px;
  height: auto;
  color: var(--nex-petrole-clair);
  transform: rotate(-12deg);
}

.studio .surtitre {
  letter-spacing: 0.12em;
  color: var(--nex-lagon-vif);
}

.studio__titre {
  max-width: 15em;
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.studio__accent {
  color: var(--nex-lagon-vif);
}

.studio__texte {
  max-width: 36em;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--nex-texte-sur-sombre);
}

.studio__pastilles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.studio__pastilles li {
  padding: 8px 14px;
  border: 1.5px solid var(--nex-lagon-vif);
  border-radius: 999px;
  color: var(--nex-lagon-vif);
}

/* ==========================================================================
   11. Accueil · Rejoindre NexApps
   ========================================================================== */

.rejoindre {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 40px var(--marge-page) 72px;
}

.rejoindre__bloc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--nex-lagon-vif);
  border: 2px solid var(--nex-petrole);
  border-radius: 40px;
  box-shadow: 10px 10px 0 var(--nex-petrole);
}

.rejoindre__texte {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rejoindre__titre {
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rejoindre__description {
  max-width: 36em;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.rejoindre__actions {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.rejoindre__email {
  padding-left: 6px;
  font-size: 15px;
  font-weight: 600;
}

/* Sur fond lagon vif, le survol garde le pétrole (le lagon foncé manquerait de contraste) */
.rejoindre__email:hover {
  color: var(--nex-petrole);
}

/* ==========================================================================
   12. Accueil · FAQ
   ========================================================================== */

.faq {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 72px var(--marge-page) 110px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.faq__titre {
  flex: 1 1 320px;
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.faq__liste {
  flex: 2 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  padding: 22px 26px;
  background: var(--nex-blanc);
  border: 2px solid var(--nex-petrole);
  border-radius: 24px;
}

.faq summary {
  position: relative;
  padding-right: 40px; /* place pour le + / − */
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq details p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nex-ardoise-700);
}

.faq details p:has(+ .bouton) {
  margin-bottom: 16px;
}

/* + / − : la barre verticale pivote et se confond avec l'horizontale */
.faq__icone {
  position: absolute;
  top: 50%;
  right: 0;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
}

.faq__icone::before,
.faq__icone::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2.5px;
  margin-top: -1.25px;
  border-radius: 2px;
  background: var(--nex-petrole);
  transition: transform 0.25s ease;
}

.faq__icone::after {
  transform: rotate(90deg);
}

.faq details[open] .faq__icone::after {
  transform: rotate(0deg);
}

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

/* ==========================================================================
   13. Contact · En-tête de page
   ========================================================================== */

.hero--contact {
  padding-bottom: 56px;
}

.hero--contact .pastilles {
  margin-bottom: 28px;
}

.pastille--penchee {
  transform: rotate(-2deg);
}

.hero__accent--insecable {
  white-space: nowrap;
}

.contact__intro {
  max-width: 34em;
  margin-top: 28px;
}

/* Grande flèche à droite sous 900 px ; au-delà, petite flèche dans le titre */
.contact__fleche {
  top: 20px;
  width: clamp(110px, 14vw, 200px);
  transform: rotate(45deg);
}

.contact__fleche-titre {
  display: none;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.18em;
  vertical-align: -0.02em;
  transform: rotate(45deg);
}

@media (min-width: 900px) {
  .contact__fleche {
    display: none;
  }

  .contact__fleche-titre {
    display: inline-block;
  }
}

/* ==========================================================================
   14. Contact · Nos adresses
   ========================================================================== */

.adresses {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--marge-page) 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.carte-adresse {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  background: var(--nex-blanc);
  border: 2px solid var(--nex-petrole);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--nex-petrole);
}

.carte-adresse--lagon {
  background: var(--nex-lagon-vif);
}

.carte-adresse__icone {
  width: 36px;
  height: 36px;
  color: var(--nex-petrole);
}

.carte-adresse__symbole {
  width: 48px;
  height: auto;
}

.carte-adresse__titre {
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.carte-adresse__texte {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--nex-ardoise-700);
}

.carte-adresse--lagon .carte-adresse__texte {
  color: var(--nex-petrole);
}

.carte-adresse__lien {
  align-self: flex-start;
  margin-top: auto;
  font-size: 18px;
  font-weight: 600;
}

.carte-adresse--lagon .carte-adresse__lien:hover {
  color: var(--nex-petrole);
}

.carte-adresse--lagon :focus-visible {
  outline-color: var(--nex-petrole);
}

/* ==========================================================================
   15. Contact · Formulaire et encarts
   ========================================================================== */

.contact-message {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--marge-page) 100px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.formulaire {
  flex: 2 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--nex-blanc);
  border: 2px solid var(--nex-petrole);
  border-radius: 40px;
}

.formulaire__titre {
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.formulaire__duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.formulaire__champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formulaire__champ label {
  font-size: 15px;
  font-weight: 600;
}

.saisie {
  width: 100%;
  padding: 14px 16px;
  background: var(--nex-blanc);
  border: 1.5px solid var(--nex-petrole);
  border-radius: 16px;
  color: var(--nex-petrole);
  font: inherit;
  font-size: 16px; /* 16 px minimum : évite le zoom automatique sur iPhone */
}

.saisie::placeholder {
  color: var(--nex-ardoise-500);
}

.saisie:focus {
  outline: 3px solid var(--nex-lagon-vif);
  outline-offset: 2px;
}

textarea.saisie {
  resize: vertical;
}

.formulaire__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.formulaire__note {
  flex: 1 1 280px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nex-ardoise-700);
}

.formulaire__bouton {
  padding: 17px 30px;
}

.contact-encarts {
  flex: 1 1 300px;
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.encart-instagram {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: var(--nex-petrole);
  color: var(--nex-blanc);
  border-radius: 32px;
}

.encart-instagram__tete {
  display: flex;
  align-items: center;
  gap: 14px;
}

.encart-instagram__icone {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--nex-lagon-vif);
}

.encart-instagram__titre {
  min-width: 0;
  margin: 0;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.encart-instagram__texte {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.encart-instagram p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--nex-texte-sur-sombre);
}

.encart-instagram a,
.encart-instagram a:hover {
  align-self: flex-start;
  color: var(--nex-lagon-vif);
  font-size: 17px;
  font-weight: 600;
}

.encart-instagram :focus-visible {
  outline-color: var(--nex-lagon-vif);
}

.encart-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--nex-blanc);
  border: 2px dashed var(--nex-petrole);
  border-radius: 32px;
}

.encart-faq p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.encart-faq a {
  align-self: flex-start;
  color: var(--nex-lagon-fonce);
  font-size: 16px;
  font-weight: 600;
}

.encart-faq a:hover {
  color: var(--nex-petrole);
}

@media (max-width: 640px) {
  .encart-instagram__titre {
    font-size: 21px;
  }
}

/* ==========================================================================
   16. Pages courtes (merci, 404)
   ========================================================================== */

/* Le pied de page reste en bas de l'écran même si la page est courte */
.page-courte {
  display: flex;
  flex-direction: column;
}

.page-courte main {
  flex: 1;
}

.page-courte .entete {
  width: 100%;
}

.hero--court {
  padding-bottom: 110px;
}

.hero--court .pastilles {
  margin-bottom: 28px;
}

.hero__boutons--seuls {
  margin-top: 32px;
}

.hero__fleche--penchee {
  top: 20px;
  width: clamp(110px, 14vw, 200px);
  transform: rotate(45deg);
}

/* Téléphone : la flèche reste en haut à droite, à côté de la pastille */
@media (max-width: 640px) {
  .hero__fleche--penchee {
    top: 20px;
    bottom: auto;
    width: 96px;
  }
}

/* ==========================================================================
   17. Pages légales
   ========================================================================== */

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px var(--marge-page) 110px;
}

.legal__titre {
  margin: 0;
  text-align: center;
  font-family: var(--nex-police-titres);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.legal .legal__date {
  margin: 12px 0 56px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--nex-ardoise-700);
}

.legal h2 {
  margin: 48px 0 16px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal h3 {
  margin: 28px 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.legal p,
.legal li {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--legal-texte);
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--nex-lagon-fonce);
}

.legal a:hover {
  color: var(--nex-petrole);
}

@media (max-width: 640px) {
  .legal h2 {
    font-size: 18px;
  }

  .legal p,
  .legal li {
    font-size: 16px;
  }
}

/* ==========================================================================
   18. Pied de page
   ========================================================================== */

.pied {
  padding: 40px var(--marge-page);
  background: var(--nex-petrole);
  color: var(--nex-blanc);
}

.pied__contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pied__logo {
  height: 32px;
  width: auto;
}

.pied__liens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.pied__liens a {
  color: var(--nex-blanc);
  text-decoration: none;
}

.pied__liens .pied__lien-discret {
  color: var(--nex-ardoise-300);
}

/* La page en cours ressort en blanc */
.pied__liens .pied__lien-discret[aria-current="page"] {
  color: var(--nex-blanc);
}

.pied__liens .pied__instagram {
  display: flex;
  color: var(--nex-lagon-vif);
}

.pied__instagram svg {
  width: 20px;
  height: 20px;
}

.pied__copyright {
  margin: 0;
  font-size: 13px;
  color: var(--nex-ardoise-300);
}
