/* ================ Reset & Base ================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --primary-light: #ffccbc;
    --secondary: #1a237e;
    --accent: #00bfa5;
    --dark: #1a1d29;
    --gray-900: #1a1d29;
    --gray-700: #4a5168;
    --gray-500: #8b91a7;
    --gray-300: #d1d5e0;
    --gray-100: #f4f5fa;
    --gray-50: #fafbfd;
    --white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
    /* Empêche le débordement horizontal causé par le menu drawer
       positionné hors écran (translateX(100%)). Sinon, sur mobile,
       le panneau reste atteignable en scrollant latéralement. */
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================ Buttons ================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-900);
    color: white;
    border-color: var(--gray-900);
}

.btn-light {
    background: white;
    color: var(--gray-900);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ================ Header ================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 28px;
}

.logo-accent {
    color: var(--primary);
}

.logo-light {
    color: white;
}

.logo-light .logo-text {
    color: white;
}

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-900);
}

.phone-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: var(--transition);
}

/* ================ Hero ================ */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #fff8f5 0%, #fff 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--primary-light);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.hero-card .card-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.hero-card .card-time {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.hero-card-1 {
    top: 40px;
    left: 0;
    animation-delay: 0s;
}

.hero-card-2 {
    top: 180px;
    right: 0;
    animation-delay: 2s;
}

.hero-card-3 {
    bottom: 40px;
    left: 80px;
    animation-delay: 4s;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, var(--primary), #ff8a65);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* ================ Sections ================ */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-700);
}

/* ================ Features ================ */
.features {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-700);
    font-size: 15px;
}

/* ================ Appliances ================ */
.appliances-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.appliance-item {
    background: var(--gray-50);
    padding: 32px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.appliance-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.appliance-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.appliance-item h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.appliance-item p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ================ How it works ================ */
.how-it-works {
    background: var(--gray-50);
}

.steps {
    display: flex;
    align-items: stretch;
    gap: 24px;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 320px;
    background: white;
    padding: 40px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--gray-700);
    font-size: 15px;
}

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
}

/* ================ Testimonials ================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial p {
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.testimonial-author strong {
    font-weight: 700;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--gray-500);
}

/* ================ CTA ================ */
.cta {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--gray-900), var(--secondary));
    color: white;
    padding: 80px 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(80px);
}

.cta-card h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ================ Footer ================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col p {
    margin: 16px 0;
    font-size: 14px;
    color: var(--gray-500);
    max-width: 320px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--gray-500);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    transition: var(--transition);
}

.social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-500);
}

/* ================ Page Hero (sub-pages) ================ */
.page-hero {
    background: linear-gradient(135deg, #fff8f5 0%, #fff 60%);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: var(--gray-700);
    max-width: 640px;
    margin: 0 auto;
}

/* ================ Pricing ================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 2px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(255, 87, 34, 0.15);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
}

.pricing-period {
    color: var(--gray-500);
    font-size: 16px;
}

.pricing-note {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    font-size: 16px;
}

.pricing-features li.unavailable {
    color: var(--gray-300);
}

.pricing-features li.unavailable::before {
    content: '×';
    color: var(--gray-300);
}

/* ================ FAQ ================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    font-family: inherit;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--gray-700);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

/* ================ Services Page ================ */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-block.reverse {
    direction: rtl;
}

.service-block.reverse > * {
    direction: ltr;
}

.service-image {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    font-size: 140px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.service-content p {
    color: var(--gray-700);
    margin-bottom: 16px;
    font-size: 16px;
}

.service-content ul {
    margin: 16px 0 24px;
}

.service-content ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--gray-700);
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ================ Contact ================ */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    background: var(--gray-900);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-method-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    margin-bottom: 4px;
}

.contact-method span {
    color: var(--gray-500);
    font-size: 14px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #d1fae5;
    color: #065f46;
    text-align: center;
    display: none;
}

.form-message.visible {
    display: block;
}

