/* ============================================================
   ESPACE PATIENT — pages « /espace-patient » (médecins) et
   « /espace-patient-aide » (patients). Non indexées, hors menu.
   Scoped under .ep-2026 (imbriqué dans le wrapper .derm-2026).
   Seuls les ajouts propres à ces pages vivent ici : hero-2026,
   section-header, cta-2026, article-card… viennent de
   custom-derm-2026.css.
   Tokens : bleu #30a3f1 · bleu foncé #003a61 · carte 16px, bordure
   1.5px rgba(162,214,249,.4) · bouton 10px · ombre « stripe ».
   ============================================================ */

.ep-2026 {
    --ep-blue: #30a3f1;
    --ep-dark: #003a61;
    --ep-line: rgba(162, 214, 249, 0.4);
    --ep-soft: #ebf7ff;
    --ep-shadow: 0 30px 45px -30px rgba(50,50,93,.25), 0 18px 36px -18px rgba(0,0,0,.1);
    --ep-ink: #2c2c3a;
}

/* ---------- Texte courant (un cran sous le gabarit derm, comme omnidoc) ---------- */
.ep-2026 .hero-2026 .hero-desc { font-size: 17px; }
.ep-2026 .section-header h2 { font-size: 30px; }
.ep-2026 .section-header p { font-size: 17px; }
.ep-2026 .ep-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    font: 700 13px/1 'Nunito Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ep-dark); background: #fff; border: 1.5px solid rgba(162,214,249,.6);
    border-radius: 100px; padding: 6px 14px;
}
.ep-2026 .ep-eyebrow-center { margin: 0 auto 14px; }

/* ---------- Cadre de téléphone (captures réelles de l'espace patient) ---------- */
.ep-2026 .ep-phone {
    --w: 230px;
    width: var(--w);
    flex: 0 0 auto;
    margin: 0;
    padding: 8px;
    background: #10202f;
    border-radius: calc(var(--w) * 0.15);
    box-shadow: var(--ep-shadow), 0 0 0 1.5px rgba(16,32,47,.25);
    position: relative;
}
.ep-2026 .ep-phone::before { /* haut-parleur */
    content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
    width: 26%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); z-index: 2;
}
.ep-2026 .ep-phone img {
    display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
    border-radius: calc(var(--w) * 0.115); background: #f2f4f9;
}
.ep-2026 .ep-phone figcaption {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    text-align: center; font: 700 13px/1.3 'Nunito Sans', sans-serif; color: var(--ep-dark);
}
.ep-2026 .ep-phone.has-cap { margin-bottom: 40px; }
.ep-2026 .ep-phone.sm { --w: 200px; }
.ep-2026 .ep-phone.lg { --w: 270px; }

/* ---------- Capture de bureau (côté cabinet) ---------- */
.ep-2026 .ep-shot {
    margin: 0; background: #fff; border: 1.5px solid var(--ep-line); border-radius: 16px;
    box-shadow: var(--ep-shadow); overflow: hidden;
}
.ep-2026 .ep-shot img { display: block; width: 100%; height: auto; }
.ep-2026 .ep-shot figcaption {
    padding: 10px 16px; font: 600 13px/1.4 'Nunito Sans', sans-serif; color: #55657a;
    background: #f7fbff; border-top: 1px solid var(--ep-line);
}

