/* =========================================================
   KERTEC - styles.css
   Palette teal + orange (logo), sections alternees, responsive.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Sarpanch';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/assets/fonts/Sarpanch-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.bunny.net/inter/files/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.bunny.net/inter/files/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.bunny.net/inter/files/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.bunny.net/inter/files/inter-latin-700-normal.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
    --bg: #FFFFFF;
    --bg-alt: #FAF7F2;            /* beige tres clair */
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;

    /* Couleur primaire = orange Kerpta (boutons d'action principaux + accents) */
    --primary: #FD9431;
    --primary-dark: #E27E1B;
    --primary-light: #FED7AA;
    --primary-bg: #FFF7E6;

    /* Couleur secondaire = orange foncee pour variations */
    --accent: #FD9431;
    --accent-dark: #E27E1B;
    --accent-light: #FFF7ED;

    --on-primary: #FFFFFF;
    --on-accent: #FFFFFF;

    --max: 1180px;
    --max-narrow: 820px;
    --pad-x: 24px;
    --section-y: 100px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 18px 40px -12px rgba(0,0,0,0.12), 0 4px 8px -2px rgba(0,0,0,0.05);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 0.5em;
    letter-spacing: -0.015em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.container-narrow { max-width: var(--max-narrow); }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius);
    z-index: 1000;
    transition: top 0.15s;
    opacity: 0;
    pointer-events: none;
}
.skip-link:focus {
    top: 8px;
    color: #fff;
    opacity: 1;
    pointer-events: auto;
}

.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 0.95em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo svg { width: 200px; height: auto; display: block; }
.logo-text { font-family: 'Sarpanch', 'Inter', sans-serif; font-weight: 900; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.primary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.75rem;
}
.primary-nav ul li { margin: 0; }
.primary-nav ul a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.primary-nav ul a:hover { color: var(--primary); }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(253,148,49,0.15);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--on-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-nav { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 15px 30px; font-size: 1rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}
.link-arrow::after { content: "→"; transition: transform 0.15s; font-size: 1.1em; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section {
    padding: var(--section-y) 0;
}
.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    margin-bottom: 0.4em;
}
.section-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 700px;
}

/* ---------- HERO (2 colonnes) ---------- */
.section-hero {
    padding-top: 60px;
    padding-bottom: 40px;
    background: var(--bg);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}
.hero-content h1 {
    font-size: 2.85rem;
    line-height: 1.15;
    margin-bottom: 0.6em;
    letter-spacing: -0.025em;
}
.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Cards summary (3 cards en dessous du hero) ---------- */
.section-cards-summary {
    padding-top: 32px;
    padding-bottom: var(--section-y);
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-icon {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: block;
}
.card-icon svg { width: 64px; height: 64px; display: block; }
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6em;
    color: var(--text);
}
.card p {
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1em;
    font-size: 0.97rem;
}
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ---------- Steps (Comment ca marche) ---------- */
.steps-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.step-badge {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -2px rgba(253,148,49,0.35);
}
.step-badge svg { width: 30px; height: 30px; display: block; }
.step-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.step-icon {
    width: 30px;
    height: 30px;
    color: #fff;
}
.step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5em;
    color: var(--text);
}
.step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

/* ---------- Callout (Ce que ca change pour vous) ---------- */
.callout {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.callout h3 {
    margin-bottom: 0.3em;
    color: var(--text);
}
.callout p {
    color: var(--text-muted);
    margin-bottom: 0.6em;
    max-width: 800px;
}

/* ---------- Logiciels partenaires ---------- */
.partners-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.partner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    margin: 0;
    list-style: none;
}
.partner:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.partner img {
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: 200px;
    object-fit: contain;
}

/* Grille a 2 partenaires : centree et ressere */
.partners-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.partners-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* ---------- Pricing ---------- */
.pricing-table-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
.pricing-table thead th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    text-align: left;
    padding: 18px 28px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}
.pricing-table thead th:last-child { text-align: center; }
.pricing-table tbody td {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}
.pricing-table tbody tr:first-child td { border-top: 0; }
/* Cellule prix : centree, suffix optionnel a droite du montant */
.pricing-table .price {
    text-align: center;
    color: var(--text);
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}
.pricing-table .price strong {
    color: var(--primary);
    font-size: 1.15rem;
    flex: 0 0 auto;
    order: 1;
}
.pricing-table .price-suffix {
    color: var(--text-muted);
    font-size: 0.95rem;
    order: 2;
}
.pricing-table .price-suffix:empty { display: none; }

.pricing-summary {
    margin: 2.5rem auto 0;
    padding: 32px 36px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 800px;
    box-shadow: var(--shadow-sm);
}
.pricing-summary h3 { margin-bottom: 0.6em; }
.pricing-summary p { color: var(--text-muted); margin-bottom: 1.5em; }