/* ================ Checkout pages ================ */
.page-checkout {
    background: var(--gray-50);
}

.checkout-steps {
    display: flex;
    gap: 24px;
    align-items: center;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.checkout-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.checkout-step.active {
    color: var(--gray-900);
}

.checkout-step.active span {
    background: var(--primary);
    color: white;
}

.checkout-step.done {
    color: var(--success);
}

.checkout-step.done span {
    background: var(--success);
    color: white;
}

.checkout-back {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.checkout-back:hover {
    color: var(--primary);
}

.checkout-section {
    padding: 48px 0 80px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
}

.checkout-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.checkout-form h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.checkout-intro {
    color: var(--gray-700);
    margin-bottom: 32px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.form-section-title:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-500);
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
}

/* Récapitulatif */
.checkout-summary {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 90px;
}

.checkout-summary h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.summary-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.summary-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.summary-item span {
    font-size: 13px;
    color: var(--gray-500);
}

.summary-features {
    margin-bottom: 20px;
}

.summary-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-top: 2px solid var(--gray-100);
    margin-top: 8px;
}

.summary-total span {
    font-weight: 600;
    color: var(--gray-900);
}

.summary-total strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.summary-total strong span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
}

.summary-badge {
    background: var(--gray-50);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-700);
    text-align: center;
    margin-top: 16px;
}

.summary-reference {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
}

.summary-reference code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--gray-900);
}

/* Paiement SEPA */
.payment-header {
    margin-bottom: 24px;
}

.payment-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sepa-mandate {
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.sepa-mandate h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sepa-mandate p {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 6px;
    line-height: 1.5;
}

.payment-trust {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 12px;
}

.payment-trust div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-700);
}

/* GoCardless block */
.gocardless-block {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border: 2px solid #00857C;
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
}

.gocardless-logo {
    margin-bottom: 16px;
}

.gocardless-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gocardless-block > p {
    color: var(--gray-700);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gocardless-features {
    display: grid;
    gap: 12px;
}

.gc-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid #e0f2f1;
}

.gc-feature > span:first-child {
    font-size: 22px;
    flex-shrink: 0;
}

.gc-feature strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.gc-feature > div > span {
    font-size: 12px;
    color: var(--gray-500);
}

.payment-info {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.payment-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.payment-info ol {
    padding-left: 20px;
}

.payment-info ol li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--gray-700);
}

.gc-btn {
    background: #00857C;
    border-color: #00857C;
    gap: 12px;
}

.gc-btn:hover {
    background: #006b64;
    border-color: #006b64;
    box-shadow: 0 8px 24px rgba(0, 133, 124, 0.3);
}

.gc-btn .gc-arrow {
    transition: transform 0.25s ease;
}

.gc-btn:hover .gc-arrow {
    transform: translateX(4px);
}

.payment-disclaimer {
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.5;
}

/* Overlay redirection */
.gc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.gc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gc-overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.gc-overlay-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 8px;
}

.gc-overlay-content p {
    color: var(--gray-700);
    font-size: 14px;
}

.gc-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #e0f2f1;
    border-top-color: #00857C;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confirmation */
.confirmation-section {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.confirmation-card {
    background: white;
    padding: 56px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--gray-100);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    animation: pulse 2s ease-in-out infinite;
}

.confirmation-card h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.confirmation-lead {
    font-size: 17px;
    color: var(--gray-700);
    margin-bottom: 32px;
}

.confirmation-details {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 8px 24px;
    margin-bottom: 32px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--gray-500);
}

.next-steps {
    text-align: left;
    margin-bottom: 32px;
}

