/* elricdenoblet.com — même langage visuel qu'Atome : noir, cartes grises, blanc, pas de couleur d'accent */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;                         /* fond noir pur */
  --bg2: #1C1C1E;                     /* cartes */
  --bg3: #2C2C2E;                     /* tuiles et champs dans les cartes */
  --border: rgba(255, 255, 255, .08); /* bordures très fines */
  --text: #fff;
  --text2: rgba(255, 255, 255, .6);   /* texte secondaire */
  --text3: rgba(255, 255, 255, .35);  /* labels, texte discret */
  --radius: 18px;                     /* grandes cartes */
  --radius-sm: 12px;                  /* tuiles, champs */
  --max: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "ss03"; /* Inter : variantes plus nettes */
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* En-tête : verre dépoli noir, comme la barre latérale d'Atome */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--text2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg3); }

/* Titres : gras et serrés */
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 600; }
/* Surtitre : petites majuscules grises, comme les labels d'Atome (ÂGE, PROFESSION…) */
.eyebrow { color: var(--text3); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--text2); max-width: 620px; text-wrap: pretty; }
.lead strong { color: var(--text); font-weight: 500; }

/* Sections */
section { padding: clamp(64px, 10vw, 120px) 0; }
.hero { padding-top: clamp(88px, 14vw, 160px); }

/* Boutons : pilule blanche (principal) ou grise (secondaire) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  background: var(--text); color: #000;
  font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--bg3); color: var(--text2); }
.btn.ghost:hover { color: var(--text); opacity: 1; }

/* Les deux parcours de l'accueil */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 56px; }
.path {
  display: block; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, #232325, var(--bg2));
  border: 1px solid var(--border);
  text-decoration: none; transition: border-color .25s;
}
.path:hover { border-color: rgba(255, 255, 255, .2); }
.path .eyebrow { margin-bottom: 12px; }
.path p { color: var(--text2); margin: 0 0 28px; }
.path .arrow {
  display: inline-flex; padding: 9px 18px; border-radius: 999px;
  background: var(--text); color: #000; font-size: 15px; font-weight: 600;
}

/* Grilles et cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 40px; }
.card {
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, #232325, var(--bg2));
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text2); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* Emplacements photo (à remplacer par les vraies images) */
.photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text3); font-size: 14px;
}
.photo.wide { aspect-ratio: 16 / 9; }

/* Texte à compléter */
.todo { color: var(--text3); font-style: italic; }

