/* Style inspiré de guitareacademia.com, aux couleurs du logo (bleu pétrole + orange) */
:root {
  --ink: #052029; --ink-2: #093443; --ink-3: #0e4152;
  --wool: #f3ece2; --wool-2: #e6dccd;
  --orange: #ee9a00;
  --bouton: linear-gradient(90deg, #b5500a, #a8420c); /* plus foncé que le logo : texte blanc lisible (5:1) */
  --mute: rgba(243, 236, 226, .7); --faint: rgba(243, 236, 226, .16);
  --cond: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --rayon: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--wool); font: 17px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
p { margin: 0 0 1em; }
.conteneur { width: min(1180px, 100% - 3rem); margin-inline: auto; }
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; scroll-margin-top: 70px; }

/* Titres */
h1, h2, h3 { margin: 0 0 .6em; }
.h, h1, h2 { font-family: var(--cond); font-variation-settings: "wdth" 70; font-weight: 820; line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; }
.h em, h1 em, h2 em { font-style: italic; color: var(--orange); }
.label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1rem; }
.label::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mute); max-width: 620px; }
.lead b { color: var(--wool); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(5, 32, 41, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--faint); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; line-height: 1.15; }
.marque img { height: 46px; width: auto; background: var(--wool); border-radius: 10px; padding: 4px 6px; }
.marque small { display: block; font-weight: 400; color: var(--mute); font-size: .8rem; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 1.6rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s; }
.bouton:hover { transform: translateY(-2px); }
.bouton-plein { background: var(--bouton); color: #fff; box-shadow: 0 10px 30px -10px rgba(203, 78, 16, .8); }
.bouton-contour { border-color: var(--faint); color: var(--wool); background: rgba(255, 255, 255, .03); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }
.entete .bouton { padding: .6rem 1.1rem; }
@media (max-width: 819px) { .entete .bouton, .marque small { display: none; } }

.deux-colonnes { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1.1fr 1fr; } }
.preuves { display: grid; gap: .6rem; margin: 0 0 1.4rem; }
.visages { display: flex; align-items: center; gap: .9rem; text-decoration: none; font-size: .9rem; color: var(--mute); }
.visages > span { display: flex; }
.visages img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); margin-left: -10px; }
.visages img:first-child { margin-left: 0; }
.visages b, .etoiles b { color: var(--wool); }
.etoiles { display: inline-flex; gap: .6rem; align-items: center; font-size: .9rem; color: var(--mute); text-decoration: none; }
.st { color: var(--orange); letter-spacing: 2px; }
/* Accroche : « 7 de mes élèves » bien visible (pastille, grands visages) */
.hero .visages { gap: 1rem; padding: .5rem 1.2rem .5rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--faint); font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--wool); transition: border-color .2s, background .2s; }
.hero .visages:hover { border-color: var(--orange); background: rgba(238, 154, 0, .1); }
.hero .visages img { width: 56px; height: 56px; margin-left: -14px; border: 3px solid var(--ink-2); }
.hero .visages img:first-child { margin-left: 0; }
.hero .visages p { margin: 0; line-height: 1.3; white-space: nowrap; }
.hero .preuves { justify-items: start; margin: 0; }
.hero .visages b { color: var(--orange); }
.hero .etoiles { font-size: 1rem; padding-left: .6rem; }