.next-steps h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.next-step {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.next-step > span {
    font-size: 22px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .checkout-summary {
        position: static;
    }
    .checkout-steps {
        display: none;
    }
}

@media (max-width: 768px) {
    .checkout-form,
    .confirmation-card {
        padding: 24px;
    }
}

/* ================ Pages légales ================ */
.legal-page {
    padding: 64px 0 80px;
    background: white;
}

.legal-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.legal-page h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.legal-updated {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-toc {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 48px;
    border-left: 3px solid var(--primary);
}

.legal-toc strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
    columns: 2;
    column-gap: 24px;
}

.legal-toc li {
    counter-increment: toc;
    padding: 4px 0;
    break-inside: avoid;
}

.legal-toc li::before {
    content: counter(toc) ". ";
    color: var(--primary-dark);
    font-weight: 700;
    margin-right: 4px;
}

.legal-toc a {
    color: var(--gray-900);
    font-size: 14px;
    transition: var(--transition);
}

.legal-toc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-900);
}

.legal-content section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.legal-content h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--gray-900);
}

.legal-content p {
    margin-bottom: 14px;
    color: var(--gray-700);
}

.legal-content ul,
.legal-content ol {
    margin: 12px 0 18px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.legal-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--primary);
}

.legal-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--secondary);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.legal-table th {
    background: var(--gray-50);
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-100);
}

.legal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-footer {
    margin-top: 48px;
    padding: 20px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--gray-700);
    font-size: 14px;
}

.footer-mono a {
    color: rgba(245, 233, 200, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-mono a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .legal-toc ol {
        columns: 1;
    }
    .legal-table {
        font-size: 13px;
    }
    .legal-table th,
    .legal-table td {
        padding: 10px;
    }
}

/* ================ Page article ================ */
.container-narrow {
    max-width: 760px;
}

.article-page {
    padding: 48px 0 64px;
    background: white;
}

.article-back {
    display: inline-block;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: var(--transition);
}

.article-back:hover {
    color: var(--primary-dark);
}

.article-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 12px 0 28px;
    color: var(--gray-900);
}

.article-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 32px;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.article-author-row strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.article-author-row span {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: capitalize;
}

.article-lead {
    font-size: 21px;
    line-height: 1.55;
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 32px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
    font-family: 'Fraunces', Georgia, serif;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-900);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content p::first-letter {
    font-size: 1em;
}

.article-content p:first-of-type::first-letter {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4em;
    float: left;
    line-height: 0.85;
    padding-right: 12px;
    padding-top: 6px;
    color: var(--primary-dark);
    font-weight: 700;
}

.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.article-signature {
    font-style: italic;
    color: var(--gray-700);
    font-size: 15px;
    margin: 0;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
}

.article-share a {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-700);
    transition: var(--transition);
}

.article-share a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

.article-count {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 500;
}

@media (max-width: 768px) {
    .article-content {
        font-size: 17px;
    }
    .article-lead {
        font-size: 18px;
        padding-left: 16px;
    }
}

/* ================ Espace membre ================ */
.header-login {
    color: #f5e9c8;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.header-login:hover {
    color: var(--primary);
    background: rgba(245, 233, 200, 0.08);
}

.member-badge {
    background: var(--primary);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    padding: 8px 16px;
}

.btn-text:hover {
    color: #dc2626;
}

.page-member .header {
    background: rgba(10, 21, 48, 0.97);
}

.page-member .header .btn-outline {
    color: #f5e9c8;
    border-color: rgba(245, 233, 200, 0.3);
}

.page-member .header .btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Hero membre */
.member-hero {
    background: linear-gradient(135deg, #0a1530 0%, #0f1e3d 60%, #15264d 100%);
    color: #f5e9c8;
    padding: 60px 0 40px;
    text-align: center;
}

.member-greeting {
    color: rgba(245, 233, 200, 0.7);
    font-size: 16px;
    margin-bottom: 8px;
}

.member-greeting strong {
    color: var(--primary);
}

.member-hero h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
}

.member-hero p {
    color: rgba(245, 233, 200, 0.7);
    font-size: 17px;
}

/* Sections membre */
.member-section {
    padding: 56px 0;
}

