/* ==================== 
   VARIABLES GLOBALES 
==================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #1e1b4b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 25px 50px rgba(99, 102, 241, 0.25);
    --radius: 16px;
    --radius-sm: 8px;
}


/* ==================== 
   RESET & BASE 
==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==================== 
   NAVIGATION 
==================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

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

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}


/* ==================== 
   HERO SECTION 
==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #cffafe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero-icon i {
    font-size: 120px;
    color: white;
}

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


/* ==================== 
   BOUTONS 
==================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

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

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

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* ==================== 
   SECTIONS COMMUNES 
==================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}


/* ==================== 
   FEATURES 
==================== */

.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius);
    background: var(--light);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 35px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
}


/* ==================== 
   SERVICES PREVIEW 
==================== */

.services-preview {
    padding: 100px 0;
    background: linear-gradient(180deg, white 0%, #f8fafc 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
}

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

.service-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.link-arrow:hover {
    gap: 15px;
}

.center-btn {
    text-align: center;
}


/* ==================== 
   CTA SECTION 
==================== */

.cta {
    padding: 100px 0;
    background: var(--gradient);
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}


/* ==================== 
   PAGE HEADER 
==================== */

.page-header {
    padding: 150px 0 80px;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* ==================== 
   SERVICES DETAIL 
==================== */

.services-detail {
    padding: 80px 0;
}

.service-detail-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.service-detail-card.reverse {
    flex-direction: row-reverse;
}

.service-icon-large {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.service-icon-large i {
    font-size: 70px;
    color: white;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.service-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
    margin: 20px 0;
}

.service-content li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-content li i {
    color: var(--success);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.price-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    font-size: 1rem;
}


/* ==================== 
   HOW IT WORKS 
==================== */

.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: -30px;
    font-size: 30px;
    color: var(--primary-light);
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
}


/* ==================== 
   CONTACT SECTION 
==================== */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-intro {
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.availability {
    font-size: 0.9rem;
    color: var(--success);
}

.emergency-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
}

.emergency-banner i {
    font-size: 40px;
    color: var(--accent);
}


/* ==================== 
   FORMULAIRE 
==================== */

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-note {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.form-note i {
    color: var(--primary);
}


/* ====================
   MESSAGE SUCCÈS
==================== */

.form-success {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid var(--success);
    padding: 20px 25px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.form-success i {
    font-size: 28px;
    color: var(--success);
    flex-shrink: 0;
}

.form-success p {
    color: #065f46;
    font-weight: 500;
    margin: 0;
}


/* ==================== 
   FAQ 
==================== */

.faq-section {
    padding: 80px 0;
    background: var(--light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item h3 i {
    color: var(--primary);
}

.faq-item p {
    color: var(--gray);
    padding-left: 32px;
}


/* ==================== 
   FOOTER 
==================== */

footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}


/* ====================
   HERO BADGE & TRUST
==================== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--gray-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.pulse-dot {
    position: relative;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-green 2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--gray);
}

.hero-trust .trust-stars i {
    color: var(--accent);
    font-size: 0.9rem;
}


/* ====================
   AVATAR CARD
==================== */

.avatar-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    width: 280px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1;
}

.avatar-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.avatar-circle {
    width: 110px;
    height: 110px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
    border: 4px solid white;
}

.avatar-circle i {
    font-size: 50px;
    color: white;
}

.avatar-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.avatar-location {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.avatar-location i {
    color: var(--primary);
    margin-right: 4px;
}

.avatar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}

.avatar-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.88rem;
}

.avatar-rating i {
    color: var(--accent);
    font-size: 0.85rem;
}

.avatar-rating span {
    font-weight: 700;
    color: var(--dark);
    margin-left: 4px;
}


/* Badges flottants */

.floating-badge {
    position: absolute;
    background: white;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    border: 1px solid var(--gray-light);
    white-space: nowrap;
    z-index: 2;
    will-change: transform;
}

.floating-badge i {
    color: var(--primary);
}

.badge-1 {
    top: 10%;
    right: -30px;
    animation: float-badge 4s ease-in-out infinite;
}

.badge-2 {
    top: 50%;
    right: -10px;
    animation: float-badge 4s ease-in-out infinite 1.3s;
}

.badge-3 {
    bottom: 10%;
    right: -20px;
    animation: float-badge 4s ease-in-out infinite 2.6s;
}

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


/* Wrap hero-image en relatif */

.hero-image {
    position: relative;
    z-index: 1;
    padding-right: 60px;
}


/* ====================
   STATS SECTION
==================== */

.stats {
    background: var(--dark);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.stat-number {
    display: inline;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-suffix {
    display: inline;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
    letter-spacing: 0.02em;
}


/* ====================
   TÉMOIGNAGES
==================== */

.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 35px;
    border: 1px solid var(--gray-light);
    transition: all 0.3s;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: var(--primary-light);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-stars {
    margin-bottom: 15px;
}

.testimonial-stars i {
    color: var(--accent);
    font-size: 0.95rem;
}

.testimonial-card p {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.author-avatar.avatar-purple {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.author-avatar.avatar-cyan {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.author-avatar.avatar-amber {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.author-info strong {
    display: block;
    color: var(--dark);
    font-weight: 600;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}


/* ====================
   ANIMATIONS SCROLL
==================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: none;
}


/* Délai en cascade pour les grilles */

.features-grid .feature-card:nth-child(2),
.stats-grid .stat-item:nth-child(2),
.testimonials-grid .testimonial-card:nth-child(2),
.services-grid .service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(3),
.stats-grid .stat-item:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(3),
.services-grid .service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(4),
.stats-grid .stat-item:nth-child(4) {
    transition-delay: 0.3s;
}


/* ====================
   BADGE NON DISPONIBLE
==================== */

.hero-badge-busy {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.dot-busy {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-status-busy {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.dot-busy-sm {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}


/* Correction : status-dot utilise ::before pour l'animation (GPU-friendly) */

.status-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-green 2s ease-in-out infinite;
    will-change: transform, opacity;
}


/* ====================
   ÉTOILES (AFFICHAGE)
==================== */

.stars {
    color: #e2e8f0;
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.stars i {
    font-size: 0.95rem;
}

.stars-1 i:nth-child(-n+1),
.stars-2 i:nth-child(-n+2),
.stars-3 i:nth-child(-n+3),
.stars-4 i:nth-child(-n+4),
.stars-5 i:nth-child(-n+5) {
    color: var(--accent);
}


/* ====================
   INPUT ÉTOILES (CSS-ONLY)
   Ordre DOM : 5→1, affiché 1→5 via row-reverse
==================== */

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin: 8px 0 4px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.1s;
}

.star-rating input:checked+label,
.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: var(--accent);
}


/* ====================
   SECTION AVIS CLIENTS
==================== */

.reviews-section {
    padding: 100px 0;
    background: var(--light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.review-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--gray-light);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.review-comment {
    color: var(--gray);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    color: var(--dark);
    font-weight: 600;
}

.review-date {
    font-size: 0.82rem;
    color: var(--gray);
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-reviews i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    display: block;
}


/* Formulaire de soumission d'avis */

.review-form-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.review-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.review-form-wrapper h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.form-error i {
    color: #e11d48;
    font-size: 1.2rem;
}

.form-error p {
    color: #be123c;
    font-weight: 500;
    margin: 0;
}


/* ====================
   STYLES ADMIN
==================== */

.admin-body {
    background: #f1f5f9;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}


/* Page de login */

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.admin-login-card {
    background: white;
    border-radius: var(--radius);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.admin-logo i {
    font-size: 1.8rem;
}

.admin-login-card h1 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.admin-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: left;
}

.admin-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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


/* Layout dashboard */

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-sidebar .admin-logo {
    color: white;
    justify-content: flex-start;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-logout-form {
    margin-top: auto;
}

.admin-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

.admin-main {
    padding: 40px;
    overflow-y: auto;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.8rem;
    color: var(--dark);
}

.admin-header h1 i {
    color: var(--primary);
    margin-right: 10px;
}


/* Cards du dashboard */

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
}

.admin-card h2 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h2 i {
    color: var(--primary);
}

.badge-count {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.badge-green {
    background: var(--success);
}


/* Disponibilité */

.availability-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
}

.status-available {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.status-unavailable {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.status-dot-green {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-red {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.toggle-off {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.toggle-off:hover {
    background: #fecdd3;
}

.toggle-on {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.toggle-on:hover {
    background: #bbf7d0;
}


/* Liste des avis */

.admin-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-review-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
}

.admin-review-info {
    flex: 1;
}

.admin-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.admin-review-header .stars {
    margin-bottom: 0;
}

.admin-review-header .review-date {
    margin-left: auto;
}

.admin-review-comment {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.admin-review-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.btn-approve {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-approve:hover {
    background: #bbf7d0;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-delete:hover {
    background: #fecdd3;
}

.admin-empty {
    color: var(--gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}


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


/* Bouton connexion développeur dans la navbar */

.nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: white !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nav-login::after {
    display: none !important;
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-icon {
        width: 200px;
        height: 200px;
        margin-top: 40px;
    }
    .hero-icon i {
        font-size: 80px;
    }
    /* Services - Tablette */
    .service-detail-card,
    .service-detail-card.reverse {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }
    .service-icon-large {
        width: 140px;
        height: 140px;
    }
    .service-icon-large i {
        font-size: 55px;
    }
    .service-content h2 {
        font-size: 1.6rem;
    }
    .service-content ul {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        max-width: 500px;
        margin: 20px auto;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .section-title {
        font-size: 2rem;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    /* Hero trust - correction mobile */
    .hero-trust {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 0.9rem;
    }
    .trust-stars {
        display: flex;
        justify-content: center;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .service-card {
        padding: 30px 20px;
    }
    /* Services - Mobile */
    .services-detail {
        padding: 40px 0;
    }
    .service-detail-card,
    .service-detail-card.reverse {
        padding: 30px 20px;
        gap: 25px;
        margin-bottom: 25px;
    }
    .service-icon-large {
        width: 100px;
        height: 100px;
    }
    .service-icon-large i {
        font-size: 40px;
    }
    .service-content h2 {
        font-size: 1.3rem;
    }
    .service-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .service-content ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .service-content li {
        font-size: 0.9rem;
    }
    .price-tag {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 992px) {
    /* Admin dashboard : sidebar en haut */
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 15px;
    }
    .admin-nav {
        flex-direction: row;
        flex: unset;
    }
    .admin-logout-form {
        margin-top: 0;
    }
    .admin-main {
        padding: 20px;
    }
    /* Avis en attente : actions en ligne */
    .admin-review-item {
        flex-direction: column;
    }
    .admin-review-actions {
        flex-direction: row;
    }
    .availability-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .review-form-wrapper {
        padding: 25px 20px;
    }
    .admin-review-header .review-date {
        margin-left: 0;
    }
}


/* ====================
   CORRECTIONS MOBILES
   (hero, badges, grilles)
==================== */

/* Masquer les badges flottants sur mobile — évite le débordement */
@media (max-width: 992px) {
    .hero-image {
        padding-right: 0;
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }
    .floating-badge {
        display: none;
    }
    .hero-trust {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    .stat-item {
        border-right: none;
        padding-bottom: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 15px 60px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .avatar-card {
        width: 240px;
    }
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 40px;
    }
    .features {
        padding: 60px 0;
    }
    .services-preview {
        padding: 60px 0;
    }
    .reviews-section {
        padding: 60px 0;
    }
    .cta {
        padding: 60px 0;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
}


/* ====================
   BOUTON APPEL FLOTTANT
==================== */

.call-btn-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
    transition: all 0.3s;
    white-space: nowrap;
}

.call-btn-float i {
    font-size: 1.15rem;
    animation: ring-anim 3s ease-in-out infinite;
}

.call-btn-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.55);
    color: white;
}

/* Texte visible seulement sur mobile */
.call-btn-float .call-label {
    display: none;
}

@media (max-width: 768px) {
    .call-btn-float .call-label {
        display: inline;
    }
}

@keyframes ring-anim {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%            { transform: rotate(-18deg); }
    20%            { transform: rotate(18deg); }
    30%            { transform: rotate(-12deg); }
    40%            { transform: rotate(12deg); }
    50%            { transform: rotate(-6deg); }
}


.icon-primary {
    color: var(--primary);
}


/* ====================
   SECTION CARTE
==================== */

.map-section {
    padding: 80px 0;
    background: white;
}

.map-section .section-title {
    margin-bottom: 10px;
}

.map-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 35px;
    font-size: 0.97rem;
}

#intervention-map {
    height: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
}

@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    #intervention-map {
        height: 300px;
    }
}


/* ====================
   SECTION TEST VITESSE
==================== */

.speedtest-section {
    padding: 70px 0;
    background: var(--light);
}

.speedtest-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 35px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-light);
}

.speedtest-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.speedtest-card h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.speedtest-desc {
    color: var(--gray);
    font-size: 0.92rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.speedtest-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 20px 0 15px;
    min-height: 85px;
    justify-content: center;
}

.speed-value {
    font-size: 3.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.speed-unit {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

.speed-status {
    font-size: 0.88rem;
    color: var(--gray);
    min-height: 18px;
    font-style: italic;
}

.speed-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 20px;
}

.speed-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.btn-speedtest {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

.btn-speedtest:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .speedtest-card {
        padding: 28px 18px;
    }
    .speed-value {
        font-size: 3rem;
    }
    .speedtest-section {
        padding: 50px 0;
    }
}


/* ====================
   ADMIN STATS ROW
==================== */

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-icon i {
    font-size: 1.4rem;
    color: white;
}

.admin-stat-info {
    flex: 1;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 4px;
}

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

.admin-stat-icon--green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.admin-stat-icon--amber {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}


/* ====================
   PAGE ACTUALITÉS
==================== */

.news-section {
    padding: 80px 0;
    background: var(--light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card--alerte {
    border-left-color: #f59e0b;
}

.news-card--securite {
    border-left-color: #6366f1;
}

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

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
}

.news-badge--alerte {
    background: #fef3c7;
    color: #92400e;
}

.news-badge--securite {
    background: #ede9fe;
    color: #5b21b6;
}

.news-date {
    font-size: 0.82rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.news-empty i {
    font-size: 3.5rem;
    color: var(--primary-light);
    display: block;
    margin-bottom: 20px;
}

.news-empty h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

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


/* ====================
   ADMIN NEWS
==================== */

.admin-news-form .field-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-news-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
}

.admin-news-info {
    flex: 1;
}

.admin-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.news-date-sm {
    font-size: 0.8rem;
    color: var(--gray);
    margin-left: auto;
}

.admin-news-content {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .admin-news-item {
        flex-direction: column;
    }

    .news-date-sm {
        margin-left: 0;
    }
}


/* ====================
   CMS TARIFS
==================== */

.prices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 25px;
    margin-bottom: 20px;
}

.btn-save-prices {
    padding: 10px 22px;
}

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

.prices-section-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prices-section-label--top {
    margin-top: 20px;
}


/* ====================
   PULL-TO-REFRESH
==================== */

.ptr-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    z-index: 9999;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: opacity 0.2s;
    pointer-events: none;
}

.ptr-indicator i {
    font-size: 1rem;
    transition: transform 0.3s;
}


/* ====================
   NOTIFICATION DIAGNOSTIC
==================== */

.diag-notif {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(99,102,241,.2);
    border-left: 4px solid var(--primary);
    z-index: 1100;
    max-width: 320px;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}

.diag-notif.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.diag-notif-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.diag-notif-content {
    flex: 1;
    min-width: 0;
}

.diag-notif-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.diag-notif-content span {
    font-size: 0.78rem;
    color: var(--gray);
}

.diag-notif-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.diag-notif-btn:hover { opacity: 0.85; }

.diag-notif-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.diag-notif-close:hover { color: var(--dark); }

@media (max-width: 480px) {
    .diag-notif {
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* ====================
   MODAL DIAGNOSTIC
==================== */

.diag-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,27,75,.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.diag-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.diag-modal {
    background: white;
    border-radius: var(--radius);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.diag-modal-overlay.show .diag-modal {
    transform: scale(1);
}

.diag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gray-light);
}

.diag-modal-header h3 {
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.diag-modal-header h3 i { color: var(--primary); }

.diag-close-btn {
    background: var(--gray-light);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--gray);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.diag-close-btn:hover { background: #e0e0e0; color: var(--dark); }

.diag-modal-body {
    padding: 20px 24px 24px;
}

.diag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.diag-item {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.diag-label {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diag-label i { color: var(--primary); width: 14px; }

.diag-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.diag-ok   { color: var(--success); }
.diag-warn { color: #f59e0b; }
.diag-info { color: var(--primary); }

.diag-speedtest-wrap {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.diag-speedtest-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.diag-speedtest-label i { color: var(--primary); }

.diag-speed-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.diag-speed-display .speed-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.diag-speed-display .speed-unit {
    font-size: 0.9rem;
    color: var(--gray);
}

.diag-speed-status {
    font-size: 0.82rem;
    color: var(--gray);
    margin: 8px 0 12px;
}

.diag-speed-btn {
    font-size: 0.9rem;
    padding: 10px 24px;
}

.diag-security-wrap {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.diag-score-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diag-score-title i { color: var(--primary); }

.diag-score-bar-wrap {
    height: 10px;
    background: var(--gray-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.diag-score-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
}

.score-good   { background: linear-gradient(90deg, var(--success), #34d399); }
.score-medium { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.score-low    { background: linear-gradient(90deg, #ef4444, #f87171); }

.diag-score-label { font-size: 0.82rem; }

.diag-tip {
    background: #f0f4ff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.diag-tip i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.diag-tip a { color: var(--primary); font-weight: 600; }

@media (max-width: 540px) {
    .diag-grid { grid-template-columns: 1fr; }
    .diag-modal-body { padding: 16px; }
}


/* ====================
   CALCULATEUR DE PRIX
==================== */

.calculator-section {
    padding: 80px 0;
    background: var(--light);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 36px;
    font-size: 0.97rem;
}

.calculator-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.calc-services h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-services h3 i { color: var(--primary); }

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.calc-option:hover { background: #eef0ff; }

.calc-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.calc-option input[type="checkbox"]:checked + .calc-option-content {
    color: var(--primary);
}

.calc-option:has(input:checked) {
    background: #eef0ff;
    border-color: var(--primary-light);
}

.calc-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.calc-option-name {
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-option-name i { color: var(--primary); width: 16px; }

.calc-option-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    white-space: nowrap;
}

.calc-result {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 80px;
    align-self: start;
}

.calc-total-label {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.calc-total {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.calc-note {
    font-size: 0.78rem;
    opacity: 0.8;
}

.calc-cta {
    background: white;
    color: var(--primary);
    font-size: 0.85rem;
    padding: 10px 18px;
    margin-top: 4px;
}

.calc-cta:hover { background: var(--light); }

.calc-disclaimer {
    font-size: 0.72rem;
    opacity: 0.7;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .calculator-card {
        grid-template-columns: 1fr;
    }
    .calc-result { position: static; }
}


/* ====================
   CONSEIL DU JOUR
==================== */

.conseil-section {
    padding: 40px 0;
    background: white;
}

.conseil-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #eef0ff 0%, #e0f7fa 100%);
    border-radius: var(--radius);
    padding: 24px 28px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
}

.conseil-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.conseil-content { flex: 1; }

.conseil-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 6px;
}

.conseil-text {
    font-size: 0.97rem;
    color: var(--dark);
    line-height: 1.55;
    font-style: italic;
}

.conseil-next {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conseil-next:hover { background: var(--primary); color: white; transform: rotate(180deg); }

@media (max-width: 600px) {
    .conseil-card { flex-wrap: wrap; gap: 14px; }
    .conseil-next { margin-left: auto; }
}


/* ====================
   VÉRIFICATEUR MOT DE PASSE
==================== */

.password-section {
    padding: 80px 0;
    background: var(--light);
}

.password-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.password-section .section-title i { color: var(--primary); }

.password-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.pwd-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.pwd-input-wrap:focus-within { border-color: var(--primary); }

.pwd-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: transparent;
}

.pwd-toggle {
    background: none;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    color: var(--gray);
    font-size: 1rem;
    transition: color 0.2s;
}

.pwd-toggle:hover { color: var(--primary); }

.pwd-strength-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pwd-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.pwd-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s, background-color 0.4s;
}

.pwd-weak      { background: #ef4444; }
.pwd-fair      { background: #f97316; }
.pwd-medium    { background: #f59e0b; }
.pwd-strong    { background: #22c55e; }
.pwd-very-strong { background: linear-gradient(90deg, #22c55e, #06b6d4); }

.pwd-label {
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.pwd-weak-text   { color: #ef4444; }
.pwd-medium-text { color: #f59e0b; }
.pwd-strong-text { color: #22c55e; }

.pwd-criteria {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.crit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray);
    transition: color 0.2s;
}

.crit-item i { font-size: 0.7rem; }

.crit-ok   { color: var(--success); }
.crit-ok i { color: var(--success); }

.crit-fail   { color: #ef4444; }
.crit-fail i { color: #ef4444; }

.pwd-security-note {
    background: #f0f4ff;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwd-security-note i { color: var(--primary); }
.pwd-security-note strong { color: var(--dark); }

@media (max-width: 500px) {
    .pwd-criteria { grid-template-columns: 1fr; }
    .password-card { padding: 20px; }
}


/* ====================
   CONTACT EMAIL
==================== */

.contact-email {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.contact-email:hover { text-decoration: underline; }


/* ====================
   LINK-ARROW FIX
==================== */

.link-arrow {
    white-space: nowrap;
}

.link-arrow i {
    vertical-align: middle;
}