/* CrushOnMe — site public (charte : branding/final-branding). */
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Variable.ttf') format('truetype'); font-weight: 100 1000; font-display: swap; }

:root {
  --rose: #FF3D8B; --violet: #9B3DFF; --bleu: #2F6BFF; --noir: #141217; --blanc: #FFFFFF;
  --rose-texte: #D4126A; --jaune: #FFD60A; --vert: #15803D;
  --degrade: linear-gradient(155deg, #FF3D8B 0%, #9B3DFF 52%, #2F6BFF 100%);
  --gris: #5B5862; --filet: #E7E4EC; --fond-doux: #F7F4FB;
  --rose-pale: #FFE1EE; --bleu-pale: #DCE7FF; --violet-pale: #EEE1FF; --jaune-pale: #FFF4C2;
  --ombre: 5px 5px 0 var(--noir);
  --largeur: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--noir); background: var(--blanc); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Outfit', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.08; }
.conteneur { width: min(var(--largeur), 100% - 40px); margin: 0 auto; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 2px solid var(--noir); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.entete .logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--rose-texte); }
.langue { border: 2px solid var(--noir); border-radius: 99px; padding: 4px 12px; font-family: 'Outfit'; font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .nav .lien-section { display: none; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 99px; border: 2.5px solid var(--noir);
  font-family: 'Outfit'; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: var(--ombre); background: var(--blanc); color: var(--noir);
  transition: transform .15s ease, box-shadow .15s ease; }
.bouton:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--noir); }
.bouton.rose { background: var(--rose); }
.bouton svg { width: 22px; height: 22px; flex: none; }
.bouton small { display: block; font-family: 'DM Sans'; font-weight: 500; font-size: 11px; line-height: 1.1; opacity: .75; }
.bouton span { line-height: 1.15; text-align: left; }
.bouton.bientot { cursor: default; }
.bouton.bientot:hover { transform: none; box-shadow: var(--ombre); }

/* Héros */
.heros { background: var(--degrade); color: var(--blanc); overflow: hidden; position: relative; border-bottom: 2px solid var(--noir); }
.heros .conteneur { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 72px 0 0; }
.heros h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; }
.heros p.accroche { font-size: clamp(18px, 2vw, 21px); margin-top: 20px; max-width: 30ch; opacity: .96; }
.heros .boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.heros .note { margin-top: 18px; font-size: 14px; opacity: .85; }
.heros .telephones { position: relative; height: 560px; }
.heros .telephones .telephone { position: absolute; width: 250px; }
.heros .telephones .telephone:first-child { left: 8%; top: 24px; transform: rotate(-6deg); }
.heros .telephones .telephone:last-child { right: 6%; top: 70px; transform: rotate(5deg); }
.pastille { position: absolute; border-radius: 50%; border: 3px solid var(--noir); }
@media (max-width: 900px) {
  .heros .conteneur { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .heros .telephones { height: 430px; }
  .heros .telephones .telephone { width: 190px; }
}

/* Téléphone (capture d'écran) */
.telephone { border: 9px solid var(--noir); border-radius: 38px; overflow: hidden; background: var(--noir); box-shadow: 10px 10px 0 var(--noir); aspect-ratio: 600 / 1219; }
.telephone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; }

/* Sections */
section.bloc { padding: 96px 0; }
section.bloc .conteneur { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
section.bloc.inverse .texte { order: 2; }
section.bloc .visuel { display: flex; justify-content: center; gap: 24px; }
section.bloc .visuel .telephone { width: min(280px, 44vw); }
section.bloc .visuel.duo .telephone:last-child { margin-top: 56px; }
.etiquette { display: inline-block; font-family: 'Outfit'; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid var(--noir); border-radius: 99px; padding: 4px 12px; background: var(--blanc); box-shadow: 3px 3px 0 var(--noir); }
section.bloc h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; margin-top: 18px; }
section.bloc p.intro { margin-top: 16px; color: var(--gris); font-size: 18px; max-width: 46ch; }
ul.points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
ul.points li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
ul.points li::before { content: ''; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 2.5px solid var(--noir); background: var(--rose); }
ul.points li:nth-child(2)::before { background: var(--bleu); }
ul.points li:nth-child(3)::before { background: var(--jaune); }
ul.points li:nth-child(4)::before { background: var(--violet); }
.fond-rose { background: var(--rose-pale); }
.fond-bleu { background: var(--bleu-pale); }
.fond-violet { background: var(--violet-pale); }
.fond-jaune { background: var(--jaune-pale); }
section.bloc + section.bloc { border-top: 2px solid var(--noir); }
@media (max-width: 900px) {
  section.bloc { padding: 64px 0; }
  section.bloc .conteneur { grid-template-columns: 1fr; gap: 40px; }
  section.bloc.inverse .texte { order: 0; }
}