.member-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.member-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.member-date {
    color: var(--gray-500);
    font-size: 14px;
    text-transform: capitalize;
}

/* Article à la une */
.featured-article {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    max-width: 900px;
}

.article-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.featured-article h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-excerpt {
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Filtres */
.member-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--gray-100);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.filter-btn.active {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Grille articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.member-article {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
}

.member-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.member-article-flag {
    font-size: 32px;
    margin-bottom: 12px;
}

.member-article h4 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 10px;
}

.member-article p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Espace abonnement */
.account-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    max-width: 720px;
}

.account-info {
    margin-bottom: 24px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
    gap: 16px;
    flex-wrap: wrap;
}

.account-row:last-child {
    border-bottom: none;
}

.account-row span {
    color: var(--gray-500);
}

.status-active {
    color: var(--success);
}

.account-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

/* Page connexion */
.auth-section {
    padding: 80px 0;
    background: var(--gray-50);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 440px;
    margin: 0 auto;
}

.auth-card h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 32px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
}

.auth-remember input {
    width: auto;
}

.auth-forgot {
    font-size: 13px;
    color: var(--primary-dark);
}

.auth-error {
    display: none;
    margin-top: 16px;
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

.auth-divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-100);
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 12px;
    color: var(--gray-500);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-login {
        display: none;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .featured-article {
        padding: 24px;
    }
    .auth-card {
        padding: 24px;
    }
}

/* ================ Live news section ================ */
.live-section {
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: livepulse 1.5s ease-in-out infinite;
}

@keyframes livepulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.live-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    display: block;
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.live-card-flag {
    font-size: 32px;
    margin-bottom: 12px;
}

.live-card-date {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 600;
    margin-bottom: 10px;
}

.live-card h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.live-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.55;
    margin-bottom: 14px;
}

.live-card-link {
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
    transition: var(--transition);
}

.live-card:hover .live-card-link {
    color: var(--primary);
}

.live-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.live-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

.live-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.live-error p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.live-mention {
    text-align: center;
    color: var(--gray-700);
    font-size: 15px;
}

.live-mention a {
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 1024px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .live-grid {
        grid-template-columns: 1fr;
    }
}

/* ================ Menu déroulant ================ */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 233, 200, 0.08);
    border: 1px solid rgba(245, 233, 200, 0.15);
    color: #f5e9c8;
    padding: 9px 16px 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.menu-btn span:not(.menu-btn-label) {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-btn span:not(.menu-btn-label):not(:last-of-type) {
    margin-bottom: 4px;
}

/* Group bars in a column */
.menu-btn {
    display: inline-flex;
}
.menu-btn::before {
    content: '';
    width: 18px;
    height: 14px;
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-size: 18px 2px;
    background-position: 0 0, 0 6px, 0 12px;
    background-repeat: no-repeat;
    transition: var(--transition);
}
.menu-btn span:not(.menu-btn-label) {
    display: none;
}

.menu-btn:hover {
    background: rgba(245, 233, 200, 0.15);
    border-color: rgba(201, 160, 74, 0.4);
    color: var(--primary);
}

.menu-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.menu-btn.active::before {
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-size: 18px 2px;
    background-position: 0 6px, 0 6px;
    transform: rotate(45deg);
    height: 14px;
}

.menu-btn-label {
    display: inline;
    line-height: 1;
}

/* Panel */
.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 90vw);
    height: 100vh;
    background: white;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    z-index: 200;
    padding: 80px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-panel.open {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-900);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-close:hover {
    background: var(--gray-900);
    color: white;
    transform: rotate(90deg);
}

.menu-list {
    flex: 1;
    margin-bottom: 24px;
}

.menu-link {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    font-family: 'Fraunces', Georgia, serif;
}

.menu-link::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: var(--transition);
}

.menu-link:hover {
    padding-left: 12px;
    color: var(--primary-dark);
}

.menu-link:hover::after {
    opacity: 1;
    right: 4px;
}