/* Accroche reprise de qnvie-exp.com : grand titre, vidéo au centre, preuve + bouton juste dessous */
.hero { position: relative; display: flex; flex-direction: column; overflow-x: clip; padding: clamp(1rem, 3vw, 2rem) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 50% 50%, rgba(238, 154, 0, .14), transparent 70%); }
.hero-titre { text-align: center; margin: 0; position: relative; z-index: 2; }
.hero-grand { display: block; white-space: nowrap; font-size: 1em; line-height: .9; background: linear-gradient(180deg, #5d7a85 0%, #f3ece2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Voiture dessinée : roule sur le haut des lettres puis s'arrête devant la guitare (état final par défaut, donc visible même sans animation) */
.titre-ligne { display: inline-block; position: relative; font-size: 12.5vw; padding-top: .62em; }
.route { position: absolute; left: 0; right: 0; top: 0; height: .76em; pointer-events: none; }
.voiture { position: absolute; bottom: -.03em; left: calc(100% - 1.02em); width: .5em; color: var(--orange); animation: rouler 5.4s ease-in-out .9s backwards; }
/* Looping à mi-parcours : la voiture tourne autour d'un point situé au-dessus d'elle */
.voiture-svg { display: block; width: 100%; transform-origin: 50% -.067em; animation: looping 5.4s ease-in-out .9s backwards; }
.voiture .caisse { animation: cahot .28s ease-in-out 19 alternate .9s; }
.voiture .roue { transform-box: fill-box; transform-origin: center; animation: tourner .35s linear 15 .9s; }
.guitare-dessin { position: absolute; right: 0; bottom: -.04em; height: .66em; color: var(--wool); transform: rotate(6deg); transform-origin: bottom center; }
.note { position: absolute; right: .14em; bottom: .5em; font-size: .15em; color: var(--orange); opacity: 0; animation: note 1.6s ease-out 6.3s forwards; }
.note.n2 { right: -.05em; animation-delay: 6.6s; }
@keyframes rouler { 0% { left: 0; } 38%, 64% { left: 42%; } }
@keyframes looping { 0%, 38% { transform: rotate(0deg); } 64%, 100% { transform: rotate(-360deg); } }
@keyframes tourner { to { transform: rotate(360deg); } }
@keyframes cahot { to { transform: translateY(-1.2px); } }
@keyframes note { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1.4em) rotate(12deg); } }
.hero-avec { display: block; margin-top: -.15em; font-size: clamp(1rem, 2.2vw, 1.8rem); font-weight: 400; text-transform: none; letter-spacing: .02em; color: var(--mute); }
/* Nom en écriture signature, légèrement incliné */
.signature { display: inline-block; font-family: "Mrs Saint Delafield", cursive; font-weight: 400; font-size: 2.6em; line-height: 1; color: var(--orange); transform: rotate(-4deg); margin-left: .1em; vertical-align: -.2em; }
.hero-sous { position: relative; z-index: 20; margin: 0 0 .6rem; text-align: center; font-family: var(--cond); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.7rem); color: var(--orange); font-style: italic; }
/* vidéo mise en avant : au moins 480px de large, plus grande sur les écrans hauts */
.hero-perso { position: relative; z-index: 20; list-style: none; margin: 0 auto 1rem; padding: 0 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hero-perso li { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(238, 154, 0, .55); background: rgba(238, 154, 0, .1); font-weight: 700; font-size: clamp(.9rem, 1.4vw, 1.1rem); }
.hero-perso span { color: var(--orange); }
@media (max-width: 640px) {
  .hero-perso { gap: .4rem; }
  .hero-perso li { padding: .4rem .8rem; font-size: .82rem; }
  .hero .visages { padding-right: .9rem; }
  .hero .visages img { width: 40px; height: 40px; margin-left: -12px; }
  .hero .visages > span { flex: none; }
  .hero .visages p { white-space: normal; font-size: .95rem; }
}
.hero-video { position: relative; z-index: 10; width: clamp(min(480px, 92vw), (100svh - 520px) * 1.78, min(860px, 92vw)); margin: clamp(1rem, 2.5vw, 1.8rem) auto clamp(.8rem, 1.5vw, 1.1rem); }
.magnet { will-change: transform; }
.presentation { position: relative; margin: 0; border-radius: var(--rayon); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--faint); background: #000; }
.presentation video { width: 100%; aspect-ratio: 16 / 9; cursor: pointer; }
.lecture { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 26px 0 10px; white-space: nowrap; border-radius: 999px; border: 0; background: var(--bouton); color: #fff; font: inherit; font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.3rem); cursor: pointer; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7); transition: opacity .3s, transform .3s; }
.lecture .dot { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #a8420c; display: grid; place-items: center; }
.lecture .dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: anneau 2s ease-out infinite; }
@keyframes anneau { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.lecture .dot svg { width: 18px; height: 18px; margin-left: 2px; }
@media (hover: hover) { .lecture:hover { transform: translate(-50%, -50%) scale(1.05); } }
.presentation.lance .lecture { opacity: 0; pointer-events: none; }
.hero-bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; padding: 0 clamp(1.2rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; z-index: 20; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cta-note { font-size: .8rem; color: var(--mute); }
@media (max-width: 640px) { .hero-bas { flex-direction: column; align-items: stretch; } .hero-cta { align-items: stretch; text-align: center; }  }

.marquee.paused .marquee-row { animation-play-state: paused; }

/* Bandeau défilant automatique (contenu doublé dans le HTML) */
.marquee { padding: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; display: grid; gap: 12px; }
.marquee-row { display: flex; gap: 12px; padding-right: 12px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-row + .marquee-row { animation-direction: reverse; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.tile { flex: none; display: grid; place-items: center; height: clamp(72px, 9vw, 120px); padding: 0 clamp(24px, 3.5vw, 48px); border-radius: 16px; background: var(--ink-2); border: 1px solid var(--faint); font-family: var(--cond); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; white-space: nowrap; font-size: clamp(1.2rem, 2.4vw, 2rem); }
.tile:nth-child(4n+2) { background: transparent; }
.tile:nth-child(4n+3) { background: var(--bouton); border-color: transparent; color: #fff; }

/* Apparitions en fondu (classes posées par le script) */
.js .fade { opacity: 0; transform: translate3d(0, var(--y, 30px), 0); transition: opacity .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.js .fade.in { opacity: 1; transform: none; }

/* Sections claires */
.clair { background: var(--wool); color: var(--ink); }
.clair .label, .clair .lead { color: rgba(5, 32, 41, .65); }
.clair .lead b { color: var(--ink); }
.clair h2 em { color: #b5500a; }
.etroit { max-width: 760px; }
.photo-cours { margin: 0; position: relative; }
.photo-cours img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: 0 30px 60px -25px rgba(5, 32, 41, .55); transform: rotate(1.5deg); }
.photo-cours figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(5, 32, 41, .85); color: var(--wool); font-size: .85rem; font-weight: 600; transform: rotate(1.5deg); }

/* Cartes */
/* Carrousel des cours en bref : défilement horizontal aimanté, animé par le script */
.piste { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .4rem .1rem 1rem; }
.piste::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .piste { grid-auto-columns: calc((100% - 1.2rem) / 2); } }
@media (min-width: 1100px) { .piste { grid-auto-columns: calc((100% - 2.4rem) / 3); } }
.diapo { scroll-snap-align: start; transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
@media (hover: hover) { .diapo:hover { transform: translateY(-6px); border-color: var(--orange); } }
/* Styles enseignés : 3 grandes images avec le nom du style en surimpression */
.styles { margin-top: clamp(3rem, 7vw, 5rem); }
.styles-grille { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .styles-grille { grid-template-columns: repeat(3, 1fr); } }
.style { position: relative; margin: 0; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
@media (max-width: 759px) { .style { aspect-ratio: 16 / 10; } }
.style img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.style::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 32, 41, .92) 100%); }
.style figcaption { position: absolute; z-index: 1; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; font-family: var(--cond); font-variation-settings: "wdth" 75; font-weight: 820; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; }
@media (hover: hover) { .style:hover img { transform: scale(1.05); } }
.commandes { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .6rem; }
.fleche, .pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--faint); background: var(--ink-2); color: var(--wool); font: inherit; font-size: 1.1rem; cursor: pointer; }
.fleche:hover, .pause:hover { border-color: var(--orange); }
.pause { font-size: .8rem; margin-left: .4rem; }
.points { display: flex; gap: .5rem; }
.points button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: var(--faint); cursor: pointer; transition: width .3s, background .3s; }
.points button[aria-current] { width: 28px; background: var(--orange); }
.carte { background: var(--ink-2); border: 1px solid var(--faint); border-radius: var(--rayon); padding: 2rem; }
.carte h3 { font-family: var(--cond); font-variation-settings: "wdth" 80; font-size: 1.7rem; text-transform: uppercase; color: var(--orange); line-height: 1; }
.liste { padding-left: 1.2rem; }
.liste li { margin-bottom: .35rem; }
.logo-sap { width: 120px; border-radius: 10px; margin-top: .5rem; }
.petit { font-size: .9rem; color: var(--mute); }

/* Témoignages vidéo */
.reels { display: grid; gap: 1rem; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; margin-top: 2rem; }
@media (min-width: 700px) { .reels { grid-auto-columns: 40%; } }
@media (min-width: 1000px) { .reels { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.reel { margin: 0; scroll-snap-align: start; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--rayon); background: var(--ink-3); }
.reel.paysage video { object-fit: contain; }
.reel q { display: block; margin-top: .9rem; font-weight: 600; line-height: 1.4; quotes: "« " " »"; }
.reel figcaption span { display: block; margin-top: .4rem; font-size: .85rem; color: var(--mute); }
.disclose { display: flex; gap: .8rem; max-width: 640px; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--faint); font-size: .92rem; color: var(--mute); }

/* Avis Google */
.avis-tete { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.avis-tete .st { font-size: 1.4rem; color: #b5500a; }
.avis-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem 1.4rem; align-items: start; margin-bottom: 2.5rem; }
/* Chaque avis sur un post-it (repris de la maquette Primoris) : couleur, inclinaison, bande adhésive plus sombre en haut */
.av { --r: -2deg; --note: #fbf0c0; margin: 0; padding: 1.4rem 1.3rem 1.5rem; background: linear-gradient(rgba(70, 60, 30, .07), transparent 18%), var(--note); border-radius: 2px 2px 14px 2px; box-shadow: 0 8px 16px -8px rgba(60, 50, 30, .35), 0 1px 2px rgba(60, 50, 30, .1); transform: rotate(var(--r)); transition: transform .3s cubic-bezier(.25, 1, .5, 1), box-shadow .3s; }
.av:nth-child(3n+2) { --r: 1.8deg; --note: #d9e8ec; }
.av:nth-child(3n) { --r: -1deg; --note: #f1e3cc; }
.av:nth-child(4n) { --r: 2.4deg; }
.av:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 22px -10px rgba(60, 50, 30, .38), 0 1px 2px rgba(60, 50, 30, .1); }
/* Pose : le post-it arrive d'au-dessus, ombre large, puis se plaque avec un léger rebond (classes posées par le script) */
.avis-grille.drop:not(.in) .av { opacity: 0; }
.avis-grille.drop.in .av { animation: postIt .85s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes postIt {
  0% { opacity: 0; transform: translateY(-56px) rotate(calc(var(--r) * 4)) scale(1.16); box-shadow: 0 34px 38px -12px rgba(60, 50, 30, .3); }
  55% { opacity: 1; transform: translateY(3px) rotate(calc(var(--r) * .6)) scale(.98); box-shadow: 0 2px 4px -2px rgba(60, 50, 30, .3); }
  100% { transform: rotate(var(--r)); box-shadow: 0 8px 16px -8px rgba(60, 50, 30, .35), 0 1px 2px rgba(60, 50, 30, .1); }
}
.av .st { color: #b5500a; font-size: .9rem; }
.av blockquote { margin: .6rem 0 .8rem; line-height: 1.5; }
.av figcaption { font-size: .85rem; color: rgba(5, 32, 41, .6); }
.av figcaption b { color: var(--ink); }

/* Formulaire */
.formulaire { display: grid; gap: 1rem; background: var(--ink-2); border: 1px solid var(--faint); border-radius: var(--rayon); padding: clamp(1.2rem, 4vw, 2.2rem); }
@media (min-width: 700px) { .formulaire .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.formulaire .duo { display: grid; gap: 1rem; }
.formulaire label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 600; }
.formulaire input, .formulaire textarea { font: inherit; color: var(--ink); background: var(--wool); border: 2px solid transparent; border-radius: 12px; padding: .75rem .9rem; width: 100%; }
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire .case { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: var(--mute); }
.formulaire .case input { width: 22px; height: 22px; flex: none; margin-top: .15rem; accent-color: #b5500a; }
.formulaire .bouton { justify-self: start; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.telephone { font-family: var(--cond); font-variation-settings: "wdth" 70; font-weight: 820; font-size: clamp(2rem, 5vw, 3rem); text-decoration: none; display: inline-block; margin: .3rem 0 1rem; }

/* Éléments à compléter avant publication */
.a-valider { border: 2px dashed #e2730a; background: #fff7ee; border-radius: 14px; padding: 1.1rem 1.3rem; color: #8a4a06; margin-top: 1.5rem; }
.a-valider strong { display: block; color: #8a4a06; }

/* Pied de page */
.pied { border-top: 1px solid var(--faint); color: var(--mute); font-size: .9rem; padding: 2rem 0 6rem; }
.pied a { display: inline-block; padding: .6rem .2rem; color: var(--wool); }
@media (min-width: 820px) { .pied { padding-bottom: 2rem; } }

/* Barre d'action mobile */
.barre-mobile { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem; background: rgba(5, 32, 41, .96); border-top: 1px solid var(--faint); z-index: 20; }
.barre-mobile .bouton { padding: .8rem .5rem; }
@media (min-width: 820px) { .barre-mobile { display: none; } }

/* Pages légales */
.texte-legal { max-width: 760px; }
.texte-legal h2 { font-size: 1.6rem; margin-top: 2rem; }
.texte-legal a { color: #b5500a; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .js .fade { opacity: 1; transform: none; } }
