/* ==========================================================================
   Achakar Hills Villas — feuille de style
   --------------------------------------------------------------------------
   1. Polices & variables
   2. Base
   3. Mise en page (container, sections)
   4. Composants communs (surtitre, titres, boutons, images)
   5. Sections, dans l'ordre de la page
      5.1  En-tête / hero
      5.2  Chiffres clés
      5.3  Le projet
      5.4  Atouts
      5.5  La villa (galerie)
      5.6  Bandeau piscine
      5.7  Vidéo
      5.8  Plans
      5.9  Situation
      5.10 Contact & formulaire
      5.11 Pied de page
      5.12 Barre d'actions mobile
   6. Responsive & accessibilité
   ========================================================================== */

/* 1. Polices & variables
   ========================================================================== */

@font-face {
  font-family: "The Seasons";
  src: url("../fonts/the-seasons.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --ink: #16181b;
  --ink-hover: #2a2e34;
  --night: #0e1014;
  --text: #3b3f45;
  --text-muted: #4a4e55;
  --gray: #5c6067;
  --paper: #f5f4f1;
  --sand: #e9e6e0;
  --sand-light: #efece6;
  --cream: #f5f1ea;
  --field: #fafaf8;
  --line: #e2ddd4;
  --line-strong: #bdb6aa;
  --dot: #d9d2c6;
  --gold: #a07e52;
  --gold-hover: #8c6c43;
  --gold-text: #7d5f38;
  --gold-light: #e3c998;
  --focus: #c9a574;
  --navy: #1e3f5e;
  --white: #ffffff;

  /* Polices */
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-display: "The Seasons", "Fraunces", Georgia, serif;
  --font-script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  /* Espacements */
  --gutter: max(16px, 4vw);
}

/* 2. Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

[hidden] {
  display: none !important;
}

/* :where() garde une spécificité nulle : les classes des composants l'emportent */
:where(a) {
  color: var(--gold-text);
}

:where(a:hover) {
  color: var(--ink);
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* 3. Mise en page
   ========================================================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  padding: 120px var(--gutter);
}

.section--projet {
  position: relative;
  padding: 128px var(--gutter) 112px;
}

.section--atouts {
  padding-top: 0;
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  color: var(--white);
  background: var(--ink);
}

.section--navy {
  color: var(--white);
  background: var(--navy);
}

/* En-tête de section : titre à gauche, introduction à droite */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  align-items: flex-end;
  justify-content: space-between;
}

.section-head--tight {
  gap: 24px;
}

.section-head__title {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-head__title--fit {
  flex: 0 1 auto;
}

.section-head__intro {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  max-width: 56ch;
  color: var(--text);
}

/* 4. Composants communs
   ========================================================================== */

/* Surtitre avec filet ("Le projet", "En vidéo"…) */
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.eyebrow--light {
  color: var(--gold-light);
}

.eyebrow__line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.eyebrow--light .eyebrow__line {
  background: var(--gold-light);
}

/* Titres */
.hero-title,
.section-title,
.band-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  font-synthesis: none;
}

.section-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
}

/* Réglages de la police variable Fraunces */
.hero-title,
.section-title,
.band-title,
.stat__value,
.plan-card__title,
.plan-card__area-value,
.form-ok__title,
.lead-form__title {
  font-variation-settings:
    "SOFT" 100,
    "WONK" 0;
  font-optical-sizing: auto;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
}

