/* ============================================================
   Dr Redouane Rabii — Ondes de Choc Casablanca
   CSS Global — style.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:       #1a3a5c;   /* bleu médical profond */
    --primary-dark:  #122840;
    --accent:        #0098a6;   /* teal/cyan innovant   */
    --accent-hover:  #007a87;
    --light-bg:      #f7f9fc;
    --alt-bg:        #eef3f8;
    --dark-bg:       #1a3a5c;
    --text:          #2d3748;
    --text-light:    #64748b;
    --white:         #ffffff;
    --border:        #d9e2ec;
    --success:       #16a34a;
    --error:         #dc2626;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius:    12px;
    --shadow:    0 4px 24px rgba(26,58,92,0.10);
    --shadow-lg: 0 8px 40px rgba(26,58,92,0.15);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    line-height: 1.25;
    color: var(--primary);
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,152,166,.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.65);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    color: var(--white);
}

.btn-lg  { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-sm  { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-full { width: 100%; display: block; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(26,58,92,.10);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .9rem;
    padding-bottom: .9rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--primary);
    text-decoration: none;
}

/* Logo icon mark — wave pulse circle */
.logo-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #0098a6 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,152,166,.35);
}
.logo-mark svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.logo-text { display: flex; flex-direction: column; gap: 1px; }

.logo-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(90deg, var(--primary) 0%, #0098a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.logo-sub {
    display: block;
    font-size: .68rem;
    color: var(--text-light);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    color: var(--primary);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.main-nav .btn-nav {
    background: var(--accent);
    color: var(--white) !important;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    border-bottom: none !important;
    font-size: .88rem;
}

.main-nav .btn-nav:hover { background: var(--accent-hover); color: var(--white) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1b4f72 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(0,152,166,.25) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0,152,166,.10) 0%, transparent 50%);
}

.hero-overlay { position: absolute; inset: 0; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: var(--white);
}

.hero-supertitle {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 1.2rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.4rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.highlight { color: var(--accent); }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.22rem);
    font-weight: 400;
    color: rgba(255,255,255,.88);
    max-width: 680px;
    margin: 0 auto 2.2rem;
    font-family: var(--font-body);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.9);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-family: var(--font-head);
    font-weight: 600;
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
    background: var(--accent);
    padding: 1.75rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item { color: var(--white); }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: .82rem;
    opacity: .85;
    margin-top: .25rem;
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-light { background: var(--white); }
.section-alt   { background: var(--alt-bg); }
.section-dark  { background: var(--dark-bg); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.82); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: .5rem; }

.section-tag {
    display: inline-block;
    background: rgba(0,152,166,.12);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: .6rem;
}

.section-tag.light {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
}

/* ── Two-Column Layout ──────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.col-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1.2rem; margin-top: .6rem; }
.col-text p  { margin-bottom: 1rem; color: var(--text-light); }
.col-text .btn { margin-top: .8rem; }

.max-width-text { max-width: 720px; margin: 0 auto; }
.max-width-text p { color: var(--text-light); margin-bottom: 1rem; }

/* ── Info Card (Homepage) ───────────────────────────────────── */
.info-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.info-card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.steps-list {
    list-style: none;
    counter-reset: none;
    padding: 0;
}

.steps-list li {
    display: flex;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: .95rem;
}

.steps-list li:last-child { border-bottom: none; }

/* ── Benefits Grid ──────────────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.benefit-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}

.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.benefit-icon { font-size: 2.2rem; margin-bottom: 1rem; }

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: .75rem;
    color: var(--white);
}

.benefit-card p { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-container { max-width: 820px; }

.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26,58,92,.06);
}

.faq-item summary {
    padding: 1.2rem 1.6rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform .25s;
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { background: var(--light-bg); }

.faq-item p {
    padding: 0 1.6rem 1.4rem;
    color: var(--text-light);
    font-size: .95rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* ── Video Showcase ───────────────────────────────────────────── */