/* Formulaire newsletter */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 520px; }
.signup input[type="email"] {
  flex: 1 1 240px; padding: 13px 18px; border-radius: var(--radius-sm);
  background: var(--bg3); border: 1px solid transparent; color: var(--text); font: inherit;
}
.signup input[type="email"]::placeholder { color: var(--text3); }
.signup input[type="email"]:focus { outline: none; border-color: var(--text3); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text2); flex-basis: 100%; }
.consent input { margin-top: 4px; accent-color: #fff; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Page texte (mentions légales) */
.prose { max-width: 680px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p { color: var(--text2); }

/* Téléphone */
@media (max-width: 720px) {
  .logo { font-size: 15px; white-space: nowrap; }
  .nav { gap: 2px; }
  .nav a { font-size: 14px; padding: 6px 10px; }
  .split { grid-template-columns: 1fr; }
  .path { padding: 26px; }
}

/* Bloc centré (inscription Atome) avec le logo de l'app au-dessus */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .signup { margin-inline: auto; }
.center .consent { text-align: left; }
.app-logo { width: 88px; height: 88px; margin: 0 auto 28px; }

/* Accroche centrée, plus « premium » (page Atome) */
.hero-center { position: relative; text-align: center; overflow: hidden; }
.hero-center::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 50% 30%, rgba(255, 255, 255, .07), transparent 70%);
}
.hero-center .wrap { position: relative; }
.hero-center .app-logo { width: 72px; height: 72px; margin-bottom: 32px; }
.hero-center .lead { margin: 0 auto; max-width: 34em; }
.hero-center .lead + .lead { margin-top: 18px; }
/* Phrase choc mise en valeur sous l'accroche */
.punchline {
  margin: 22px auto 0; max-width: 18em;
  font-size: clamp(30px, 5vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance;
  background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge {
  display: inline-flex; align-items: center; margin: 0 0 24px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04);
  color: var(--text2); font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.display {
  font-size: clamp(72px, 14vw, 144px); letter-spacing: -0.045em; line-height: .95; margin-bottom: 28px;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* Captures d'écran en défilement horizontal (page Atome) */
.shots-section { padding-top: 0; }
.shots {
  --gutter: max(24px, (100vw - var(--max)) / 2);
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 24px;
  scrollbar-width: thin; scrollbar-color: var(--bg3) transparent;
  -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 min(84vw, 880px); margin: 0; scroll-snap-align: start; }
.shot img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .6);
}
.shot figcaption { margin-top: 14px; color: var(--text2); font-size: 15px; font-weight: 500; }
.shots-note { margin-top: 16px; margin-bottom: 0; color: var(--text3); font-size: 13px; }

/* Points + flèches sous les captures (affichés seulement si le JavaScript marche) */
.shots-controls { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.js .shots-controls { display: flex; }
.shots-dots {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.shots-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: width .35s ease, background .35s ease;
}
.shots-dots button[aria-current="true"] { width: 32px; background: #fff; }
.shots-arrows { display: flex; gap: 12px; }
.shots-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s, opacity .2s;
}
.shots-arrow:hover { background: rgba(255, 255, 255, .2); }
.shots-arrow:disabled { opacity: .3; cursor: default; }
.shots-arrow:disabled:hover { background: rgba(255, 255, 255, .12); }
/* Barre de défilement native cachée quand les points + flèches sont là */
.js .shots { scrollbar-width: none; }
.js .shots::-webkit-scrollbar { display: none; }

/* Visionneuse plein écran des captures (assets/shots.js) */
.js .shot img { cursor: zoom-in; }
.lightbox-lock, .lightbox-lock body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 4vw, 56px);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  transform: scale(.94); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.lightbox.open .lightbox-stage { transform: none; }
.lightbox-img {
  max-width: 100%; max-height: 100%; border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  transform-origin: center; will-change: transform; cursor: zoom-in;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  -webkit-user-drag: none;
}
.lightbox-img.live { transition: none; }
.lightbox.zoomed .lightbox-img { cursor: grab; border-radius: 0; }
.lightbox.zoomed .lightbox-img.live { cursor: grabbing; }
.lightbox-close {
  position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.lightbox-hint {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  margin: 0; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .1); color: var(--text2); font-size: 13px;
  transition: opacity .3s; pointer-events: none;
}
.lightbox.used .lightbox-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-stage, .lightbox-img { transition: none; }
}
.lightbox:not(.open) { pointer-events: none; }

