/* Mix Maison — direction B « le carrousel » : la page prolonge les carrousels
   TikTok. Un seul rouge, fond gris très clair, coins droits, relief à ombre
   dure. Pensée téléphone d'abord (le public vient de TikTok). */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800;900&display=swap');

:root {
  --rouge: #E93116;
  --rouge-texte: #C2290F;   /* le rouge foncé, pour le texte sur fond clair */
  --fond: #F2F0F1;
  --encre: #1F1D1E;
  --gris: #6B6B6B;
  --gris-fonce: #4A4748;
  --blanc: #FFFFFF;
  --large: 620px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr { position: absolute; left: -9999px; }

/* ---------------------------------------------------------- barre du haut */
.barre {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 2px solid var(--encre);
  max-width: var(--large); margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 900; letter-spacing: -0.3px;
  color: var(--encre); text-decoration: none;
}
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 4px; display: block; background: var(--rouge); }
.eq i:nth-child(1) { height: 8px; }
.eq i:nth-child(2) { height: 16px; background: var(--encre); }
.eq i:nth-child(3) { height: 11px; }
.par { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gris); }

/* ------------------------------------------------------------- structures */
main { max-width: var(--large); margin: 0 auto; }
.bloc { padding: 28px 20px 0; }
.sur { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--gris); }
.sur.rouge { color: var(--rouge-texte); }
.filet { height: 2px; background: var(--encre); margin-bottom: 16px; }

h1 {
  margin: 0 0 20px; font-size: clamp(34px, 10vw, 46px); line-height: 0.98;
  font-weight: 900; letter-spacing: -1.6px; text-transform: uppercase;
}
h1 em { font-style: normal; color: var(--rouge); }
.h2 { margin: 0 0 18px; font-size: clamp(26px, 7.5vw, 32px); line-height: 1.04; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; }
.p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gris-fonce); }
.petit { font-size: 12px; line-height: 1.45; color: var(--gris); margin: 14px 0 0; }
.petit.centre { text-align: center; }