.menu-footer {
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 48, 0.5);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ================ Theme Globe (newsletter) ================ */
.theme-globe {
    --primary: #c9a04a;
    --primary-dark: #a78535;
    --primary-light: #f5e9c8;
    --secondary: #0f1e3d;
    --dark: #0a1530;
    --gray-900: #0a1530;
}

.theme-globe .header {
    background: rgba(10, 21, 48, 0.97);
    border-bottom: 1px solid rgba(201, 160, 74, 0.15);
    backdrop-filter: blur(12px);
}

.theme-globe .header .logo,
.theme-globe .header .logo-text {
    color: #f5e9c8;
}

.theme-globe .header .nav-link {
    color: rgba(245, 233, 200, 0.7);
}

.theme-globe .header .nav-link:hover,
.theme-globe .header .nav-link.active {
    color: var(--primary);
    background: rgba(201, 160, 74, 0.1);
}

.theme-globe .header .btn-primary {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    font-weight: 700;
}

.theme-globe .header .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 8px 24px rgba(201, 160, 74, 0.35);
}

.theme-globe .hero {
    background: linear-gradient(135deg, #0a1530 0%, #0f1e3d 60%, #15264d 100%);
    color: #f5e9c8;
    position: relative;
    overflow: hidden;
}

.theme-globe .hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(120px);
    pointer-events: none;
}

.theme-globe .hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(100px);
    pointer-events: none;
}

.theme-globe .hero-mono {
    position: relative;
    z-index: 1;
}

.theme-globe .hero h1 {
    color: #f5e9c8;
}

.theme-globe .hero-badge {
    background: rgba(201, 160, 74, 0.15);
    color: var(--primary);
    border: 1px solid rgba(201, 160, 74, 0.3);
}

.theme-globe .hero p {
    color: rgba(245, 233, 200, 0.8);
}

.theme-globe .hero strong {
    color: var(--primary);
}

.theme-globe .highlight {
    color: var(--primary);
}

.theme-globe .highlight::after {
    background: rgba(201, 160, 74, 0.2);
}

.theme-globe .hero .btn-primary {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.theme-globe .hero .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.theme-globe .hero .btn-outline {
    background: transparent;
    color: #f5e9c8;
    border-color: rgba(245, 233, 200, 0.3);
}

.theme-globe .hero .btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.theme-globe .hero-mention {
    color: rgba(245, 233, 200, 0.6);
}

.theme-globe .section-tag,
.theme-globe .newsletter-item a,
.theme-globe .checkbox-group a {
    color: var(--primary-dark);
}

.theme-globe .newsletter-avatar {
    background: var(--secondary);
    color: var(--primary);
}

.theme-globe .newsletter-tag {
    background: var(--secondary);
    color: var(--primary);
}

.theme-globe .newsletter-footer {
    border-left-color: var(--primary);
}

.theme-globe .pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(15, 30, 61, 0.15);
}

.theme-globe .pricing-badge {
    background: var(--secondary);
    color: var(--primary);
}

.theme-globe .pricing-amount {
    color: var(--secondary);
}

.theme-globe .step-number {
    background: var(--secondary);
    color: var(--primary);
    font-size: 22px;
}

.theme-globe .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.theme-globe .btn-primary:hover {
    background: var(--dark);
    border-color: var(--dark);
    box-shadow: 0 8px 24px rgba(15, 30, 61, 0.3);
}

.theme-globe .cta-card {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
}

.theme-globe .cta-card::before {
    background: var(--primary);
    opacity: 0.25;
}