.btn-gold:hover {
  color: var(--white);
  background: var(--gold-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
}

/* Bouton téléphone de la navigation */
.btn-call {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Bouton WhatsApp du bloc contact */
.btn-whatsapp {
  align-self: flex-start;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 24px;
  letter-spacing: normal;
}

/* Images dans un cadre, avec léger zoom au survol */
.tile {
  margin: 0;
  overflow: hidden;
}

.tile img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.tile:hover img {
  transform: scale(1.04);
}

/* Images de fond plein cadre */
.hero__bg,
.band__bg,
.video__thumb,
.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ligne icône + texte (adresse, téléphones) */
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-row--tight {
  gap: 12px;
}

.info-row__icon {
  flex: none;
  margin-top: 3px;
}

.info-row__icon--phone {
  margin-top: 4px;
}

/* 5.1 En-tête / hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.hero__bg {
  object-position: center 62%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 15, 20, 0.62) 0%,
    rgba(12, 15, 20, 0.05) 30%,
    rgba(12, 15, 20, 0.2) 55%,
    rgba(12, 15, 20, 0.9) 100%
  );
}

/* Navigation */
.topnav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.topnav__logo {
  display: block;
}

.topnav__logo-img {
  display: block;
  width: 190px;
  height: auto;
}

.navlinks {
  display: flex;
  gap: 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.navlink {
  padding: 6px 0;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.navlink:hover {
  color: var(--white);
  border-bottom-color: var(--gold-light);
}

/* Contenu du hero */
.hero__content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-top: auto;
  padding: 0 var(--gutter) 64px;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}

.hero__text {
  flex: 1 1 560px;
  min-width: 0;
}

.hero__eyebrow {
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  max-width: 880px;
  font-size: 88px;
  line-height: 1.02;
}

.hero-title__script {
  font-family: var(--font-script);
  font-size: 1.15em;
  letter-spacing: 0;
  color: var(--gold-light);
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Carte "Villa type" */
.hero-card {
  flex: 0 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  background: rgba(12, 15, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}

.hero-card__key {
  color: rgba(255, 255, 255, 0.75);
}

.hero-card__value {
  font-weight: 600;
}

/* 5.2 Chiffres clés
   ========================================================================== */

.stats {
  padding: 40px var(--gutter);
  color: var(--white);
  background: var(--ink);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px;
  border-left: 1px solid rgba(227, 201, 152, 0.35);
}

.stat__value {
  font-family: var(--font-serif);
  font-size: 50px;
  line-height: 1;
  color: var(--gold-light);
}

.stat__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* 5.3 Le projet
   ========================================================================== */

.projet__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: center;
}

.projet__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.projet__para {
  margin: 0;
  max-width: 58ch;
  color: var(--text);
}

.projet__waves {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-top: 8px;
}

.projet__media {
  position: relative;
  flex: 1 1 560px;
  min-width: 0;
  padding-bottom: 64px;
}

.projet__main {
  width: 88%;
}

.projet__main-img {
  aspect-ratio: 1 / 1;
}

.projet__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border: 8px solid var(--paper);
}

.projet__inset-img {
  aspect-ratio: 4 / 5;
}

/* 5.4 Atouts
   ========================================================================== */

.atouts__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.feat:hover {
  border-color: var(--gold);
}

.feat__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.feat__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* 5.5 La villa (galerie)
   ========================================================================== */

.villa__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Indication "Faites glisser" (mobile uniquement) */
.swipe {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: -28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery__main {
  position: relative;
  flex: 2 1 560px;
  min-width: 0;
}

.gallery__main-img {
  height: 100%;
  min-height: 360px;
  aspect-ratio: 4 / 3;
}

.gallery__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(22, 24, 27, 0.72);
}

.gallery__col {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery__item {
  flex: 1 1 auto;
}

.gallery__img {
  height: 100%;
  aspect-ratio: 4 / 3;
}

/* 5.6 Bandeau piscine
   ========================================================================== */

.band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.band__bg {
  object-position: center 40%;
}

.band__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 15, 20, 0.82) 0%,
    rgba(12, 15, 20, 0.45) 55%,
    rgba(12, 15, 20, 0.1) 100%
  );
}

.band__content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 80px var(--gutter);
}

.band__script {
  margin: 0 0 6px;
  font-family: var(--font-script);
  font-size: 54px;
  line-height: 1;
  color: var(--gold-light);
}

.band-title {
  margin: 0;
  max-width: 640px;
  font-size: 48px;
  line-height: 1.12;
}

/* 5.7 Vidéo
   ========================================================================== */

.video__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.video__intro {
  flex-basis: 380px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.8);
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--night);
}