.video-showcase-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.video-showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 0%, rgba(0,152,166,.25) 0%, transparent 70%);
    pointer-events: none;
}
.video-showcase-section .section-header h2,
.video-showcase-section .section-header p { color: #fff; }
.video-showcase-section .section-tag { background: rgba(0,152,166,.3); color: #7ee8f0; }

.video-cinema {
    max-width: 480px;
    margin: 0 auto;
}
.video-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
    background: #000;
    max-height: 70vh;
}
.demo-video {
    width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
    background: #000;
}
.video-play-overlay,
.play-btn { display: none; } /* removed — using native controls */

.video-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    color: rgba(255,255,255,.65);
    font-size: .85rem;
}
.video-badge {
    background: rgba(0,152,166,.25);
    color: #7ee8f0;
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

/* Traitements two-column showcase */
.demo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.demo-showcase .video-cinema {
    max-width: 100%;
}
@media (max-width: 900px) {
    .demo-showcase { grid-template-columns: 1fr; }
}
.demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.demo-sidebar-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.demo-sidebar-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.demo-sidebar-facts {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 1.5rem;
}
.demo-sidebar-facts h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .8rem;
}
.demo-sidebar-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.demo-sidebar-facts li {
    color: rgba(255,255,255,.75);
    font-size: .88rem;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding-left: 1.2rem;
    position: relative;
}
.demo-sidebar-facts li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #7ee8f0;
    font-weight: 700;
}
.demo-sidebar-facts li:last-child { border-bottom: none; }

/* ── Articles ───────────────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
}
.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.article-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .8rem;
}
.article-tag {
    background: rgba(0,152,166,.1);
    color: var(--accent);
    padding: .2rem .7rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.article-date { font-size: .8rem; color: var(--text-light); }
.article-title {
    font-size: 1.05rem;
    margin-bottom: .8rem;
    line-height: 1.45;
    flex: 1;
}
.article-title a { color: var(--primary); text-decoration: none; }
.article-title a:hover { color: var(--accent); }
.article-excerpt {
    font-size: .88rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.65;
}
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.article-read { font-size: .78rem; color: var(--text-light); }
.article-link { color: var(--accent); font-weight: 700; font-size: .88rem; text-decoration: none; }
.article-link:hover { text-decoration: underline; }

/* ── Article detail page ── */
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: .8rem; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
}
.article-lead {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 1.2rem;
}
.article-content h2 {
    font-size: 1.25rem;
    margin: 2.2rem 0 .8rem;
    color: var(--primary);
}
.article-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.article-content ul {
    color: var(--text-light);
    padding-left: 1.4rem;
    margin-bottom: 1.2rem;
    line-height: 1.85;
}
.article-content ul li { margin-bottom: .4rem; }
.article-callout {
    background: #eef6fa;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0;
    font-size: .92rem;
    color: var(--text-light);
}
.article-callout.accent { background: rgba(0,152,166,.07); }
.article-cta-box {
    background: linear-gradient(135deg, #eef6fa, #f0fafb);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2.5rem;
}
.article-cta-box h3 { margin-bottom: .5rem; color: var(--primary); }
.article-cta-box p { color: var(--text-light); margin-bottom: 1.2rem; }

/* Sidebar */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.sidebar-card h4 { font-size: .9rem; margin-bottom: 1rem; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.sidebar-card strong { display: block; font-size: .95rem; color: var(--primary); margin-bottom: .4rem; }
.sidebar-card p { font-size: .83rem; color: var(--text-light); line-height: 1.6; margin-bottom: .7rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); padding: .55rem 0; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: .87rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.sidebar-links a:hover { text-decoration: underline; }

/* Comparison table */
.comparison-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.comparison-table th, .comparison-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table thead th { background: var(--primary); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.comparison-table .col-radial { background: rgba(0,152,166,.07); color: var(--primary); font-weight: 600; }
.comparison-table thead .col-radial { background: var(--accent); color: #fff; }
.comparison-table tbody tr:hover td { background: #f7fbfd; }

/* ── CTA Section ────────────────────────────────────────────── */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,.88);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 4.5rem 0 3.5rem;
    color: var(--white);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--white);
    margin: .8rem 0 1.2rem;
}

.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }

.page-hero-desc {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    max-width: 640px;
    line-height: 1.7;
}

/* ── Mechanism Steps (traitements.php) ──────────────────────── */
.mechanism-visual {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.mech-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .8rem 0;
}

.mech-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}

.mech-step strong { display: block; color: var(--primary); font-size: .95rem; margin-bottom: .3rem; }
.mech-step p { font-size: .85rem; color: var(--text-light); margin: 0; }