.theme-globe .cta-card .btn-primary {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.theme-globe .cta-card .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.theme-globe .footer-mono {
    background: var(--dark);
    color: rgba(245, 233, 200, 0.5);
    border-top: 1px solid rgba(201, 160, 74, 0.15);
}

.theme-globe .summary-icon {
    background: var(--secondary);
    color: var(--primary);
}

.theme-globe .summary-total strong {
    color: var(--secondary);
}

.theme-globe .checkout-step.active span {
    background: var(--primary);
    color: var(--dark);
}

.theme-globe .form-group input:focus,
.theme-globe .form-group select:focus,
.theme-globe .form-group textarea:focus {
    border-color: var(--primary);
}

.theme-globe .appliance-item:hover {
    border-color: var(--primary);
}


.serif {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.01em;
}

.hero-mention {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-500);
}

/* Aperçu newsletter */
.newsletter-preview {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.newsletter-header {
    padding: 20px 28px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.newsletter-from {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.newsletter-from strong {
    display: block;
    font-size: 15px;
}

.newsletter-from span {
    font-size: 13px;
    color: var(--gray-500);
}

.newsletter-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.newsletter-content {
    padding: 32px;
}

.newsletter-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.newsletter-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.newsletter-item:last-of-type {
    border-bottom: none;
}

.item-flag {
    font-size: 28px;
    flex-shrink: 0;
}

.newsletter-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.newsletter-item p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.newsletter-item a {
    color: var(--primary);
    font-weight: 600;
}

.newsletter-footer {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.newsletter-footer p {
    font-size: 14px;
    color: var(--gray-700);
    margin: 0;
}

.themes-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* ================ Mono page ================ */
.pricing-single {
    max-width: 420px;
    margin: 0 auto;
}

.pricing-single .pricing-card.featured {
    transform: none;
}


.hero-mono {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-mono h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    margin: 24px 0;
    letter-spacing: -0.02em;
}

.hero-mono p {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 32px;
}

.hero-mono .hero-actions {
    justify-content: center;
}

.section-light {
    background: var(--gray-50);
}

.appliances-grid {
    grid-template-columns: repeat(6, 1fr);
}

.appliance-item h4 {
    margin: 0;
}

.appliance-item p {
    display: none;
}

.steps {
    align-items: stretch;
}

.steps .step-arrow {
    display: none;
}

.contact-form-mono {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.footer-mono {
    background: var(--gray-900);
    color: var(--gray-500);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-700);
}

/* ================ Responsive ================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .appliances-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
    .service-block {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav,
    .phone-link {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .header-container {
        gap: 16px;
    }
    .hero {
        padding: 48px 0 60px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        height: 360px;
    }
    .hero-shape {
        width: 260px;
        height: 260px;
    }
    .hero-stats {
        gap: 24px;
    }
    section {
        padding: 60px 0;
    }
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .appliances-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .contact-form-mono {
        padding: 24px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cta-card {
        padding: 48px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        box-shadow: var(--shadow-md);
    }
    .nav.open .nav-list {
        flex-direction: column;
    }
}

/* ================ Espace admin ================ */
.admin-section { padding: 48px 0 80px; min-height: 70vh; }

.admin-login {
    max-width: 420px; margin: 40px auto; background: white;
    padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid var(--gray-100);
}
.admin-login h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.admin-login p { color: var(--gray-700); margin-bottom: 24px; }

.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.admin-header h1 { font-size: 28px; font-weight: 800; }
.admin-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-stats { font-size: 13px; color: var(--gray-500); }

.admin-articles { display: flex; flex-direction: column; gap: 10px; }
.admin-article-row {
    background: white; border: 1px solid var(--gray-100);
    border-radius: var(--radius-md); padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.admin-article-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.admin-article-meta { font-size: 13px; color: var(--gray-500); }
.admin-article-actions { display: flex; gap: 8px; align-items: center; }

.admin-editor-overlay {
    position: fixed; inset: 0; background: rgba(10,21,48,0.5);
    backdrop-filter: blur(4px); z-index: 300;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 20px; overflow-y: auto;
}
.admin-editor {
    background: white; border-radius: var(--radius-lg);
    max-width: 720px; width: 100%; padding: 32px;
    box-shadow: var(--shadow-lg);
}
.admin-editor-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.admin-editor-head h2 { font-size: 22px; font-weight: 800; }
.admin-close {
    width: 36px; height: 36px; border: none; background: var(--gray-100);
    border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1;
}
.admin-close:hover { background: var(--gray-900); color: white; }
.admin-editor-options { display: flex; gap: 24px; margin: 8px 0 24px; flex-wrap: wrap; }
.admin-editor textarea { font-family: inherit; resize: vertical; }

/* Filtres admin (publié / brouillon) */
.admin-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-filter {
    background: white; border: 2px solid var(--gray-100); color: var(--gray-700);
    padding: 8px 16px; border-radius: 100px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 600;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.admin-filter:hover { border-color: var(--primary); color: var(--primary-dark); }
.admin-filter.active { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }
.admin-filter-count {
    background: var(--gray-100); color: var(--gray-700);
    border-radius: 100px; padding: 1px 8px; font-size: 12px; min-width: 20px; text-align: center;
}
.admin-filter.active .admin-filter-count { background: rgba(255,255,255,0.2); color: var(--primary); }

/* Badge statut sur chaque article */
.admin-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 100px; text-transform: uppercase;
    letter-spacing: 0.3px; vertical-align: middle; margin-right: 6px;
}
.admin-badge-pub { background: #d1fae5; color: #065f46; }
.admin-badge-draft { background: #fef3c7; color: #92400e; }

/* Sélecteur de zone de paiement (Europe / US) */
.zone-selector { margin: 20px 0; }
.zone-label { font-weight: 600; font-size: 14px; margin-bottom: 10px; color: var(--gray-700); }
.zone-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zone-option {
    background: white; border: 2px solid var(--gray-100); border-radius: var(--radius-md);
    padding: 16px 12px; cursor: pointer; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: var(--transition); font-family: inherit;
}
.zone-option:hover { border-color: var(--primary); }
.zone-option.active { border-color: var(--primary); background: var(--primary-light); }
.zone-flag { font-size: 28px; }
.zone-name { font-weight: 700; font-size: 15px; color: var(--gray-900); }
.zone-detail { font-size: 12px; color: var(--gray-500); }
.zone-option.active .zone-detail { color: var(--primary-dark); }

/* Sélecteur de langue (header) */
.lang-switch { position: relative; }
.lang-current {
    background: rgba(245, 233, 200, 0.08);
    border: 1px solid rgba(245, 233, 200, 0.15);
    color: #f5e9c8; padding: 8px 12px; border-radius: 8px;
    cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; transition: var(--transition);
}
.lang-current:hover { background: rgba(245, 233, 200, 0.15); border-color: rgba(201,160,74,0.4); }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: white; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
    padding: 6px; min-width: 160px; z-index: 250;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer;
    font-family: inherit; font-size: 14px; color: var(--gray-900); transition: var(--transition);
}
.lang-menu button:hover { background: var(--gray-100); }
.lang-menu button.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
@media (max-width: 768px) {
    .lang-current { padding: 7px 10px; font-size: 12px; }
}

/* Header centré (landing) : langue+menu à gauche, logo agrandi au centre, CTA à droite */
.header-centered .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}
.header-centered .header-right { justify-self: end; }

.logo-hero {
    justify-self: center;
    font-size: 32px;
    gap: 12px;
}
.logo-hero .logo-icon { font-size: 40px; }

@media (max-width: 768px) {
    /* Mobile : on abandonne la grille 3 colonnes (trop serrée).
       Logo à gauche, langue + menu à droite, on masque le bouton S'abonner
       redondant (déjà présent dans le drawer et dans le hero). */
    .header-centered .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .header-centered .header-right { display: none; }
    .logo-hero { order: 0; font-size: 22px; gap: 8px; }
    .logo-hero .logo-icon { font-size: 26px; }
    .header-left { order: 1; gap: 8px; }
    .header-left .menu-btn-label { display: none; }
}
