/* Landing « Vidéos verticales » — MA'COM. Mobile d'abord.
   Feuille autonome : elle ne dépend pas de /css/style.css et ne le modifie pas. */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/rubik-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/videos-verticales/fonts/montserrat-latin-var.woff2") format("woff2");
}

/* Polices de repli calées sur les métriques, pour limiter le décalage au chargement */
@font-face {
  font-family: "Rubik Repli";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 105%;
  ascent-override: 89%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Montserrat Repli";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 112%;
  ascent-override: 86%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --rouge: #ff0000;
  --rouge-encre: #da0000;
  --rouge-profond: #870000;
  --encre: #121010;
  --encre-douce: #5e5757;
  --fond: #ffffff;
  --fond-doux: #f6f4f4;
  --trait: #ebe6e6;
  --titre: "Rubik", "Rubik Repli", system-ui, sans-serif;
  --texte: "Montserrat", "Montserrat Repli", system-ui, sans-serif;
  --g: clamp(1.25rem, 4.5vw, 2.5rem);
  --bloc: clamp(3.5rem, 9vw, 6.5rem);
  --max: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--rouge-encre);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--rouge-encre);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--g);
}

.section {
  padding-block: var(--bloc);
}

.section + .section {
  border-top: 1px solid var(--trait);
}

/* Texte courant : 60 caractères par ligne au plus */
.texte,
.chapo {
  max-width: 60ch;
}