.mech-arrow { text-align: center; color: var(--accent); font-size: 1.2rem; padding: .1rem 0; }

.highlight-step { background: var(--light-bg); border-radius: 8px; padding: .8rem; }

.order-1 { order: -1; }
.order-2 { order: 1; }

/* ── Indications (traitements.php) ─────────────────────────── */
.indications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.indication-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    transition: transform .25s;
}

.indication-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.indication-icon { font-size: 2rem; margin-bottom: .9rem; }
.indication-card h3 { font-size: 1rem; margin-bottom: .6rem; color: var(--primary); }
.indication-card p { font-size: .9rem; color: var(--text-light); }

.indication-note {
    background: rgba(0,152,166,.08);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.2rem 1.6rem;
    font-size: .92rem;
    color: var(--text);
}

/* ── Protocol Steps ─────────────────────────────────────────── */
.protocol-grid {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.protocol-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
}

.protocol-icon { font-size: 2rem; margin-bottom: 1rem; }
.protocol-card h3 { color: var(--white); font-size: 1rem; margin-bottom: .6rem; }
.protocol-card p { font-size: .88rem; color: rgba(255,255,255,.75); }

.protocol-arrow {
    font-size: 2rem;
    color: rgba(255,255,255,.4);
    align-self: center;
    flex-shrink: 0;
}

/* ── Advantages List ────────────────────────────────────────── */
.advantages-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.advantage-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.6rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(26,58,92,.05);
}

.adv-check {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: .9rem;
}

.advantage-row div { font-size: .95rem; color: var(--text); }
.advantage-row strong { color: var(--primary); }

/* ── Doctor Card (medecin.php) ──────────────────────────────── */
.doctor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.doctor-card--hero .doctor-portrait {
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.doctor-portrait-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: contrast(1.05);
    transition: transform .5s ease;
}
.doctor-card--hero:hover .doctor-portrait-img {
    transform: scale(1.03);
}
.portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.portrait-name {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.doctor-card-info {
    padding: 2rem;
}

.doctor-card-info h3 { font-size: 1.4rem; margin-bottom: .4rem; }

.doctor-specialty {
    color: var(--accent);
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .4rem;
}

.doctor-location { color: var(--text-light); font-size: .9rem; }

/* ── Commitments Grid ───────────────────────────────────────── */
.commitments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.commitment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
}

.commitment-icon { font-size: 2rem; margin-bottom: .9rem; }
.commitment-card h3 { font-size: 1rem; margin-bottom: .6rem; color: var(--primary); }
.commitment-card p { font-size: .9rem; color: var(--text-light); }

/* ── Expertise Tags ─────────────────────────────────────────── */
.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
}

.expertise-tag {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    padding: .55rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
    transition: background .2s;
}

.expertise-tag:hover { background: rgba(255,255,255,.18); }

/* ── Contact Page ───────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-col h2,
.contact-info-col h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.form-intro { color: var(--text-light); margin-bottom: 1.8rem; font-size: .95rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
    color: var(--primary);
}

.required { color: var(--error); }

.form-group input,
.form-group textarea {
    padding: .8rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,152,166,.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-privacy {
    font-size: .82rem;
    color: var(--text-light);
    text-align: center;
}

.alert {
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    font-size: .95rem;
    margin-bottom: 1.4rem;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: var(--success);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: var(--error);
}

.alert-error ul { margin-top: .5rem; padding-left: 1.2rem; list-style: disc; }

.info-block {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.info-block:last-of-type { border-bottom: none; }

.info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.info-block strong { display: block; font-family: var(--font-head); color: var(--primary); margin-bottom: .3rem; }
.info-block p { color: var(--text-light); font-size: .92rem; margin: 0; }

.contact-reassurance {
    margin-top: 2rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.contact-reassurance h3 { font-size: 1rem; margin-bottom: 1rem; }

.contact-reassurance ul {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.2rem;
}

.contact-reassurance li { font-size: .9rem; color: var(--text); }

.link-more {
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
    color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.8);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo-mark { box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.footer-brand strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.1rem; margin: .5rem 0; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.7; }

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-family: var(--font-head);
    font-size: .9rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-contact p { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.4rem 0;
}

.footer-bottom p {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    text-align: center;
    line-height: 1.6;
}

/* ── Professor Quote ────────────────────────────────────────── */
.prof-quote {
    margin-top: 1.8rem;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--accent);
    background: rgba(0,152,166,.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text);
    font-size: .95rem;
    line-height: 1.7;
}

