/* ---------------------------------- */
/* POLICES LOCALES (woff2)            */
/* ---------------------------------- */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------- */
/* VARIABLES & RESET                  */
/* ---------------------------------- */
:root {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --light-gray: #f4f4f4;
    --medium-gray: #e0e0e0;
    --dark-gray: #212121;
    --text-color: #333;
    --white: #ffffff;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    --container-width: 1100px;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ---------------------------------- */
/* BOUTONS                            */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    text-decoration: none;
}

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

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

/* ---------------------------------- */
/* HEADER                             */
/* ---------------------------------- */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-link img {
    max-width: 200px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-red);
    text-decoration: none;
}

.header-phone a {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.header-phone a:hover {
    text-decoration: none;
}

/* ---------------------------------- */
/* CONTENU DE PAGE                    */
/* ---------------------------------- */
.page-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content h1 {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    text-align: left;
    margin-top: 2rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* ---------------------------------- */
/* BLOG                               */
/* ---------------------------------- */
.blog-list {
    list-style: none;
    padding: 0;
}

.blog-item {
    border-bottom: 1px solid var(--medium-gray);
    padding: 20px 0;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item h2 {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.blog-item h2 a {
    color: var(--dark-gray);
}

.blog-item h2 a:hover {
    color: var(--primary-red);
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: #666;
}

/* ---------------------------------- */
/* SECTION HERO                       */
/* ---------------------------------- */
.hero {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-content .subtitle {
    font-size: 1rem;
    color: #666;
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
    margin-top: 1rem;
}

.hero-content .hero-image {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
    border-radius: var(--border-radius);
}

/* ---------------------------------- */
/* FORMULAIRE DE LEAD                 */
/* ---------------------------------- */
.lead-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lead-form h3 {
    text-align: center;
    margin-bottom: 5px;
}

.lead-form .form-notice {
    font-size: 0.9rem;
    text-align: center;
    color: #777;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.lead-form .btn {
    width: 100%;
    font-size: 1.1rem;
}

.lead-form .btn i {
    margin-right: 8px;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}
.form-message.success { color: green; }
.form-message.error { color: var(--dark-red); }

/* ---------------------------------- */
/* SECTION BENEFITS                   */
/* ---------------------------------- */
.benefits {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.benefit-card h3 {
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* SECTION WHY US                     */
/* ---------------------------------- */
.why-us {
    padding: 60px 0;
    background-color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.why-us-item {
    text-align: center;
}

.why-us-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.why-us-item h4 {
    margin-bottom: 5px;
}

/* ---------------------------------- */
/* SECTION CTA BOTTOM                 */
/* ---------------------------------- */
.cta-bottom {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.cta-form-container {
    max-width: 500px;
    margin: 30px auto 0;
}

.faq-section {
    margin-top: 40px;
    border-top: 1px solid var(--medium-gray);
    padding-top: 30px;
}
.faq-section h3 {
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* FOOTER                             */
/* ---------------------------------- */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 40px 0;
    text-align: center;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.footer-links a {
    color: var(--white);
    font-weight: 700;
}

.footer-info {
    font-size: 0.9rem;
}

.footer-info p {
    margin-bottom: 5px;
}

.footer-mediateur {
    font-size: 0.8rem;
    color: #aaa;
}

.footer-mediateur a {
    color: #ccc;
}

/* ---------------------------------- */
/* BANDEAU RGPD                       */
/* ---------------------------------- */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    z-index: 9999;
}

.rgpd-banner a {
    color: #ccc;
}

.rgpd-banner button {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
}

/* ---------------------------------- */
/* MEDIA QUERIES (RESPONSIVE)         */
/* ---------------------------------- */
@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .hero .container {
        flex-direction: row;
        align-items: center;
    }
    .hero-content { flex: 1; text-align: left; }
    .hero-form { flex: 1; max-width: 450px; }
    .hero-content .hero-image { display: none; }
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .why-us-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.2rem; }
}

@media (max-width: 767px) {
    .main-nav {
        display: none;
    }
    .header-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ---------------------------------- */
/* BLOG                               */
/* ---------------------------------- */
.blog-list {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-red);
}

.blog-card h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.blog-card h2 a {
    color: var(--dark-gray);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary-red);
}

.blog-card time {
    font-size: 0.85rem;
    color: #888;
}

.blog-card p {
    margin-top: 10px;
}

.btn-outline {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 700;
}

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

.article-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---------------------------------- */
/* TABLEAU COMPARATIF (article PFAS)  */
/* ---------------------------------- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.comparison-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.comparison-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

@media (max-width: 767px) {
    .comparison-table {
        font-size: 0.8em;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }
}

/* ---------------------------------- */
/* QUIZ INTERACTIF                    */
/* ---------------------------------- */
.qs-quiz {
    max-width: 560px;
    margin: 30px auto;
    padding: 28px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.qs-titre {
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #B71C1C;
}

.qs-question {
    display: none;
}

.qs-question.qs-active {
    display: block;
    animation: qs-fadein 0.35s ease;
}

.qs-question-text {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    text-align: center;
}

.qs-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qs-answer {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95em;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 2px solid #e0d0d0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
}

.qs-answer:hover {
    background: #fff0f0;
    border-color: #c62828;
    color: #2d2d2d;
    transform: translateY(-1px);
}

.qs-answer:active {
    transform: translateY(0);
}

.qs-answer.qs-selected {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
    pointer-events: none;
}

.qs-result {
    text-align: center;
    animation: qs-fadein 0.4s ease;
}

.qs-result-titre {
    font-size: 1.2em;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 12px;
}

.qs-result-texte {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.qs-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 32px;
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c62828 0%, #e65100 100%);
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 12px rgba(198, 40, 40, 0.3);
}

.qs-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
    color: #fff;
}

@keyframes qs-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .qs-quiz {
        padding: 20px 16px;
        margin: 20px 10px;
    }
    .qs-answer {
        padding: 12px 16px;
    }
}