/* Bouton affiche (remplacé par le lecteur YouTube au clic) */
.video__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.video__shade {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.35);
}

.video__play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}

.video__poster:hover .video__play {
  transform: scale(1.08);
}

/* Lecteur YouTube injecté par js/main.js */
.video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 5.8 Plans
   ========================================================================== */

.plans__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Onglets des niveaux */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--sand-light);
  border: 1px solid var(--line);
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.tab[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(22, 24, 27, 0.5);
}

.tab[aria-selected="false"]:hover {
  color: var(--ink);
  background: var(--white);
}

/* Carte plan : visuel + description */
.plan-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(22, 24, 27, 0.25);
}

.plan-card__visual {
  flex: 1 1 560px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 40px;
  background: var(--sand-light);
}

.plan-card__img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  box-shadow: 0 16px 36px rgba(22, 24, 27, 0.14);
  transition: opacity 0.25s;
}

.plan-card__img.is-fading {
  opacity: 0;
}

.plan-card__note {
  font-size: 12px;
  color: var(--gray);
}

.plan-card__body {
  flex: 1 1 360px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

.plan-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card__counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--gold-text);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--dot);
  transition:
    width 0.25s,
    background 0.25s;
}

.dot.on {
  width: 22px;
  background: var(--gold);
}

.plan-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.plan-card__desc {
  margin: 0;
  color: var(--text);
}

.plan-card__area {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  background: var(--cream);
}

.plan-card__area-value {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-text);
}

.plan-card__area-label {
  font-size: 14px;
  color: var(--gray);
}