.chapo {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

/* ---------- Titres en plein et délié ---------- */

.titre {
  font-family: var(--titre);
  font-size: clamp(2rem, 7.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.titre strong {
  color: var(--rouge);
  font-weight: 900;
}

/* Titres en deux phrases : le passage en plein commence une nouvelle ligne */
.titre--deux strong {
  display: block;
}

.etiquette {
  display: block;
  margin-bottom: 1rem;
  color: var(--rouge-encre);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 99rem;
  background: var(--rouge-encre);
  color: var(--fond);
  font-family: var(--texte);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--rouge-profond);
}

.btn[disabled] {
  background: var(--encre-douce);
  cursor: progress;
}

.btn--petit {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
}

.lien {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.ico {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.tete__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo img {
  width: 7rem;
  height: auto;
}

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

.hero {
  padding-block: clamp(1.5rem, 5vw, 4rem) var(--bloc);
}

.hero__grille {
  display: grid;
  gap: 2.5rem;
}

.hero .titre {
  font-size: clamp(2.3rem, 9.6vw, 4.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

/* ---------- Vidéos 9:16 ---------- */

.clips {
  display: flex;
  gap: 0.75rem;
  margin-inline: calc(var(--g) * -1);
  padding-inline: var(--g);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--g);
  scrollbar-width: thin;
}

.clip {
  flex: 0 0 62%;
  scroll-snap-align: start;
}

.clip__cadre {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  background: var(--encre);
  aspect-ratio: 9 / 16;
}

/* Visible tant que la vidéo et son image d'aperçu ne sont pas en place */
.clip__attente {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--fond);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.clip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip__son {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--encre);
  color: var(--fond);
  cursor: pointer;
}

.clip.est-pret .clip__son {
  display: grid;
}

.clip__son .ico--on,
.clip__son[aria-pressed="true"] .ico--off {
  display: none;
}

.clip__son[aria-pressed="true"] .ico--on {
  display: block;
}

.clip figcaption {
  margin-top: 0.6rem;
  color: var(--encre-douce);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Preuves ---------- */

.preuves {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
}

.preuves ul {
  display: grid;
}

.preuves li {
  padding-block: 1.25rem;
}

.preuves li + li {
  border-top: 1px solid var(--trait);
}

.preuves strong {
  display: block;
  color: var(--rouge);
  font-family: var(--titre);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.preuves span {
  display: block;
  max-width: 24ch;
  margin-top: 0.5rem;
  color: var(--encre-douce);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.section__tete {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* ---------- Témoignage (masqué tant qu'il est vide) ---------- */

.temoignage blockquote {
  max-width: 40ch;
  font-family: var(--titre);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
}

.temoignage figcaption {
  margin-top: 1rem;
  font-weight: 700;
}

/* ---------- Étapes ---------- */

.etapes {
  display: grid;
}

.etape {
  padding-block: 1.5rem;
  border-top: 1px solid var(--trait);
}

.etape__num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--rouge);
  font-family: var(--titre);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.etape h3 {
  margin-bottom: 0.4rem;
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---------- Formules ---------- */

.formules {
  display: grid;
}

.formule {
  display: flex;
  flex-direction: column;
  padding-block: 1.75rem;
  border-top: 1px solid var(--trait);
}

/* Le seul encadré de l'écran : la formule pour commencer */
.formule--mise {
  padding: 1.75rem 1.5rem;
  border-top: 0;
  border-radius: 1rem;
  background: var(--fond-doux);
}

.formule--mise + .formule {
  border-top: 0;
}

.formule .etiquette {
  margin-bottom: 0.75rem;
}

.formule h3 {
  font-family: var(--titre);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.formule__prix {
  margin-top: 0.75rem;
  color: var(--encre-douce);
}

.formule__prix strong {
  color: var(--encre);
  font-family: var(--titre);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.formule ul {
  margin-block: 1rem 1.5rem;
}

.formule li {
  display: flex;
  gap: 0.6rem;
  padding-block: 0.3rem;
}

.formule li .ico,
.inclus .ico {
  margin-top: 0.15rem;
  color: var(--rouge-encre);
}

.formule .lien {
  margin-top: auto;
}

.essai {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
}

.essai p {
  max-width: 60ch;
  font-weight: 600;
}

.essai .lien {
  margin-top: 0.75rem;
}

.inclus {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.inclus h3 {
  margin-bottom: 1rem;
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.inclus ul {
  display: grid;
  column-gap: 2.5rem;
}

.inclus li {
  display: flex;
  gap: 0.6rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--trait);
}

.mention-prix {
  max-width: 60ch;
  margin-top: 1.5rem;
  color: var(--encre-douce);
  font-size: 0.875rem;
}

/* ---------- Questions fréquentes ---------- */

.faq {
  max-width: 48rem;
  border-bottom: 1px solid var(--trait);
}

.faq details {
  border-top: 1px solid var(--trait);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq summary .ico {
  color: var(--rouge-encre);
  transition: transform 0.25s ease;
}

.faq details[open] summary .ico {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 60ch;
  padding-bottom: 1.25rem;
}

/* ---------- Qui je suis ---------- */

.moi {
  display: grid;
  gap: 2rem;
}

/* Le seul dégradé autorisé : rouge-profond vers rouge, derrière le portrait */
.moi__portrait {
  max-width: 22rem;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--rouge-profond), var(--rouge));
  aspect-ratio: 4 / 5;
}

.moi__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moi .texte {
  margin-top: 1.25rem;
}

/* ---------- Formulaire ---------- */

.contact__grille {
  display: grid;
  gap: 2rem;
}

.form {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: 1rem;
  background: var(--fond-doux);
}

.champs {
  display: grid;
  gap: 1rem;
}

.champ label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.champ label span {
  color: var(--encre-douce);
  font-weight: 500;
}

.champ input,
.champ select,
.champ textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--encre-douce);
  border-radius: 0.6rem;
  background: var(--fond);
  color: var(--encre);
  font-size: 1rem;
}

.champ select {
  padding-right: 2.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  background-repeat: no-repeat;
}

.champ textarea {
  min-height: 7rem;
  resize: vertical;
}

/* Champ pot de miel anti-spam : invisible pour les humains */
.miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.consentement input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--rouge-encre);
}

.form .btn {
  width: 100%;
  margin-top: 1.25rem;
}

.form__etat {
  margin-top: 1rem;
  font-weight: 700;
}

.form__etat:empty {
  display: none;
}

.form__etat--ok,
.form__etat--erreur {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--rouge-encre);
  background: var(--fond);
}

.coordonnees {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.coordonnees a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

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

.pied {
  padding-block: 2.5rem 6rem;
  border-top: 1px solid var(--trait);
  font-size: 0.875rem;
}

.pied__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.pied a {
  color: var(--encre);
}

.pied p {
  color: var(--encre-douce);
}

/* ---------- Bouton fixé en bas de l'écran (mobile) ---------- */

.collant {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  padding: 0.75rem var(--g) calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--trait);
  background: var(--fond);
  transition: transform 0.25s ease, visibility 0s linear 0s;
}

.collant .btn {
  width: 100%;
}

.collant.est-cache {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- À partir de 600 px ---------- */

@media (min-width: 37.5em) {
  .etiquette {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .clip {
    flex-basis: 40%;
  }

  .champs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .champ--large {
    grid-column: 1 / -1;
  }

  .inclus ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- À partir de 768 px : plus de bouton fixé ---------- */

@media (min-width: 48em) {
  .collant {
    display: none;
  }

  .pied {
    padding-bottom: 2.5rem;
  }

  .logo img {
    width: 8rem;
  }

  .preuves ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preuves li {
    padding: 0 2rem;
  }

  .preuves li:first-child {
    padding-left: 0;
  }

  .preuves li + li {
    border-top: 0;
    border-left: 1px solid var(--trait);
  }

  .etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

/* ---------- À partir de 960 px ---------- */

@media (min-width: 60em) {
  .hero__grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: 3.5rem;
  }

  .clips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .formules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .formule {
    padding: 2rem 2rem;
    border-top: 0;
  }

  .formule + .formule {
    border-left: 1px solid var(--trait);
  }

  .formule--mise + .formule {
    border-left: 0;
  }

  .moi {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
    column-gap: 4rem;
  }

  .contact__grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    column-gap: 4rem;
  }
}
