/* Celpharma — charte du brandbook : noir #080400, blanc, Pantone 7714 C #007a8a,
   titres Quiche Sans, texte Lato. Fraunces remplace Quiche Sans en attendant le fichier. */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }

:root {
  --stone-50: #f2f6f7;
  --stone-100: #e6eef0;
  --stone-200: #d5e1e4;
  --stone-400: #7fa9b0;
  --graphite: #080400;
  --surface: #f2f6f7;
  --surface-2: #e6eef0;
  --line: #dbe4e6;
  --muted: #55605f;
  --radius-xl: 20px;
  --radius-l: 14px;
}
body { font-size: 18px; line-height: 1.55; }
.display, .display-s, .h2, .h3, h1, h2, h3 { font-family: var(--font-title); font-weight: 500; letter-spacing: -0.012em; }
.display { font-size: clamp(40px, 5vw, 68px); line-height: 1.06; }
.display-s { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; }
.h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; }
h1 em, h2 em { color: var(--accent); }
.tone-dark h1 em, .tone-dark h2 em, .pg-hero.dark h1 em { color: #7fd0da; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.tone-dark .eyebrow { color: #7fd0da; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; letter-spacing: 0; }
section { padding-block: clamp(64px, 8vw, 110px); }
:focus-visible { outline-color: var(--accent); }

/* Boutons */
.btn { font-family: var(--font); font-weight: 700; border-radius: 999px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #00626f; box-shadow: none; }
.cta-band .btn-primary { background: #fff; color: var(--black); }
.cta-band .btn-primary:hover { background: var(--stone-100); }

/* Navigation */
.nav .btn { background: var(--accent); color: #fff; }

/* En-tête d'accueil */
.hh { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(86vh, 820px); }
.hh-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px) clamp(40px, 6vw, 88px) max(24px, calc((100vw - var(--wrap)) / 2)); }
.hh .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hh-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.hh-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hh-trust svg { width: 16px; height: 16px; color: var(--accent); }
.hh-media { position: relative; min-height: 320px; }
.hh-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hh { grid-template-columns: 1fr; min-height: 0; } .hh-copy { padding: 44px 24px; } .hh-media { aspect-ratio: 4 / 3; } }

/* Texte + photo */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip .split-copy { order: 2; }
.split-copy { display: grid; gap: 18px; justify-items: start; }
.split-copy .prose { color: var(--muted); }
.split-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 4.2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges img { width: 92px; height: 92px; object-fit: contain; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.tlink svg { width: 18px; height: 18px; transition: transform .2s; }
.tlink:hover svg { transform: translateX(4px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .split-copy { order: 0; } .split-media { aspect-ratio: 4 / 3; } }

/* Méthode */
.method { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; margin-top: 36px; }
.method .mimg { display: block; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--surface); }
.method .mimg img { width: 100%; height: 100%; object-fit: cover; }
.method .mnum { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.method h3 { font-size: 22px; margin: 2px 0 6px; }
.method p { font-size: 16px; color: var(--muted); }
.b-method .tlink { margin-top: 28px; }
@media (max-width: 960px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* Conditions */
.conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 28px; }
.conds > div { padding: 18px 0; border-top: 1px solid var(--line); }
.conds dt { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tone-dark .conds > div { border-color: rgba(255,255,255,.18); }
@media (max-width: 760px) { .conds { grid-template-columns: 1fr; } }

/* Formulaire projet */
.pf { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pform { display: grid; gap: 24px; }
.pform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.pform fieldset { border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.pform legend { font-family: var(--font-title); font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.pform .f { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.pform .f.full { grid-column: 1 / -1; }
.pform input[type=text], .pform input[type=email], .pform input[type=tel], .pform select, .pform textarea { width: 100%; font: inherit; font-weight: 400; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid var(--stone-200); border-radius: 10px; padding: 12px 14px; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pform [hidden], .pform .sr { display: none !important; }
.pform .f[data-export-wrap]:not(:has(select:not([hidden]))) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 400; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--stone-200); border-radius: 999px; font-size: 15px; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; margin-bottom: 12px; }
.opt input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.opt a { text-decoration: underline; }
.pform .lf-btn { justify-self: start; }
.pform .lf-spin, .pform .lf-ok { display: none; }
.pform .lf-title { font-family: var(--font-title); font-size: 26px; }
.pside { position: sticky; top: 96px; background: var(--stone-50); border-radius: var(--radius-l); padding: 28px; display: grid; gap: 6px; justify-items: start; }
.pside .pname { font-family: var(--font-title); font-size: 26px; margin-top: 6px; }
.pside .ptel { font-weight: 700; margin-top: 12px; color: var(--accent); }
.pside .pmail { font-size: 16px; }
.pside .small { margin-top: 14px; }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; } .pside { position: static; } .pform fieldset { grid-template-columns: 1fr; } }

/* Navigation : tient sur une ligne, burger plus tôt (menu plus long que Teonia) */
.nav .logo { flex: 0 0 auto; }
.nav .logo img { height: 30px; width: auto; max-width: none; }
.nav .menu .mtrig, .nav .menu .mlink { white-space: nowrap; }
.nav .wrap { gap: 20px; }
.nav .menu { gap: 18px; margin-left: 6px; }
.nav .btn { white-space: nowrap; }

/* Chiffres clés */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.figs > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.figs .n { font-family: var(--font-title); font-weight: 500; font-size: clamp(38px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 8px; }
.figs .n.teal { color: var(--accent); }
.figs > div > :last-child:not(.n) { font-size: 16px; color: var(--muted); line-height: 1.4; }
section.b-figures { padding-block: clamp(48px, 6vw, 72px); }

/* Bandeau d'appel à l'action : sarcelle de la charte */
.cta-band { background: var(--accent); }
.cta-band .lead { color: rgba(255,255,255,.85); }
.cta-band .h2, .cta-band h2 { color: #fff; }

/* Bandeau cookies */
#cm #c-p-bn, #s-bl .c-bn, .c_link { }
#cm .c-bn:not(#c-s-bn) { font-family: var(--font); }

/* Tous les boutons pleins sont en sarcelle ; le noir reste réservé au texte */
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: #00626f; }
.cta-band .btn-dark { background: #fff; color: var(--black); }

/* Article : titre dans la voix de la charte */
.ph-title { font-family: var(--font-title); font-weight: 500; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -0.012em; max-width: 24ch; }

@media (max-width: 900px) { .hh { grid-template-columns: minmax(0, 1fr); } .hh .ctas .btn { white-space: normal; } }
@media (max-width: 900px) { .hh-media { min-height: 0; } }

/* Menu : trois entrées, sous-menu en simple liste sous son entrée */
.nav .wrap { height: 80px; }
.nav .menu { margin-left: 28px; gap: 6px; }
.nav .mtrig { font-size: 17px; }
.mpanel { width: 290px; border: 1px solid var(--line); border-radius: var(--radius-l); margin-top: -8px; box-shadow: 0 18px 40px -18px rgba(8,4,0,.28); }
.nav .mpanel .mgrid { display: block; width: auto; padding: 10px; }
.nav .mpanel .mi { margin: 0; padding: 10px 12px; }
.nav .mpanel .mi b { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.nav .mpanel .mi:hover b { color: var(--accent); }
.mveil { display: none; }
@media (max-width: 900px) { .nav .wrap { height: 72px; } .nav .logo img { height: 24px; } }

/* Mobile : bouton « Décrire mon projet » collé en bas de l'écran */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(100%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s; }
  .mbar.show { transform: none; visibility: visible; }
  .mbar .btn { width: 100%; height: 50px; }
  html.noscroll .mbar { display: none; }
}

/* Titres de page : même graisse que l'accueil */
.pg-hero h1, .pg-hero .display-s { font-weight: 500; letter-spacing: -0.012em; }

/* Mobile : logo, langue et menu tiennent sur une ligne */
@media (max-width: 520px) {
  .nav .wrap { gap: 10px; }
  .nav .right { gap: 4px; }
  .nav .logo img { height: 20px; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .lang-btn .chev, .lang-btn > svg:first-child { display: none; }
}
@media (max-width: 520px) { .display { font-size: 34px; } .display, .display-s, .h2 { overflow-wrap: break-word; hyphens: auto; } }