/* ---------- Hero : visuel à droite ---------- */
.ep-2026 .hero-2026 { padding-bottom: 70px; }
.ep-2026 .hero-2026 .hero-text { max-width: 500px; }
.ep-2026 .ep-hero-visual {
    flex: 1 0 0; min-width: 300px; position: relative; min-height: 460px;
    display: flex; justify-content: center; align-items: flex-start;
}
.ep-2026 .ep-hero-visual .ep-phone:nth-child(1) { --w: 240px; z-index: 2; transform: translate(26px, 10px) rotate(-3deg); }
.ep-2026 .ep-hero-visual .ep-phone:nth-child(2) { --w: 240px; transform: translate(-26px, 56px) rotate(3deg); }
.ep-2026 .ep-hero-note { font: 600 13px/1.5 'Nunito Sans', sans-serif; color: #fff; margin: 0; max-width: 460px; }
.ep-2026 .hero-text .ep-hero-sub { font: 700 14px/1.5 'Nunito Sans', sans-serif; color: var(--ep-dark); margin: 0; }

/* ---------- Bandeau de réassurance ---------- */
.ep-2026 .ep-trust { background: #fff; padding: 40px 25px 10px; }
.ep-2026 .ep-trust-grid {
    max-width: 1116px; margin: 0 auto; display: grid; gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}
.ep-2026 .ep-trust-item {
    background: #fff; border: 1.5px solid var(--ep-line); border-radius: 16px;
    box-shadow: 0 0.1px 3px rgba(52,93,158,.2); padding: 20px 20px 22px;
    display: flex; flex-direction: column; gap: 10px;
    background-image: url(../../images/dermatologue-2026/card-bg.jpg); background-size: cover; background-position: center;
}
.ep-2026 .ep-ico {
    width: 44px; height: 44px; border-radius: 12px; background: var(--ep-soft);
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.ep-2026 .ep-ico svg { width: 24px; height: 24px; stroke: var(--ep-blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep-2026 .ep-trust-item h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; color: #000; }
.ep-2026 .ep-trust-item p { font: 400 15px/1.5 'Nunito Sans', sans-serif; margin: 0; color: var(--ep-ink); }

/* ---------- Blocs fonctionnalité (texte + visuel, en alternance) ---------- */
.ep-2026 .ep-features { background: #fff; padding: 50px 25px 20px; }
.ep-2026 .ep-feature {
    max-width: 1116px; margin: 0 auto 70px; display: flex; flex-wrap: wrap; gap: 48px;
    align-items: center; justify-content: center;
}
.ep-2026 .ep-feature.reverse { flex-direction: row-reverse; }
.ep-2026 .ep-feature .ep-copy { flex: 1 1 340px; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.ep-2026 .ep-feature .ep-copy h3 { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0; color: #000; }
.ep-2026 .ep-feature .ep-copy h3 .accent { color: var(--ep-blue); }
.ep-2026 .ep-feature .ep-copy > p { font: 400 17px/1.5 'Nunito Sans', sans-serif; margin: 0; color: var(--ep-ink); }
.ep-2026 .ep-feature .ep-visual {
    flex: 1 1 400px; max-width: 520px; position: relative; display: flex; justify-content: center;
    align-items: flex-start; gap: 0; min-height: 420px;
    background: var(--ep-soft); border-radius: 16px; border: 1.5px solid var(--ep-line); padding: 36px 20px; overflow: hidden;
    background-image: url(../../images/dermatologue-2026/card-bg.jpg); background-size: cover; background-position: center;
}
.ep-2026 .ep-feature .ep-visual.is-shot { align-items: center; padding: 28px 20px; }
.ep-2026 .ep-feature .ep-visual .ep-phone + .ep-phone { margin-left: -18px; margin-top: 44px; }
.ep-2026 .ep-feature .ep-visual .ep-shot { width: 100%; }
.ep-2026 .ep-feature .ep-visual .ep-shot + .ep-phone,
.ep-2026 .ep-feature .ep-visual .ep-stack .ep-phone { }
.ep-2026 .ep-stack { display: flex; flex-direction: column; gap: 20px; width: 100%; align-items: center; }
.ep-2026 .ep-stack .ep-phone { --w: 190px; }
.ep-2026 .ep-stack.ep-overlap .ep-phone { margin-top: -150px; align-self: flex-end; margin-right: 4%; position: relative; z-index: 2; }
.ep-2026 .ep-step .ep-step-visual .ep-shot { width: 100%; border-radius: 10px 10px 0 0; border-bottom: 0; box-shadow: var(--ep-shadow); align-self: flex-end; }

.ep-2026 .ep-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ep-2026 .ep-checks li {
    position: relative; padding-left: 30px; font: 400 16px/1.5 'Nunito Sans', sans-serif; color: var(--ep-ink);
}
.ep-2026 .ep-checks li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--ep-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%2330a3f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.ep-2026 .ep-checks li strong { color: #000; }
.ep-2026 .ep-note {
    font: 600 14px/1.5 'Nunito Sans', sans-serif; color: #55657a; background: #f7fbff;
    border: 1.5px solid var(--ep-line); border-radius: 10px; padding: 10px 14px; margin: 0;
}

/* ---------- Cartes sécurité ---------- */
.ep-2026 .ep-cards { max-width: 1116px; margin: 0 auto; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.ep-2026 .ep-card {
    background: #fff; border: 1.5px solid var(--ep-line); border-radius: 16px; box-shadow: var(--ep-shadow);
    padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.ep-2026 .ep-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0; color: #000; }
.ep-2026 .ep-card p { font: 400 16px/1.5 'Nunito Sans', sans-serif; margin: 0; color: var(--ep-ink); }

/* ---------- Citation de l'Ordre ---------- */
.ep-2026 .ep-quote {
    max-width: 1116px; margin: 36px auto 0; background: #fff; border: 1.5px solid var(--ep-line); border-radius: 16px;
    box-shadow: var(--ep-shadow); padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: stretch;
}
.ep-2026 .ep-quote > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.ep-2026 .ep-quote h3 { font-size: 20px; font-weight: 700; margin: 0; color: #000; }
.ep-2026 .ep-quote blockquote {
    margin: 0; padding: 14px 18px; background: var(--ep-soft); border-radius: 10px;
    font: italic 400 16px/1.55 'Nunito Sans', sans-serif; color: var(--ep-dark);
}
.ep-2026 .ep-quote blockquote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 13px; color: #55657a; }
.ep-2026 .ep-quote p { font: 400 16px/1.5 'Nunito Sans', sans-serif; margin: 0; color: var(--ep-ink); }
.ep-2026 .ep-quote a { color: #1d82cf; font-weight: 700; }

/* ---------- Étapes ---------- */
.ep-2026 .ep-steps { max-width: 1116px; margin: 0 auto; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: ep-step; }
.ep-2026 .ep-step {
    background: #fff; border: 1.5px solid var(--ep-line); border-radius: 16px; box-shadow: var(--ep-shadow);
    padding: 26px 24px 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; counter-increment: ep-step;
}
.ep-2026 .ep-step::before {
    content: counter(ep-step); width: 36px; height: 36px; border-radius: 50%; background: var(--ep-blue); color: #fff;
    font: 700 18px/36px 'Nunito Sans', sans-serif; text-align: center;
}
.ep-2026 .ep-step h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 4px 0 0; color: #000; }
.ep-2026 .ep-step p { font: 400 16px/1.5 'Nunito Sans', sans-serif; margin: 0; color: var(--ep-ink); }
.ep-2026 .ep-step .ep-step-visual { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; max-height: 270px; overflow: hidden; }
.ep-2026 .ep-step .ep-step-visual .ep-phone { --w: 200px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.ep-2026 .ep-step .ep-step-visual .ep-phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ep-2026 .ep-step .ep-step-visual .ep-poster { width: 150px; border-radius: 10px 10px 0 0; border: 1.5px solid var(--ep-line); border-bottom: 0; box-shadow: var(--ep-shadow); background: #fff; }

/* ---------- Comparatif ---------- */
.ep-2026 .ep-compare-wrap { max-width: 1116px; margin: 0 auto; overflow-x: auto; border-radius: 16px; border: 1.5px solid var(--ep-line); box-shadow: var(--ep-shadow); background: #fff; }
.ep-2026 .ep-compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-family: 'Nunito Sans', sans-serif; }
.ep-2026 .ep-compare th, .ep-2026 .ep-compare td { padding: 16px 18px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.5; color: var(--ep-ink); border-bottom: 1px solid var(--ep-line); }
.ep-2026 .ep-compare tr:last-child th, .ep-2026 .ep-compare tr:last-child td { border-bottom: 0; }
.ep-2026 .ep-compare thead th { font-size: 17px; font-weight: 800; color: #000; background: #f7fbff; }
.ep-2026 .ep-compare thead th.is-dm { background: var(--ep-blue); color: #fff; }
.ep-2026 .ep-compare tbody th { font-weight: 700; color: #000; width: 22%; }
.ep-2026 .ep-compare td.is-dm { background: #f3faff; color: #000; font-weight: 600; }
.ep-2026 .ep-compare .ep-pro { color: #12805c; font-weight: 700; }
.ep-2026 .ep-compare .ep-con { color: #b4322a; font-weight: 700; }
.ep-2026 .ep-compare-foot { max-width: 1116px; margin: 20px auto 0; font: 400 15px/1.55 'Nunito Sans', sans-serif; color: #55657a; }

/* ---------- FAQ ---------- */
.ep-2026 .ep-faq { max-width: 800px; margin: 0 auto; }
.ep-2026 .ep-faq details { border-bottom: 1px solid rgba(162,214,249,.5); padding: 4px 0; }
.ep-2026 .ep-faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 0; font: 700 18px/1.4 'Sharp Sans', 'Nunito Sans', sans-serif; color: #000;
}
.ep-2026 .ep-faq summary::-webkit-details-marker { display: none; }
.ep-2026 .ep-faq summary::after {
    content: ''; width: 12px; height: 12px; flex: 0 0 12px; border-right: 2.5px solid var(--ep-blue); border-bottom: 2.5px solid var(--ep-blue);
    transform: rotate(45deg); transition: transform .2s; margin-top: -4px;
}
.ep-2026 .ep-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ep-2026 .ep-faq .ep-answer { padding: 0 28px 18px 0; font: 400 17px/1.6 'Nunito Sans', sans-serif; color: #333; }
.ep-2026 .ep-faq .ep-answer p { margin: 0 0 10px; }
.ep-2026 .ep-faq .ep-answer p:last-child { margin-bottom: 0; }
.ep-2026 .ep-faq .ep-answer a { color: #1d82cf; font-weight: 700; }
.ep-2026 .ep-faq .ep-answer ul { margin: 6px 0 10px 18px; padding: 0; }

.ep-2026 .seo-vertical.ep-section { padding: 60px 25px; }
.ep-2026 .seo-horizontal.ep-section { padding: 60px 25px; }
.ep-2026 .ep-white { background: #fff; }

/* ============================================================
   PAGE PATIENT (/espace-patient-aide)
   ============================================================ */
.ep-2026.ep-patient .ep-topbar {
    background: #fff; border-bottom: 1.5px solid var(--ep-line); position: sticky; top: 0; z-index: 20;
}
.ep-2026.ep-patient .ep-topbar-in {
    max-width: 1116px; margin: 0 auto; padding: 12px 25px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ep-2026.ep-patient .ep-topbar img { height: 36px; width: auto; display: block; }
.ep-2026.ep-patient .ep-doc-link {
    font: 700 14px/1 'Nunito Sans', sans-serif; color: var(--ep-dark); text-decoration: none; background: #fff;
    border: 1.5px solid var(--ep-line); border-radius: 10px; padding: 10px 14px; white-space: nowrap;
}
.ep-2026.ep-patient .ep-doc-link:hover { color: var(--ep-blue); text-decoration: none; }
.ep-2026.ep-patient .hero-2026 { padding-top: 70px; }
.ep-2026.ep-patient .hero-2026 .hero-text h1 { font-size: 36px; }
.ep-2026.ep-patient .ep-hero-visual .ep-phone:nth-child(1) { transform: translate(24px, 4px) rotate(-3deg); }
.ep-2026.ep-patient .ep-hero-visual .ep-phone:nth-child(2) { transform: translate(-24px, 44px) rotate(3deg); }
.ep-2026 .ep-emergency {
    background: #fff4ec; border-bottom: 1px solid #f6d9c2; text-align: center; padding: 10px 20px;
    font: 700 14px/1.4 'Nunito Sans', sans-serif; color: #8a3a12;
}
.ep-2026 .ep-three {
    max-width: 1116px; margin: 0 auto; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr);
}
.ep-2026 .ep-phones-row { max-width: 1116px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 34px; }
.ep-2026 .ep-callout {
    max-width: 1116px; margin: 28px auto 0; background: var(--ep-soft); border: 1.5px solid var(--ep-line); border-radius: 16px;
    padding: 18px 22px; font: 600 16px/1.5 'Nunito Sans', sans-serif; color: var(--ep-dark);
}
.ep-2026 .ep-callout a { color: #1d82cf; font-weight: 800; }
.ep-2026 .ep-doc-cta {
    max-width: 1116px; margin: 0 auto; background: #fff; border: 1.5px solid var(--ep-line); border-radius: 16px; box-shadow: var(--ep-shadow);
    padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between;
}
.ep-2026 .ep-doc-cta > div { flex: 1 1 380px; }
.ep-2026 .ep-doc-cta h3 { font-size: 22px; margin: 0 0 4px; font-weight: 700; color: #000; }
.ep-2026 .ep-doc-cta p { font: 400 16px/1.5 'Nunito Sans', sans-serif; margin: 0; color: var(--ep-ink); }
.ep-2026 .ep-btn {
    background: var(--ep-blue); color: #fff; border-radius: 10px; padding: 12px 22px; min-height: 42px; display: inline-flex; align-items: center; gap: 6px;
    font: 700 16px/1.2 'Nunito Sans', sans-serif; text-decoration: none; border: 0;
}
.ep-2026 .ep-btn:hover { color: #fff; opacity: .92; text-decoration: none; }
.ep-patient-foot { background: #fff; text-align: center; padding: 26px 20px 34px; font: 400 13px/1.6 'Nunito Sans', sans-serif; color: #6b7a8c; border-top: 1.5px solid rgba(162,214,249,.4); }
.ep-patient-foot a { color: #1d82cf; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .ep-2026 .ep-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-2026 .ep-cards, .ep-2026 .ep-steps, .ep-2026 .ep-three { grid-template-columns: repeat(2, 1fr); }
    .ep-2026 .ep-feature, .ep-2026 .ep-feature.reverse { flex-direction: column; gap: 28px; margin-bottom: 56px; }
    .ep-2026 .ep-feature .ep-copy, .ep-2026 .ep-feature .ep-visual { max-width: 640px; width: 100%; flex: 0 0 auto; }
    .ep-2026 .hero-2026 .hero-text { max-width: 100%; }
    .ep-2026 .ep-hero-visual { min-height: 440px; }
}
@media (max-width: 767px) {
    /* le fond « vague » du hero passerait derrière le titre : fond clair uni sur mobile pour garder le texte lisible */
    .ep-2026 .hero-2026 { background-image: none; background: linear-gradient(180deg, #ddf1ff 0%, #fff 100%); }
    .ep-2026 .hero-2026 { padding: 110px 20px 40px; }
    .ep-2026 .ep-stack.ep-overlap .ep-phone { --w: 160px; margin-top: -90px; }
    .ep-2026 .ep-phones-row { gap: 40px 14px; }
    .ep-2026 .ep-phones-row .ep-phone { --w: 160px; }
    .ep-2026 .ep-feature .ep-visual .ep-shot figcaption { display: none; }
    .ep-2026.ep-patient .hero-2026 { padding-top: 40px; }
    .ep-2026 .hero-2026 .hero-text h1, .ep-2026.ep-patient .hero-2026 .hero-text h1 { font-size: 28px; }
    .ep-2026 .section-header h2 { font-size: 25px; }
    .ep-2026 .ep-trust-grid, .ep-2026 .ep-cards, .ep-2026 .ep-steps, .ep-2026 .ep-three { grid-template-columns: 1fr; }
    .ep-2026 .ep-feature .ep-copy h3 { font-size: 24px; }
    .ep-2026 .ep-feature .ep-visual { min-height: 0; padding: 26px 12px; }
    .ep-2026 .ep-feature .ep-visual .ep-phone { --w: 150px; }
    .ep-2026 .ep-feature .ep-visual .ep-phone + .ep-phone { margin-left: -10px; margin-top: 30px; }
    .ep-2026 .ep-stack .ep-phone { --w: 170px; }
    .ep-2026 .ep-hero-visual { min-height: 400px; }
    .ep-2026 .ep-hero-visual .ep-phone:nth-child(1), .ep-2026 .ep-hero-visual .ep-phone:nth-child(2) { --w: 168px; }
    .ep-2026 .ep-hero-visual .ep-phone:nth-child(1) { transform: translate(14px, 0) rotate(-3deg); }
    .ep-2026 .ep-hero-visual .ep-phone:nth-child(2) { transform: translate(-14px, 36px) rotate(3deg); }
    .ep-2026 .ep-phone.lg, .ep-2026 .ep-phone { --w: 210px; }
    .ep-2026 .ep-quote { padding: 22px 20px; }
    .ep-2026 .ep-faq summary { font-size: 17px; }
    .ep-2026 .ep-doc-cta { padding: 22px 20px; }
    .ep-2026.ep-patient .ep-topbar img { height: 30px; }
}