/* Boutons précédent / suivant */
.plan-card__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card__prev {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.plan-card__prev:hover {
  background: var(--cream);
  border-color: var(--ink);
}

.plan-card__next {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.plan-card__next:hover {
  background: var(--ink-hover);
}

.plan-card__next-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-card__next-label {
  font-weight: 600;
}

.plan-card__next-icon {
  flex: none;
}

/* Tableau des surfaces */
.plan-card__surfaces {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan-card__surfaces-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
}

.surfaces {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.surfaces th {
  padding: 6px 8px;
  font-weight: 600;
  text-align: left;
  color: var(--gray);
}

.surfaces td {
  padding: 10px 8px;
}

.surfaces .num {
  text-align: right;
}

.surfaces tbody tr {
  border-bottom: 1px solid var(--line);
}

.surfaces tbody tr:last-child,
.surfaces .surfaces__highlight {
  border-bottom: 0;
}

.surfaces__highlight {
  background: var(--cream);
}

.surfaces__highlight td {
  font-weight: 600;
}

.surfaces__count {
  color: var(--gold-text);
}

/* 5.9 Situation
   ========================================================================== */

.situation__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}

.situation__text {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.situation__lead {
  margin: 0;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.85);
}

.situation__waves {
  margin-top: 8px;
}

/* Liste des repères, du nord au sud */
.landmarks {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.landmark {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.landmark__dot {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
}

.landmark__tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* La résidence, mise en avant dans la liste */
.landmark--home {
  margin: 4px 0;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--gold);
}

.landmark__dot--home {
  left: -36px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7px;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(227, 201, 152, 0.3);
}

.landmark__tag--home {
  font-weight: 600;
  color: inherit;
}

/* 5.10 Contact & formulaire
   ========================================================================== */

.contact__card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact__aside {
  position: relative;
  flex: 1 1 400px;
  min-width: 0;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.contact__bg {
  opacity: 0.35;
}

.contact__info {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
  padding: 48px 40px;
}

.contact__title {
  font-size: 52px;
}

.contact__lead {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.85);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: auto;
  padding-top: 16px;
}

.contact__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.contact__phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.contact__form {
  flex: 1 1 520px;
  min-width: 0;
  box-sizing: border-box;
  padding: 48px;
}

/* Message de confirmation */
.form-ok {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
}

.form-ok__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.form-ok__text {
  margin: 0;
  max-width: 44ch;
  color: var(--text);
}

.form-ok__reset {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
}

/* Formulaire */
.lead-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lead-form__title {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field select {
  padding: 0 12px;
}

.field textarea {
  padding: 12px 14px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--gold-text);
}

.lead-form__submit {
  grid-column: 1 / -1;
  min-height: 54px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.lead-form__submit:hover {
  background: var(--ink-hover);
}

.lead-form__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

/* 5.11 Pied de page
   ========================================================================== */

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer__waves {
  padding: 0 var(--gutter);
  background: var(--paper);
}

.footer__waves-img {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 0 auto;
}

.footer__main {
  padding: 72px var(--gutter) 32px;
  border-top: 1px solid var(--gold);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 48px 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  display: block;
}

.footer__logo-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.footer__tagline {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.social:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.footer__col--links {
  gap: 12px;
}

.footer__col--promoter {
  gap: 16px;
}

.footer__heading {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footlink {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.footlink:hover {
  color: var(--gold-light);
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.footer__phone {
  font-weight: 600;
  color: var(--white);
}

.footer__partner {
  display: block;
  align-self: flex-start;
}

.footer__partner-img {
  display: block;
  width: 140px;
  height: auto;
}

.footer__site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.totop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.totop:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* 5.12 Barre d'actions mobile
   ========================================================================== */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px))
    calc(10px + env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  background: rgba(22, 24, 27, 0.96);
  border-top: 1px solid rgba(227, 201, 152, 0.35);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

.mobile-bar__icon {
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-bar__cta {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--gold);
}

/* 6. Responsive & accessibilité
   ========================================================================== */

/* Tablette */
@media (max-width: 860px) {
  .navlinks {
    display: none;
  }

  .hero-title {
    font-size: 46px;
  }

  .section-title {
    font-size: 38px;
  }

  .band-title {
    font-size: 34px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .projet__media {
    padding-bottom: 0;
  }

  .projet__main {
    width: 100%;
  }

  .projet__inset {
    display: none;
  }

  .contact__form {
    padding: 24px;
  }
}

/* Petite tablette : galerie en carrousel, barre d'actions */
@media (max-width: 760px) {
  .swipe {
    display: flex;
  }

  .gallery {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery__col {
    display: contents;
  }

  .gallery > figure,
  .gallery__col > figure {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .gallery img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery__caption {
    font-size: 12px;
  }

  .footer__main {
    padding-bottom: 120px;
  }

  .mobile-bar {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-card {
    display: none;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .btn-call {
    padding: 0 13px;
  }

  .btn-call__text {
    display: none;
  }

  .section-title {
    font-size: 30px;
  }

  .band-title {
    font-size: 28px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .stat {
    padding: 6px 12px;
  }

  .stat:last-child {
    grid-column: 1 / -1;
  }

  .stat__value {
    font-size: 34px;
  }

  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feat {
    gap: 10px;
    padding: 18px;
  }

  .feat svg {
    width: 28px;
    height: 28px;
  }

  .feat__title {
    font-size: 15px;
  }

  .feat__text {
    font-size: 13px;
    line-height: 1.5;
  }

  .gallery__main-img {
    min-height: 0;
  }

  .band {
    min-height: 380px;
  }

  .video__play {
    width: 68px;
    height: 68px;
  }

  .video__play svg {
    width: 26px;
    height: 26px;
  }

  .tabs {
    box-sizing: border-box;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs .tab {
    flex: 0 0 auto;
    padding: 0 16px;
  }

  .plan-card__visual {
    padding: 16px;
  }

  .plan-card__body {
    padding: 24px;
  }

  .plan-card__title {
    font-size: 32px;
  }

  .landmark {
    font-size: 14px;
  }

  .contact__info {
    padding: 32px 24px;
  }

  .contact__form {
    padding: 24px 20px;
  }

  .footer__main {
    padding-top: 48px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Écrans tactiles : pas de zoom au survol */
@media (hover: none) {
  .tile:hover img {
    transform: none;
  }
}

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

  .tile:hover img {
    transform: none;
  }
}