/* Cartes sécurité */
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.carte { background: var(--blanc); border: 2.5px solid var(--noir); border-radius: 18px; padding: 18px; box-shadow: var(--ombre); }
.carte h3 { font-size: 18px; font-weight: 800; }
.carte p { font-size: 15px; color: var(--gris); margin-top: 6px; line-height: 1.5; }
@media (max-width: 520px) { .cartes { grid-template-columns: 1fr; } }

/* Bandeau final */
.final { background: var(--degrade); color: var(--blanc); text-align: center; padding: 88px 0; border-top: 2px solid var(--noir); }
.final h2 { font-size: clamp(32px, 4.5vw, 54px); font-weight: 800; }
.final p { margin-top: 14px; font-size: 19px; opacity: .95; }
.final .boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* Pied de page */
.pied { background: var(--noir); color: #CFCBD6; padding: 48px 0 36px; font-size: 15px; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.pied img { height: 28px; width: auto; }
.pied p.signature { margin-top: 12px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; }
.pied nav a { text-decoration: none; color: var(--blanc); font-weight: 600; }
.pied nav a:hover { color: var(--rose); }
.pied .droits { width: 100%; border-top: 1px solid #2D2A33; padding-top: 18px; font-size: 13px; color: #8E8A96; }

/* Pages de texte (légal, support) */
.page-texte { background: var(--fond-doux); padding: 56px 0 88px; }
.page-texte .conteneur { width: min(820px, 100% - 40px); }
.page-texte h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.page-texte .chapo { color: var(--gris); margin-top: 12px; font-size: 18px; }
.page-texte .feuille { background: var(--blanc); border: 2.5px solid var(--noir); border-radius: 22px; box-shadow: 8px 8px 0 var(--noir); padding: clamp(22px, 5vw, 48px); margin-top: 32px; }
.page-texte .feuille h2 { font-size: 28px; font-weight: 800; margin: 44px 0 6px; padding-top: 8px; }
.page-texte .feuille h2:first-child { margin-top: 0; }
.page-texte .feuille h3 { font-size: 20px; font-weight: 800; margin: 30px 0 8px; }
.page-texte .feuille p, .page-texte .feuille li { color: #2E2B33; }
.page-texte .feuille p + p { margin-top: 12px; }
.page-texte .feuille ul, .page-texte .feuille ol { margin: 10px 0 12px 22px; display: grid; gap: 6px; }
.page-texte .feuille code { font-size: .92em; background: var(--fond-doux); padding: 1px 6px; border-radius: 6px; }
.page-texte .feuille a { color: var(--rose-texte); font-weight: 600; }
.page-texte .bascule { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.page-texte .bascule a { text-decoration: none; }
mark.a-completer { background: var(--jaune); padding: 0 4px; border-radius: 4px; }
.etapes { counter-reset: etape; list-style: none; margin: 18px 0 0 !important; display: grid; gap: 14px !important; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.etapes li::before { content: counter(etape); width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--noir); background: var(--rose);
  display: grid; place-items: center; font-family: 'Outfit'; font-weight: 800; color: var(--blanc); }
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 620px) { .contact { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bouton { transition: none; } }
.page-texte .tableau { overflow-x: auto; margin: 14px 0; }
.page-texte table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page-texte th, .page-texte td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.page-texte th { font-family: 'Outfit'; font-weight: 700; border-bottom: 2px solid var(--noir); }
@media (max-width: 900px) { .heros .pastille { display: none; } }

/* Animations de l'accueil (assets/js/animations.js) : le haut de page attend GSAP pour éviter un flash. */
.heros h1 .mot { display: inline-block; }
.anim .heros h1 .mot, .anim .heros .accroche, .anim .heros .boutons > *, .anim .heros .note,
.anim .heros .telephone, .anim .heros .pastille { visibility: hidden; }
.heros .telephone { will-change: transform; }