/* ---------- Form ---------- */
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-row .form-group { margin-bottom: 20px; }

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text);
}
.req { color: var(--accent); font-weight: 700; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form-group select { cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(253,148,49,0.15);
}
/* Erreur de validation : appliquee via JS apres soumission (classe .invalid),
   ou par :user-invalid sur les navigateurs qui le supportent. */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #DC2626;
}
@supports selector(:user-invalid) {
    .form-group input:user-invalid,
    .form-group textarea:user-invalid {
        border-color: #DC2626;
    }
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.form-checkbox label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cf-turnstile { margin: 1rem 0; }

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.form-feedback {
    margin-top: 1rem;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    display: none;
}
.form-feedback.success {
    display: block;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}
.form-feedback.error {
    display: block;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Article blocks (DICT) ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.article-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.article-block h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6em;
    color: var(--text);
}
.article-block p,
.article-block li {
    color: var(--text);
}
.risk-list { padding-left: 1.4rem; }

/* ---------- FAQ ---------- */
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0 28px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--primary-light); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
    transition: transform 0.2s;
    font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
    color: var(--text-muted);
    padding-bottom: 18px;
    margin: 0;
}

/* ---------- Legal page ---------- */
.legal-page h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    color: var(--text);
}
.legal-page p, .legal-page ul { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 28px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-logo { flex: 0 0 auto; }
.footer-logo svg { width: 130px; height: auto; display: block; }
.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex: 1 1 auto;
    justify-content: center;
}
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--primary); }
.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    flex: 0 0 auto;
}
@media (max-width: 640px) {
    .site-footer { padding: 20px var(--pad-x); }
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-logo svg { width: 110px; }
    .footer-nav { flex: 0 0 auto; }
    .footer-nav a { font-size: 0.85rem; }
    .footer-copy { font-size: 0.78rem; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

/* Tablette : grilles 2 colonnes */
@media (max-width: 1024px) {
    h1 { font-size: 2.3rem; }
    .hero-content h1 { font-size: 2.3rem; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .partners-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
    .partner { padding: 22px 26px; min-height: 100px; }
    .article-grid { grid-template-columns: 1fr; gap: 20px; }
    :root { --section-y: 80px; }
}

/* Tablette portrait : hero en colonnes empilees */
@media (max-width: 880px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image { max-width: 460px; margin: 0 auto; }
    .section { padding: 64px 0; }
    .section-cards-summary { padding-top: 16px; padding-bottom: 64px; }
    .section-hero { padding-top: 40px; padding-bottom: 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 28px 22px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .callout { padding: 24px 24px; }
    .pricing-summary { padding: 24px 22px; }
    .article-block { padding: 24px; }
    .section-header { margin-bottom: 2rem; }
}

/* Mobile */
@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 56px 0; }
    .section-hero { padding-top: 24px; padding-bottom: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .step { padding: 24px 20px; }
    .partners-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Pricing table -> layout en cartes empilees pour mobile */
    .pricing-table-wrapper { background: transparent; border: 0; box-shadow: none; }
    .pricing-table thead { display: none; }
    .pricing-table, .pricing-table tbody, .pricing-table tr { display: block; width: 100%; }
    .pricing-table tbody tr {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 18px 20px;
        margin-bottom: 14px;
        box-shadow: var(--shadow-sm);
    }
    .pricing-table tbody td {
        display: block;
        padding: 0;
        border: 0;
        text-align: left;
        white-space: normal;
    }
    .pricing-table tbody td:first-child {
        font-weight: 500;
        color: var(--text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
    }
    /* Mobile : prix au-dessus, suffixe en-dessous, le tout aligne a gauche */
    .pricing-table tbody td.price {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.95rem;
        color: var(--text-muted);
    }
    .pricing-table tbody td.price strong {
        font-size: 1.4rem;
        min-width: 0;
        text-align: left;
    }
    .pricing-table .price-suffix {
        font-size: 0.9rem;
    }

    .form-actions { justify-content: stretch; }
    .form-actions .btn { width: 100%; }
    .cards-grid { gap: 16px; }
    .card { padding: 24px 22px; }
    .callout { padding: 22px 20px; }
    .pricing-summary { padding: 22px 20px; }
}

/* Menu mobile (hamburger) */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 0 var(--pad-x);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
        box-shadow: var(--shadow-md);
    }
    .primary-nav.open {
        max-height: 500px;
        padding: 16px var(--pad-x) 20px;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        margin-bottom: 12px;
    }
    .primary-nav ul a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }
    .primary-nav .btn-nav {
        margin-top: 12px;
        align-self: stretch;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .footer-inner { padding: 0 var(--pad-x); }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .nav-toggle, .btn, .hero-image, .partner { display: none; }
    .section { padding: 20px 0; }
    a { color: var(--text); text-decoration: underline; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