/* ------------------------------------------------------------- le lecteur */
.lecteur {
  background: var(--encre); border: 3px solid var(--encre);
  box-shadow: 8px 8px 0 var(--encre); padding: 18px 16px; margin-right: 8px;
}
.onglets { display: flex; gap: 8px; margin-bottom: 14px; }
.ong {
  flex: 1; padding: 11px 0; font-family: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px; background: transparent; color: #C9C5C6;
  border: 1px solid #6B6B6B; cursor: pointer; min-height: 44px;
}
.ong.actif { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.rangee { display: flex; align-items: center; gap: 14px; }
.play {
  width: 52px; height: 52px; flex-shrink: 0; border: none;
  background: var(--rouge); color: #fff; font-size: 19px; cursor: pointer;
  font-family: inherit;
}
.onde { display: flex; align-items: center; gap: 2px; height: 42px; flex: 1; overflow: hidden; }
.onde i { width: 3px; display: block; background: #6B6B6B; }
.onde i.fort { background: var(--rouge); }
.onde.joue i { animation: pulse 0.9s ease-in-out infinite alternate; }
.onde.joue i:nth-child(even) { animation-delay: 0.25s; }
@keyframes pulse { from { transform: scaleY(0.6); } to { transform: scaleY(1); } }
.sous { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: #C9C5C6; }
.sous b { color: #fff; }

/* --------------------------------------------------------------- le don */
.carte-cadeau {
  background: var(--blanc); border: 3px solid var(--encre);
  box-shadow: 10px 10px 0 var(--rouge); padding: 22px 18px; margin-right: 8px;
}
.carte-cadeau h2 {
  margin: 0 0 12px; font-size: clamp(24px, 7vw, 30px); line-height: 1.06;
  font-weight: 900; letter-spacing: -0.9px; text-transform: uppercase;
}
form { margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
input[type=email] {
  width: 100%; border: 2px solid var(--encre); padding: 15px 14px;
  font-size: 16px; font-family: inherit; background: var(--fond); color: var(--encre);
}
input[type=email]:focus { outline: 3px solid var(--rouge); outline-offset: 2px; }
button[type=submit] {
  width: 100%; border: none; background: var(--rouge); color: #fff;
  padding: 17px 0; font-size: 15px; font-weight: 900; letter-spacing: 0.5px;
  font-family: inherit; cursor: pointer; min-height: 44px;
}
button[type=submit]:disabled { opacity: 0.6; cursor: default; }
.msg { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--rouge-texte); min-height: 18px; }
.msg.clair { color: #fff; }

/* ----------------------------------------------------------- les chiffres */
.chiffres { display: flex; border: 2px solid var(--encre); background: var(--blanc); }
.chiffres div { flex: 1; padding: 14px 6px; text-align: center; border-right: 2px solid var(--encre); }
.chiffres div:last-child { border-right: none; }
.chiffres b { display: block; font-size: 22px; font-weight: 900; color: var(--rouge); }
.chiffres span { display: block; font-size: 10px; letter-spacing: 1px; color: var(--gris); margin-top: 3px; }

/* ------------------------------------------------------ problème/solution */
.paires { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.paires li { display: flex; gap: 12px; align-items: flex-start; }
.x { width: 22px; flex-shrink: 0; color: #9A9698; font-size: 18px; font-weight: 900; line-height: 1.3; }
.paires b { display: block; font-size: 15px; font-weight: 800; color: var(--gris); line-height: 1.3; }
.paires i { display: block; font-style: normal; font-size: 14px; font-weight: 800; color: var(--rouge-texte); margin-top: 3px; line-height: 1.35; }

/* -------------------------------------------------------------- les cartes */
.carte {
  background: var(--blanc); border: 2px solid var(--encre);
  box-shadow: 6px 6px 0 var(--encre); padding: 15px 16px; margin: 0 8px 14px 0;
}
.eti { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--rouge-texte); }
.carte h3 { margin: 6px 0 5px; font-size: 16px; font-weight: 900; line-height: 1.2; }
.d { margin: 0; font-size: 13px; color: var(--gris-fonce); line-height: 1.4; }

/* ------------------------------------------------------------- la bande */
.bande { background: var(--rouge); color: #fff; padding: 30px 20px; margin-top: 34px; }
.bande form { max-width: var(--large); margin: 16px auto 0; }
.h2b {
  max-width: var(--large); margin: 0 auto; font-size: clamp(24px, 7vw, 30px);
  line-height: 1.04; font-weight: 900; letter-spacing: -0.9px; text-transform: uppercase;
}
.bande input[type=email] { border: none; background: #fff; }
.bande button[type=submit] { background: var(--encre); }
.bande .msg { max-width: var(--large); margin: 10px auto 0; }

/* ---------------------------------------------------------------- le pied */
.pied {
  max-width: var(--large); margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid var(--encre); font-size: 12px; color: var(--gris);
}
.pied a { color: var(--rouge-texte); font-weight: 800; text-decoration: none; }
.pied a:hover { color: var(--rouge); text-decoration: underline; }
.mentions { max-width: var(--large); margin: 0 auto; padding: 0 20px 26px; font-size: 11px; color: var(--gris); }
.mentions a { color: var(--gris); }

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

/* ------------------------------------------ pages merci et confidentialité */
.contenu { max-width: var(--large); margin: 0 auto; padding: 28px 20px 0; }
.contenu h1 {
  margin: 0 0 16px; font-size: clamp(30px, 8.5vw, 40px); line-height: 1;
  font-weight: 900; letter-spacing: -1.4px; text-transform: uppercase;
}
.contenu h1 em { font-style: normal; color: var(--rouge); }
.texte { font-size: 15px; line-height: 1.55; color: var(--gris-fonce); max-width: 60ch; }
.texte p { margin: 0 0 14px; }
.texte h2 { font-size: 17px; font-weight: 900; margin: 22px 0 8px; color: var(--encre); }
.texte a { color: var(--rouge-texte); }

/* le bloc des questions */
.questions {
  background: var(--blanc); border: 3px solid var(--encre);
  box-shadow: 10px 10px 0 var(--rouge); padding: 22px 18px; margin: 22px 8px 0 0;
}
.questions .t { margin: 0 0 4px; font-size: 18px; font-weight: 900; line-height: 1.2; }
.questions .s { margin: 0 0 20px; font-size: 13px; color: var(--gris); }
fieldset.q { border: none; padding: 0; margin: 0 0 22px; }
fieldset.q legend { padding: 0; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; }
fieldset.q legend span { color: var(--gris); font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: inline-block; padding: 11px 14px; border: 2px solid var(--encre);
  background: var(--fond); font-size: 14px; font-weight: 700; line-height: 1.1;
  min-height: 44px; display: flex; align-items: center;
}
.opt input:checked + span { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.opt input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.autre-champ {
  width: 100%; margin-top: 10px; border: 2px solid var(--encre); padding: 13px 14px;
  font-size: 16px; font-family: inherit; background: var(--fond); color: var(--encre);
}
.autre-champ:focus { outline: 3px solid var(--rouge); outline-offset: 2px; }
.btn {
  width: 100%; border: none; background: var(--rouge); color: #fff; padding: 17px 0;
  font-size: 15px; font-weight: 900; letter-spacing: 0.5px; font-family: inherit;
  cursor: pointer; min-height: 44px;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.msg.ok { color: #1F1D1E; }
.contact { max-width: var(--large); margin: 0 auto; padding: 26px 20px 0; }
.contact b { display: block; font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--rouge-texte); margin-bottom: 10px; }
.liens { display: flex; flex-wrap: wrap; gap: 8px; }
.liens a {
  border: 2px solid var(--encre); padding: 10px 14px; font-size: 14px; font-weight: 800;
  color: var(--encre); text-decoration: none; min-height: 44px; display: flex; align-items: center;
}
.liens a:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }

/* ------------------------------------------------ la bande des logiciels */
.marques { border: 2px solid var(--encre); background: var(--blanc); padding: 14px 12px; margin-right: 8px; }
.marques p { margin: 0 0 10px; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--gris); text-align: center; }
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pastilles span { border: 1px solid var(--encre); padding: 6px 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }

/* --------------------------------------------- les cartes à logo (5) */
.carte-l {
  display: flex; gap: 14px; align-items: center;
  background: var(--blanc); border: 2px solid var(--encre);
  box-shadow: 6px 6px 0 var(--encre); padding: 14px; margin: 0 8px 14px 0;
}
.vign {
  width: 130px; height: 130px; flex-shrink: 0; background: #141314;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vign img { max-width: 104px; max-height: 104px; width: auto; height: auto; }
.vign svg { width: 130px; height: 130px; display: block; }
.carte-l .dit { min-width: 0; }
.carte-l h3 { margin: 5px 0 5px; font-size: 17px; font-weight: 900; line-height: 1.15; }

/* ------------------------------------------------------- qui je suis */
.qui {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--blanc); border: 2px solid var(--encre);
  box-shadow: 8px 8px 0 var(--rouge); padding: 16px; margin-right: 8px;
}
.portrait { width: 116px; height: 176px; flex-shrink: 0; object-fit: cover; border: 2px solid var(--encre); }
.qui h3 { margin: 0 0 8px; font-size: 20px; font-weight: 900; line-height: 1.15; }
.qui .d + .d { margin-top: 8px; }

@media (max-width: 400px) {
  .vign { width: 104px; height: 104px; }
  .vign img { max-width: 84px; max-height: 84px; }
  .vign svg { width: 104px; height: 104px; }
}

/* Consentement sous le bouton d'inscription (30/09/2026) : une ligne, discrète. */
.consent { font-size: 11px; line-height: 1.4; color: var(--gris); margin: 8px 0 0; }
.consent a { color: inherit; }
.consent.clair { color: rgba(255,255,255,0.75); }

/* Bandeau de prévente (30/09/2026). Tout en CSS : aucun coût, aucun script. */
.bandeau { position: relative; display: block; height: 40px; overflow: hidden; text-decoration: none; color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .4px; }
.bandeau .bv { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 44px 0 16px; white-space: nowrap; font-size: 11px; animation: bandeau-alt 12s infinite; }
.bandeau .bv-a { background: var(--rouge, #E93116); }
.bandeau .bv-b { background: var(--encre, #1F1D1E); animation-delay: -6s; }
.bandeau .pastille { background: var(--rouge, #E93116); padding: 3px 6px; font-size: 10px; letter-spacing: 1.5px; flex-shrink: 0; }
.bandeau .souris { position: absolute; right: 14px; top: 10px; animation: bandeau-souris 3s ease-in-out infinite; }
.bandeau .onde-clic { position: absolute; left: -6px; top: -6px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; opacity: 0; animation: bandeau-onde 3s ease-out infinite; }
@keyframes bandeau-alt { 0%, 46% { opacity: 1; transform: translateY(0); } 50%, 96% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes bandeau-souris { 0% { transform: translate(18px, 10px); } 45% { transform: translate(0, 0); } 52% { transform: translate(0, 0) scale(.82); } 60%, 100% { transform: translate(0, 0) scale(1); } }
@keyframes bandeau-onde { 0%, 50% { opacity: 0; transform: scale(.4); } 55% { opacity: .9; } 80%, 100% { opacity: 0; transform: scale(1.8); } }
/* Karl (30/09) : sur son PC le bandeau restait figé — Windows avec les « effets
   d'animation » coupés déclenche prefers-reduced-motion. On garde l'alternance,
   en simple fondu (sans glissement), et la souris reste. */
@keyframes bandeau-fondu { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bandeau .bv { animation-name: bandeau-fondu; } }
@media (max-width: 380px) { .bandeau .bv { font-size: 10px; letter-spacing: .2px; padding-left: 12px; } }

/* Barre de prévente collée en bas (30/09/2026). */
.barre-prev { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--rouge, #E93116); color: #fff; text-decoration: none;
  border-top: 3px solid var(--encre, #1F1D1E); font-size: 13px; transform: translateY(110%); transition: transform .35s ease; }
.barre-prev.visible { transform: translateY(0); }
.barre-prev .bp-texte b { font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.barre-prev .bp-bouton { flex-shrink: 0; background: var(--encre, #1F1D1E); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 9px 14px; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
body { padding-bottom: 64px; }

/* Lien « Espace élève » (30/09/2026) */
.droite { display: flex; align-items: center; gap: 14px; }
.lien-eleve { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: var(--encre); text-decoration: none;
  border: 2px solid var(--encre); padding: 6px 9px; white-space: nowrap; }
.lien-eleve:hover { background: var(--encre); color: #fff; }
@media (max-width: 420px) { .droite .par { display: none; } }
.pied .pied-liens { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* Accueil : teaser du pack + bouton vers les offres (01/10/2026). */
.teaser-accueil { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; background: var(--encre, #1F1D1E); border: 4px solid var(--encre, #1F1D1E); box-shadow: 6px 6px 0 var(--encre, #1F1D1E); margin: 16px 0 20px; }
.bouton-offres { display: block; text-align: center; background: var(--rouge); color: #fff; text-decoration: none; font-weight: 900; letter-spacing: 1px; padding: 16px; min-height: 44px; border: 3px solid var(--encre, #1F1D1E); box-shadow: 6px 6px 0 var(--encre, #1F1D1E); }

/* Accueil court (01/10/2026) : la ligne « bientôt ». */
.bientot { margin-top: 18px; font-size: 14px; padding: 10px 12px; border-left: 4px solid var(--rouge); background: #fff; }
.consent.qui-petit { margin: 0 0 28px; }

/* ============ VERSION ORDINATEUR (01/10/2026) — Karl : « sur PC le site reste au format
   mobile ». Sous 960 px, rien ne change. Au-dessus : page plus large, accueil en
   2 colonnes (la vidéo à gauche, le choix et l'inscription à droite, tout dans le
   1er écran), prévente avec les 2 formations côte à côte. Règle NN/g : on ne
   transpose pas la mise en page mobile telle quelle sur ordinateur (§69). */
.bloc-cadeau { margin-top: 40px; }
@media (min-width: 960px) {
  :root { --large: 1100px; }
  main .bloc, .contenu { padding-left: 32px; padding-right: 32px; }
  h1 { font-size: 64px; }
  .grille-accueil { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .grille-accueil .teaser-accueil { max-width: 100%; max-height: 62vh; width: auto; margin-left: 0; }
  .grille-accueil .choix { margin-right: 8px; }
  .bloc-cadeau { margin-top: 30px; }
  .grille-accueil .etape:first-child { margin-top: 0; }
  .qui-petit { max-width: 70ch; }
}
