/* ===== RESET SIMPLE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== BASE ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("votre-texture-fond.webp") center/cover scroll;
    color: #ffffff;
}

/* HEADER */
.header {
    text-align: center;
    padding-top: 20px;
}

.logo {
    width: 360px;
    max-width: 90%;
    height: auto;
    margin-bottom: 10px;
}

nav {
    margin-bottom: 10px;
}

nav a {
    margin: 0 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-card {
    background: rgba(0, 0, 0, 0.55);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    display: inline-block;
    max-width: 900px;
}

.hero h1 {
    font-size: 26px;
    line-height: 1.4;
}

.hero-buttons {
    margin-top: 24px;
}

.blue {
    color: #2d6cdf;
}

/* BOUTONS GÉNÉRIQUES */
.btn {
    padding: 12px 22px;
    border-radius: 8px;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 18px;
}

.btn-blue { background: #2d6cdf; color: white; }
.btn-white { background: white; color: #2d6cdf; }
.btn-orange { background: #ff6e32; color: white; }
.btn-green { background: #22d161; color: white; }

/* SERVICES */
.services {
    text-align: center;
    padding: 60px 20px;
}

.services h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

.service-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background: white;
    color: #183153;
    width: 280px;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    text-align: center;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
}

.icon {
    font-size: 38px;
    margin-bottom: 10px;
}

/* IMPACT */
.impact {
    padding: 50px 12px;
    text-align: center;
}

.impact h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.impact p {
    margin-bottom: 20px;
}

.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.impact-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    color: #1a2b5f;
    min-width: 280px;
}

.impact-table th,
.impact-table td {
    padding: 12px 10px;
    border: 1px solid #cfd6e4;
    font-size: 14px;
}

.impact-table th {
    font-weight: 700;
}

.source {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
}

/* Légère marge à droite pour éviter la coupure du tableau sur mobile */
.impact-table {
    margin-right: 12px;
}


/* AVIS */
.avis-section {
    padding: 50px 20px;
    text-align: center;
}

.avis-section h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.subtitle {
    margin-top: -4px;
    margin-bottom: 30px;
    font-style: italic;
}

.avis-carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
}

.avis-track {
    display: flex;
    width: 100%;
    max-width: 820px;
    animation: slideAvis 64s infinite ease-in-out;
}

.avis-item {
    min-width: calc(100% - 30px);
    background: #ffffff;
    color: #1a2b5f;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-size: 18px;
    margin: 0 15px;
}

.stars {
    font-size: 26px;
    color: #f1c40f;
    margin-bottom: 8px;
}

@keyframes slideAvis {
    0% { transform: translateX(0%); }
    12.5% { transform: translateX(-100%); }
    25% { transform: translateX(-200%); }
    37.5% { transform: translateX(-300%); }
    50% { transform: translateX(-400%); }
    62.5% { transform: translateX(-500%); }
    75% { transform: translateX(-600%); }
    87.5% { transform: translateX(-700%); }
    100% { transform: translateX(0%); }
}

/* QR CODE */
.qr-container {
    margin-top: 40px;
}

.qr {
    width: 180px;
    height: auto;
    margin-top: 20px;
}

/* CONTACT */
.contact {
    text-align: center;
    padding: 60px 20px 40px;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact p {
    margin: 4px 0;
    font-size: 16px;
}

.contact-buttons .btn {
    margin: 10px;
}

/* BLOCS SEO TEXTE */
.seo-section {
    padding: 30px 20px 40px;
    text-align: center;
}

.seo-block {
    max-width: 800px;
    margin: 0 auto 30px;
}

.seo-block h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.seo-block p {
    font-size: 16px;
    line-height: 1.5;
}

/* BOUTON APPEL MOBILE (rond, haut droite) */
.call-top-mobile {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 62px;
    height: 62px;
    background: #ff6e32; /* orange plus visible sur fond sombre */
    color: #ffffff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 9999;
}

/* Masqué sur tablette / PC */
@media (min-width: 768px) {
    .call-top-mobile {
        display: none;
    }
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 18px 10px 24px;
    font-size: 14px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* AJUSTEMENTS MOBILE */
@media (max-width: 480px) {
    .hero-card {
        padding: 28px 18px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .btn {
        display: block;
        margin: 8px auto;
    }

    .impact-table th,
    .impact-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
}

/* Correction coupure texte tableau mobile */
.impact-table td,
.impact-table th {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 120px; /* limite pour éviter la coupure à droite */
}

@media (max-width: 480px) {
    .impact-table td,
    .impact-table th {
        max-width: 90px; /* encore plus strict sur très petit écran */
    }
}