.prof-quote cite {
    display: block;
    margin-top: .6rem;
    font-style: normal;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 3px;
}

.tl-item {
    position: relative;
    padding: 1.4rem 0 1.4rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.tl-item:last-child { border-bottom: none; }

.tl-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 1.8rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
}

.tl-year {
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .3rem;
}

.tl-content strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: .3rem;
}

.tl-content p {
    font-size: .9rem;
    color: var(--text-light);
    margin: 0;
}

/* ── Presidences grid ───────────────────────────────────────── */
.presidences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pres-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: background .2s;
}

.pres-card:hover { background: rgba(255,255,255,.14); }

.pres-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: .4rem;
}

.pres-card p {
    font-size: .76rem;
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1.4;
}

/* ── Outline small button ───────────────────────────────────── */
.btn-outline-sm {
    display: block;
    padding: .45rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    transition: all .2s;
}

.btn-outline-sm:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,152,166,.05);
}

/* ── Context Banner (index epidemiology) ───────────────────── */
.context-banner {
    display: grid;
    grid-template-columns: auto 1px 1fr 1px auto;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #eef6fa 0%, #f0fafb 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.ctx-stat { text-align: center; flex-shrink: 0; }
.ctx-num { display: block; font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.ctx-lbl { display: block; font-size: .8rem; color: var(--text-light); margin-top: .3rem; max-width: 120px; text-align: center; }
.ctx-divider { width: 1px; height: 60px; background: var(--border); }
.ctx-text p { color: var(--text-light); font-size: .95rem; line-height: 1.65; margin: 0; }
.ctx-cta { flex-shrink: 0; text-align: center; }
@media (max-width: 820px) {
    .context-banner { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.5rem; }
    .ctx-divider { display: none; }
    .ctx-num { font-size: 2rem; }
}

/* ── Comparison Table ───────────────────────────────────────── */
.comparison-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.comparison-table thead {
    background: var(--primary);
    color: var(--white);
}
.comparison-table thead th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .02em;
}
.comparison-table thead th small { display: block; font-weight: 400; opacity: .75; font-size: .78rem; }
.comparison-table tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: #f5fbfc; }
.comparison-table td { padding: .85rem 1.2rem; color: var(--text-light); vertical-align: top; line-height: 1.45; }
.comparison-table td:first-child { font-weight: 600; color: var(--primary); min-width: 180px; }
.col-radial { background: rgba(0,152,166,.05); color: var(--primary) !important; font-weight: 500 !important; }
.table-note { font-size: .8rem; color: var(--text-light); text-align: right; margin-top: .8rem; font-style: italic; }

/* ── Scientific Contributions Grid ─────────────────────────── */
.sci-contributions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.sci-card {
    text-align: center;
    padding: 2rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.sci-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sci-icon { font-size: 2rem; margin-bottom: .5rem; }
.sci-num { font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.sci-lbl { font-size: .82rem; color: var(--text-light); margin-top: .5rem; line-height: 1.5; }
.sci-highlight {
    background: linear-gradient(135deg, #eef6fa, #f7fbff);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}
.sci-highlight p { color: var(--text-light); font-size: .95rem; line-height: 1.7; margin: 0; }
.sci-highlight strong { color: var(--primary); }
@media (max-width: 820px) {
    .sci-contributions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .sci-contributions { grid-template-columns: 1fr; }
}

.intro-text { text-align: center; }
.intro-text p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 1rem; }
.intro-text strong { color: var(--primary); }

/* ── Home Device Card ───────────────────────────────────────── */
.home-device-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(145deg, #eef6fa 0%, #f7fbff 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 360px;
}

.home-device-glow {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,152,166,.18) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    animation: deviceGlowPulse 3.5s ease-in-out infinite;
}

@keyframes deviceGlowPulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1);   opacity: .8; }
    50%       { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

.home-device-img {
    position: relative;
    z-index: 2;
    max-height: 280px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,152,166,.25));
    animation: deviceFloat 5s ease-in-out infinite;
}

.home-device-badge {
    position: relative;
    z-index: 2;
    margin-top: 1.2rem;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .45rem 1.4rem;
    box-shadow: 0 2px 10px rgba(26,58,92,.08);
}