/* Visionneuse : points + flèches en bas, comme sous la galerie */
.lightbox { padding-bottom: calc(clamp(12px, 4vw, 56px) + 64px); }
.lightbox-img { transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.lightbox-controls {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(20px, env(safe-area-inset-bottom));
  width: min(var(--max), 100% - 32px); z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lightbox .shots-arrow { background: rgba(255, 255, 255, .14); }
.lightbox .shots-arrow:hover { background: rgba(255, 255, 255, .24); }
.lightbox-hint { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); }
.hero-center .lead { color: var(--text); }
/* Moins d'espace entre la galerie et la section suivante */
.shots-section { padding-bottom: 0; }
.shots-section + section { padding-top: clamp(56px, 8vw, 96px); }

/* Bloc de texte « manifeste » (même style que l'accroche), aligné à droite */
.statement { margin-top: clamp(24px, 4vw, 40px); }
.statement .lead { color: var(--text); max-width: 30em; }
.statement .punchline { max-width: 15em; }
.statement-right { text-align: right; }
.statement-right .lead, .statement-right .punchline { margin-left: auto; margin-right: 0; }
.statement .lead, .statement .punchline { margin-left: 0; margin-right: 0; }
/* Grand titre de section, plus grand que la phrase choc */
.section-title { font-size: clamp(44px, 8vw, 84px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 8px; }
.statement .statement-answer { margin-top: clamp(32px, 5vw, 56px); }
.lead.about { color: var(--text); margin: 0; }
.lead.about + .lead.about { margin-top: 16px; }
.about-actions { margin: 32px 0 0; }

/* « Qui suis-je ? » : texte à gauche, Elric « flotte » à droite (fond de photo = noir pur, bas en fondu) */
.about-row { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}
@media (max-width: 900px) {
  .about-row { grid-template-columns: 1fr; gap: 24px; }
  .portrait { order: -1; width: min(64%, 320px); margin: 0 auto; }
}
/* « Qui suis-je ? » : plus d'air autour du texte */
#qui-suis-je .section-title { margin-bottom: clamp(24px, 3.5vw, 36px); }
.lead.about { max-width: 32em; line-height: 1.65; }
.lead.about + .lead.about { margin-top: 22px; }
.about-actions { margin-top: clamp(36px, 5vw, 48px); }
/* Portrait plus petit quand il est au-dessus du texte (téléphone, demi-écran) */
@media (max-width: 900px) { .portrait { width: min(46%, 240px); } }
@media (max-width: 480px) { .portrait { width: min(52%, 200px); } }
/* Téléphone / demi-écran : petit portrait à côté du titre, texte en dessous sur toute la largeur */
@media (max-width: 900px) {
  .about-row { grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 0; align-items: end; }
  .about-row > div { display: contents; }
  .about-row .section-title { grid-column: 1; grid-row: 1; align-self: end; }
  .about-row .portrait { grid-column: 2; grid-row: 1; order: 0; width: clamp(110px, 28vw, 220px); margin: 0; }
  .about-row .lead.about, .about-row .about-actions { grid-column: 1 / -1; }
}

/* Formulaire : champ piège caché ; pages d'état de l'inscription */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status-page { min-height: calc(100vh - 64px - 120px); display: flex; align-items: center; }
.status-page .wrap { width: min(var(--max), 100% - 48px); }
.status-title { font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.04em; margin-bottom: 24px; }
.status-page .lead { color: var(--text); margin: 0 auto; }
.status-page .lead + .lead { margin-top: 14px; }
.status-page .lead a { color: var(--text); }

/* Accueil « premium » (2026-11-19) : même accroche centrée que la page Atome */
.name-display { font-size: clamp(52px, 10vw, 112px); }
.home-hero .lead { max-width: 30em; }
.home-hero .paths { text-align: left; margin-top: clamp(56px, 8vw, 88px); }

/* Page Patients (2026-11-19) */
.patient-hero .lead + .lead { margin-top: 18px; }
.patient-hero .actions { justify-content: flex-start; margin-top: clamp(36px, 5vw, 48px); }
.section-lead { color: var(--text2); max-width: 36em; margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 40px; }
.info-grid .card .label { color: var(--text3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.info-grid .card p { color: var(--text); }
.info-grid .card p + p { margin-top: 6px; }
.rdv { margin-top: clamp(40px, 6vw, 56px); }
.fine { color: var(--text3); font-size: 14px; margin-top: 18px; }
.patient-hero .section-title { font-size: clamp(40px, 6vw, 64px); margin-bottom: clamp(24px, 3.5vw, 36px); }
.patient-hero .btn { white-space: nowrap; }
@media (max-width: 900px) { .patient-hero .eyebrow { grid-column: 1 / -1; margin: 14px 0 22px; } }
/* Journal d'Atome (archive de la newsletter) */
.journal-actions { justify-content: flex-start; margin-top: 40px; }
/* Questions fréquentes (page Patients) */
.faq { margin-top: 40px; display: grid; gap: 10px; max-width: 820px; }
.faq-item { border-radius: var(--radius); background: linear-gradient(180deg, #232325, var(--bg2)); border: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--text2); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--text2); max-width: 44em; }
.fine-inline { color: var(--text3) !important; font-size: 14px; }
.site-footer span a { text-decoration: none; }
/* Adresse e-mail longue : retour à la ligne propre dans les cartes */
.info-grid .card { min-width: 0; }
.info-grid .card a { overflow-wrap: anywhere; }
.info-grid .card .mail { font-size: 15px; }
/* Titre de la page Patients plus discret (demande d'Elric, 2026-11-19) */
.patient-hero .section-title { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: clamp(20px, 3vw, 28px); }
.patient-hero .section-title { font-size: clamp(28px, 3.4vw, 36px); }
/* Page Patients : tous les titres de section aussi discrets que « Je m'appelle Elric » (2026-11-19) */
main:has(.patient-hero) .section-title { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
/* Sans :has (navigateurs plus anciens) : mêmes tailles via les ancres de section */
#domaines .section-title, #cabinet .section-title, #faq .section-title { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
/* Page Patients : moins d'espace vertical entre les sections (demande d'Elric, 2026-11-19) */
.patient-hero { padding-bottom: clamp(32px, 4vw, 56px); }
#domaines, #cabinet, #faq { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
#faq { padding-bottom: clamp(56px, 7vw, 96px); }
#domaines .grid, #cabinet .info-grid, #faq .faq { margin-top: clamp(20px, 2.5vw, 28px); }
.patient-hero { padding-bottom: clamp(24px, 3vw, 40px); }
#domaines, #cabinet, #faq { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
#faq { padding-bottom: clamp(48px, 6vw, 80px); }
/* Accueil : nom plus discret, sans le dégradé « vitrine » réservé à Atome (demande d'Elric, 2026-11-19) */
.name-display {
  font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text);
  margin-bottom: 20px;
}
.home-hero .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--text2); }