.home-device-badge span {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    color: var(--primary);
}

.home-device-badge small {
    font-size: .72rem;
    color: var(--text-light);
}

/* ── Device Showcase Section ────────────────────────────────── */
.device-showcase-section {
    background: linear-gradient(160deg, #0d2b45 0%, var(--primary) 50%, #0a3d52 100%);
    padding: 5.5rem 0;
    overflow: hidden;
}

.device-showcase-section .section-header { margin-bottom: 2.5rem; }
.device-showcase-section .section-header h2 { color: var(--white); }

.section-subhead {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    margin-top: .4rem;
}

.device-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

/* Ambient glow behind device */
.device-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,152,166,.22) 0%, transparent 65%);
    top: 50%; left: 25%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: deviceGlowPulse 4s ease-in-out infinite;
    z-index: 0;
}

/* Device image wrapper */
.device-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    z-index: 1;
}

.device-img {
    max-height: 420px;
    width: auto;
    filter: drop-shadow(0 30px 60px rgba(0,152,166,.35))
            drop-shadow(0 10px 20px rgba(0,0,0,.4));
    animation: deviceFloat 5s ease-in-out infinite;
    user-select: none;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0px)   rotate(0deg); }
    30%       { transform: translateY(-14px) rotate(.4deg); }
    70%       { transform: translateY(-8px)  rotate(-.3deg); }
}

/* ── Hotspots ───────────────────────────────────────────────── */
.hotspot {
    position: absolute;
    width: 32px; height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    padding: 0;
}

.hotspot-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: hotspotPulse 2.2s ease-out infinite;
    pointer-events: none;
}

.hotspot-dot {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0,152,166,.7);
    transition: transform .2s, background .2s;
}

.hotspot:hover .hotspot-dot,
.hotspot.active .hotspot-dot {
    background: #fff;
    transform: scale(1.25);
}

.hotspot.active .hotspot-ring {
    border-color: #fff;
}

@keyframes hotspotPulse {
    0%   { transform: scale(1);   opacity: .9; }
    70%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1);   opacity: 0; }
}

/* Staggered ring delay per hotspot */
.hotspot:nth-child(2) .hotspot-ring { animation-delay: .5s; }
.hotspot:nth-child(3) .hotspot-ring { animation-delay: 1s; }
.hotspot:nth-child(4) .hotspot-ring { animation-delay: 1.5s; }

/* ── Device Info Panels ─────────────────────────────────────── */
.device-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1;
}

.device-tip {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    transition: all .35s cubic-bezier(.22,1,.36,1);
    cursor: default;
    opacity: .55;
    transform: translateX(20px);
}

.device-tip.active {
    background: rgba(0,152,166,.18);
    border-color: var(--accent);
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 4px 24px rgba(0,152,166,.2);
}

.device-tip strong {
    display: block;
    color: var(--white);
    font-family: var(--font-head);
    font-size: .95rem;
    margin-bottom: .3rem;
}

.device-tip p {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    margin: 0;
    line-height: 1.6;
}

.tip-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-tip:not(.active) .tip-num {
    background: rgba(255,255,255,.15);
}

/* ── Device Specs Strip ─────────────────────────────────────── */
.device-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-top: .5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.1);
}

.spec-item { text-align: center; }

.spec-val {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.spec-lbl {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    margin-top: .2rem;
    line-height: 1.3;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .order-1 { order: 0; }
    .order-2 { order: 0; }
    .indications-grid { grid-template-columns: 1fr; }
    .commitments-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .protocol-grid { flex-direction: column; align-items: center; }
    .protocol-arrow { transform: rotate(90deg); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .device-showcase { grid-template-columns: 1fr; }
    .device-wrapper { min-height: 300px; }
    .device-img { max-height: 280px; }
    .device-specs { grid-template-columns: repeat(2, 1fr); }
    .presidences-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 24px rgba(26,58,92,.12);
        padding: 1rem 0;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: .85rem 1.5rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .main-nav .btn-nav {
        margin: .8rem 1.5rem 0;
        border-radius: 50px;
        text-align: center;
        border-bottom: none !important;
    }

    .nav-toggle { display: block; }
    .site-header { position: relative; }

    .benefits-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-content h1 { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
}
