/* --- VARIABLES & RESET (Adaptées au thème Vert) --- */
:root {
    --primary-color: #1B5E20; /* Vert forêt profond (Principal) */
    --primary-light: #2E7D32; /* Vert légèrement plus clair pour hover */
    --accent-color: #13a581;  /* Vert vif pour les actions/boutons */
    --secondary-color: #E8F5E9; /* Vert très pâle pour les fonds alternés */
    --text-color: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(27, 94, 32, 0.15);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #13a581;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

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

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

.bg-light {
    background-color: #e7f5e9;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* --- HEADER & NAV --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 110px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links > a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color : black ;
    position: relative;
}

.nav-links > a:hover {
    color: #13a581;
}

/* --- DROPDOWN MENU STYLES --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #13a581;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: #13a581;
}

.dropbtn::after {
    content: '\f107';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    top: 100%;
    left: 0;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    border-top: 4px solid #13a581;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: #e7f5e9;
    color: #13a581;
    border-left: 3px solid #13a581;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.cta-button {
    background-color: #13a581;
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(27, 94, 32, 0.7)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 110px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- PAGE BANNER (for service pages) --- */
.page-banner {
    background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(27, 94, 32, 0.7)), url('images/banner-bg.png');
    background-size: cover;
    background-position: center;
    padding: 160px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-banner .breadcrumb {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.page-banner .breadcrumb a {
    color: #c8e6c9;
}

.page-banner .breadcrumb a:hover {
    color: var(--white);
}

/* --- ABOUT SECTION --- */
.about-quote {
    border-left: 5px solid #13a581;
    padding-left: 20px;
    font-style: italic;
    font-size: 1.1rem;
    color: #13a581;
    margin: 20px 0;
}

/* --- SERVICES GENERAL --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #13a581;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top: 4px solid #13a581;
}

.card-icon {
    font-size: 2.5rem;
    color: #13a581;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
}

/* --- CUSTOM LISTS --- */
.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.custom-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #13a581;
    position: absolute;
    left: 0;
    top: 2px;
}

.arrow-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.arrow-list li::before {
    content: '\f054';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #13a581;
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 0.8rem;
}

/* --- SPECIFIC SECTIONS STYLING --- */
.highlight-box {
    background-color: #13a581;
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.highlight-box h3 { color: #81c784; }
.highlight-box p { color: #e8f5e9; }
.highlight-box ul { margin-top: 15px; }
.highlight-box li::before { color: #81c784; }

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    background-color: #13a581;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* --- ISO BADGE --- */
.iso-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.iso-badge {
    background-color: #13a581;
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
}

/* --- ACCOMPAGNEMENT STEPS (Timeline) --- */
.accompagnement-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.accompagnement-step {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1 1 140px;
    max-width: 160px;
    position: relative;
    border-top: 4px solid #13a581;
}

.accompagnement-step .step-num {
    background-color: #13a581;
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 12px;
}

.accompagnement-step h4 {
    font-size: 0.85rem;
    color: #13a581;
    margin-bottom: 0;
}

/* --- DOCUMENTS HIERARCHY --- */
.documents-hierarchy {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.doc-item {
    background: #e7f5e9;
    border: 2px solid #13a581;
    border-radius: var(--border-radius);
    padding: 15px 25px;
    text-align: center;
    font-weight: 600;
    color: #13a581;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* --- REFERENCES PAGE --- */
.references-section {
    margin-bottom: 60px;
}

.references-section h2 {
    margin-bottom: 30px;
}

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

.ref-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.ref-card img {
    max-height: 80px;
    width: auto;
    margin: 0 auto 15px;
    border-radius: 0;
}

.ref-card h4 {
    font-size: 0.95rem;
    color: #13a581;
    margin-bottom: 5px;
}

.ref-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- CONTACT PAGE --- */
.contact-form-wrapper,
.contact-info-wrapper {
    width: 100%;
}

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

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

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #13a581;
    margin-bottom: 8px;
}

.form-group .required {
    color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #13a581;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

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

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
}

/* Contact info cards */
.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 35px;
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: #e7f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.2rem;
    color: #13a581;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    color: #13a581;
    margin-bottom: 5px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.contact-info-item a {
    color: #13a581;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #13a581;
}

.contact-certifications {
    background: #e7f5e9;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.contact-certifications h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-engagements {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.contact-engagements h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-engagements .custom-list li {
    font-size: 0.9rem;
}

/* Contact form success / error messages */
.contact-success {
    background-color: #e8f5e9;
    border: 2px solid #13a581;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.contact-success i {
    font-size: 2.5rem;
    color: #13a581;
    margin-bottom: 10px;
}

.contact-success h3 {
    color: #13a581;
    margin-bottom: 5px;
}

.contact-success p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-error {
    background-color: #fbe9e7;
    border: 2px solid #e53935;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.contact-error i {
    font-size: 1.5rem;
    color: #e53935;
    margin-bottom: 8px;
}

.contact-error h3 {
    color: #c62828;
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-error ul {
    list-style: disc;
    padding-left: 20px;
}

.contact-error ul li {
    color: #c62828;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* --- FOOTER --- */
footer {
    background-color: #154b4c;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #81c784;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: #c8e6c9;
}

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

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #a5d6a7;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .page-banner h1 { font-size: 2rem; }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .hero { padding-top: 120px; height: auto; min-height: 100vh; padding-bottom: 50px; }
    .page-banner { padding-top: 140px; padding-bottom: 60px; }
    nav { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    header { height: auto; position: relative; }
    .accompagnement-steps { gap: 10px; }
    .accompagnement-step { max-width: 100%; flex: 1 1 100%; }
}

/* ================================================
   SMQ PAGE - VERSION ULTRA ROBUSTE
   ================================================ */

/* Correction des couleurs titres flow */
.smq-title-white { color: black !important; }
.smq-title-white::after { background-color: #ffffff !important; }
.smq-sub-white { color: black !important; }

/* 1. INTRO */
.smq-intro-grid { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: start; }
.smq-intro-lead { font-size: 1.25rem; font-weight: 600; color: #1B5E20; margin-bottom: 20px; }
.smq-intro-sidebar { position: sticky; top: 130px; }
.iso-badges-vertical { display: flex; flex-direction: column; gap: 15px; }
.iso-badge-large { background: #1B5E20; color: #fff; padding: 20px; border-radius: 8px; font-size: 1.4rem; font-weight: 700; font-family: 'Montserrat', sans-serif; text-align: center; transition: 0.3s; }
.iso-badge-large:hover { transform: scale(1.05); background: #2E7D32; }

/* 2. FLOW (PARCOURS A à Z) - METHODE FLEX SIMPLE */
.smq-flow { background: #e7f5e9; padding: 60px 0; }
.smq-flow-track { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 40px; margin-top: 40px; }
.smq-flow-node { display: flex; flex-direction: column; align-items: center; text-decoration: none; width: 100px; flex-shrink: 0; transition: 0.3s; }
.smq-flow-node:hover { transform: translateY(-5px); }
.flow-node-circle { width: 50px; height: 50px; background: #13a581; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; font-family: 'Montserrat', sans-serif; margin-bottom: 15px; border: 3px solid rgba(255,255,255,0.3); transition: 0.3s; }
.smq-flow-node:hover .flow-node-circle { background: #fff; color: #1B5E20; border-color: #fff; }
.flow-node-label { color: black; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.3; }
/* La ligne de connexion simple */
.flow-node-line { flex-grow: 1; height: 3px; background: rgba(255, 255, 255, 0.3); margin-top: 24px; min-width: 10px; }

/* 3. ETAPES */
.smq-step-section { border-top: 1px solid #eee; }
.smq-step-alt { background-color: #E8F5E9; border-top: none; }
.smq-step-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.smq-step-tag { background: #13a581; color: #fff; padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; font-family: 'Montserrat', sans-serif; text-transform: uppercase; white-space: nowrap; }
.smq-step-tag-outline { background: transparent; color: #13a581; border: 2px solid #13a581; }
.smq-step-header h2 { margin-bottom: 0; font-size: 1.6rem; }
.smq-step-content { text-align: justify; }
.smq-step-content-narrow { max-width: 850px; margin: 0 auto; }
.smq-sub-section { margin-top: 60px; padding-top: 40px; border-top: 2px dashed #c8e6c9; }

/* 4. CARTES */
.smq-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.smq-cards-grid-4 { grid-template-columns: 1fr 1fr; }
.smq-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-left: 5px solid #13a581; transition: 0.3s; }
.smq-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px rgba(27, 94, 32, 0.15); }
.smq-card-numbered { position: relative; overflow: hidden; border-left: none; border-top: 5px solid #13a581; }
.smq-card-num { position: absolute; top: -10px; right: 10px; font-size: 4rem; font-weight: 900; font-family: 'Montserrat', sans-serif; color: #E8F5E9; line-height: 1; z-index: 0; }
.smq-card-numbered h4, .smq-card-numbered p { position: relative; z-index: 1; }

/* 5. ORGANIGRAMME (Documentation) */
.css-orgchart { display: flex; flex-direction: column; align-items: center; margin: 40px 0; font-family: 'Montserrat', sans-serif; text-align: center; }
.org-level { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; position: relative; }
.org-level:not(:last-child)::after { content: ''; position: absolute; bottom: -20px; left: 50%; width: 3px; height: 20px; background: #1B5E20; }
.org-box { background: #E8F5E9; color: #1B5E20; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 2px solid #13a581; min-width: 200px; transition: 0.3s; }
.org-box:hover { transform: translateY(-3px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.org-root { background: #1B5E20; color: #fff; border-color: #1B5E20; }
.org-leaf { background: #fff; border-color: #E8F5E9; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* 6. FLÈCHES AUDIT (Méthode triangle CSS classique, sans clip-path) */
.css-arrows-flow { display: flex; margin: 40px 0; }
.arrow-step { flex: 1; background: #E8F5E9; padding: 20px; margin-right: 20px; border-left: 5px solid #13a581; position: relative; transition: 0.3s; }
.arrow-step:hover { background: #13a581; }
.arrow-step:hover h4 { color: #fff; }
.arrow-step:hover p { color: rgba(255,255,255,0.9); }
.arrow-step:hover .arrow-num { background: #fff; color: #13a581; }
/* Création de la pointe de la flèche avec un triangle CSS pur */
.arrow-step::after { content: ''; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 20px solid #E8F5E9; transition: 0.3s; }
.arrow-step:hover::after { border-left-color: #13a581; }
/* Dernière étape : pas de flèche à droite */
.arrow-step-last { margin-right: 0; }
.arrow-step-last::after { display: none; }

.arrow-num { width: 30px; height: 30px; background: #1B5E20; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.9rem; margin-bottom: 10px; transition: 0.3s; }
.arrow-text h4 { font-size: 0.95rem; margin: 0 0 8px 0; color: #1B5E20; line-height: 1.3; transition: 0.3s; }
.arrow-text p { font-size: 0.8rem; margin: 0; line-height: 1.4; color: #555; transition: 0.3s; }

/* 7. A LA CARTE */
.smq-alacarte { background-color: #f9fafb; }
.smq-alacarte-inner { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; border-top: 6px solid #1B5E20; }
.smq-alacarte-badge { position: absolute; top: 25px; right: 25px; background: #E8F5E9; color: #1B5E20; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 800; font-family: 'Montserrat', sans-serif; }
.smq-alacarte-inner h2 { text-align: center; margin-bottom: 25px; padding-top: 40px; }
.smq-alacarte-body { padding: 0 40px 40px; text-align: justify; }

/* ================================================
   RESPONSIVE SMQ SECURISE
   ================================================ */
@media (max-width: 1024px) {
    .smq-intro-grid { grid-template-columns: 1fr; }
    .smq-intro-sidebar { position: static; display: flex; }
    .iso-badges-vertical { flex-direction: row; }
}

@media (max-width: 992px) {
    /* Les flèches passent en colonne sur tablette */
    .css-arrows-flow { flex-direction: column; }
    .arrow-step { margin-right: 0; margin-bottom: 20px; }
    .arrow-step::after { display: none; } /* Cache les triangles */
}

@media (max-width: 768px) {
    /* Flow en grille sur mobile */
    .smq-flow-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px 15px; padding: 0 20px; }
    .flow-node-line { display: none; } /* Cache la ligne */
    
    .smq-step-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .smq-step-header h2 { font-size: 1.4rem; }
    .smq-cards-grid, .smq-cards-grid-4 { grid-template-columns: 1fr; }
    
    .org-level { flex-direction: column; align-items: center; }
    .org-level:not(:last-child)::after { display: none; }
    .org-box { width: 100%; max-width: 300px; }
    
    .smq-alacarte-badge { position: static; display: inline-block; margin-bottom: 15px; }
    .smq-alacarte-inner h2 { padding-top: 20px; }
    .smq-alacarte-body { padding: 0 20px 30px; }
}

/* ================================================
   ENVIRONNEMENT PAGE - MODERN DESIGN
   ================================================ */

/* --- 1. INTRO & GRILLE DE PHOTOS --- */
.env-hero-grid {
    gap: 60px;
    align-items: center;
}

.env-hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.env-quote {
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    border-left: 5px solid #13a581;
    padding-left: 20px;
    margin-top: 20px;
    line-height: 1.6;
}

/* Grille de photos asymétrique */
.env-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.photo-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transition: transform 0.4s ease;
}

.photo-main img:hover {
    transform: scale(1.03);
}

.photo-secondary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

.photo-secondary img:hover {
    transform: scale(1.05);
}

/* --- 2. SECTION TITRE --- */
.env-section-title {
    text-align: center;
    font-size: 2rem;
    color: #13a581;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.env-section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #13a581;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- 3. CARTES ETAPES --- */
/* --- 3. TIMELINE (Approche) --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

/* La ligne verticale continue */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, #13a581, #13a581);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Le cercle numéroté sur la ligne */
.timeline-num {
    position: absolute;
    left: -40px;
    top: 0;
    width: 33px;
    height: 33px;
    background: var(--white);
    border: 3px solid #13a581;
    color: #13a581;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Effet au survol de la ligne */
.timeline-item:hover .timeline-num {
    background: #13a581;
    color: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(67, 160, 71, 0.4);
}

.timeline-content {
    background: transparent;
    padding-top: 0;
}

.timeline-content h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: #13a581;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content h4 {
    color: #13a581;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--text-light);
    text-align: justify;
    font-size: 0.95rem;
}

/* --- 4. SECTION BENEFICES --- */
.env-benefices {
    background-color: #E8F5E9;
    background-image: linear-gradient(135deg, #E8F5E9 0%, #E8F5E9 100%);
}

.env-benefices .env-section-title {
    color: var(--white);
}

.env-benefices .env-section-title::after {
    background-color: #81c784;
}

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

.benefice-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s ease;
}

.benefice-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-15px) scale(1.05); /* Effet de lévitation très marqué */
    border-color: #81c784;
}

.benefice-icon {
    font-size: 2.5rem;
    color: #81c784;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.benefice-card:hover .benefice-icon {
    transform: scale(1.2); /* L'icône grossit au survol */
}

.benefice-card h4 {
    color: #13a581;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.benefice-card p {
    color: white;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- 5. RESPONSIVE --- */
@media (max-width: 992px) {
    .env-hero-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .env-photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .photo-main {
        grid-row: auto;
    }
    .photo-secondary {
        flex-direction: row;
    }
      /* Timeline responsive */
    .timeline-container {
        padding-left: 30px;
    }
    .timeline-container::before {
        left: 10px;
    }
    .timeline-num {
        left: -30px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .benefice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .photo-secondary {
        flex-direction: column;
    }
    .benefice-grid {
        grid-template-columns: 1fr;
    }
}

/* --- BOITE RESULTAT (Pharma) --- */
.result-box {
    background-color: #e7f5e9;
    border-left: 5px solid #13a581;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 50px auto 0;
    font-size: 1.1rem;
    color: #13a581;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.result-box strong {
    color: #13a581;
    font-family: 'Montserrat', sans-serif;
}

/* --- CONCLUSION FORMATIONS --- */
.formations-conclusion {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
}

.formations-conclusion p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}


/* ================================================
   DISPOSITIFS MEDICAUX PAGE - SPECIFIC STYLES
   ================================================ */

/* Boîte Passez à l'action */
.cta-action-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-hover);
    border-top: 6px solid #13a581;
    max-width: 900px;
    margin: 0 auto;
}

.cta-action-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-action-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 10px;
}

/* Grille pour les 7 points du Marquage CE */
.marquage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.marquage-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.marquage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid #13a581;
}

.marquage-card i {
    font-size: 2rem;
    color: #13a581;
    margin-bottom: 15px;
}

.marquage-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.marquage-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Ajustement Result-box pour les listes */
.result-box ul {
    margin-top: 10px;
    padding-left: 0;
}
.result-box ul li {
    color: #13a581;
    font-weight: 500;
}

/* --- CONNECTEUR VERTICAL (de l'étape 5 à l'étape 6) --- */
.flow-connector-down {
    width: 3px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
    margin-right: 90px; /* Ajusté pour s'aligner avec le centre des étapes 5 et 6 */
    position: relative;
}

.flow-connector-down::after {
    content: '\f078'; /* Flèche vers le bas (chevron) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

/* --- ALIGNEMENT ET JUSTIFICATION DU TEXTE --- */
.env-hero-text p,
.smq-step-content p,
.arrow-text p,
.result-box,
.formations-conclusion p,
.benefice-card p {
    text-align: justify;
    hyphens: auto; /* Optionnel : permet de mieux gérer les césures en français */
}

/* ================================================
   INDEX PAGE - PUZZLE HERO & MODERN LAYOUT
   ================================================ */

/* 1. HERO PUZZLE GRID */
.hero {
    position: relative;
    background: none; /* Override default hero bg */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-puzzle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    z-index: 1;
}

.puzzle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Léger effet pour propreté */
    opacity: 0;
    transform: scale(1.1);
    animation: puzzleReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes puzzleReveal {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(21, 75, 76, 0.85), rgba(27, 94, 32, 0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Au dessus de l'overlay */
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 1.8rem;
    color: #c8e6c9;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 2. A PROPOS MODERN LAYOUT */
.about-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-quote {
    max-width: 800px;
    margin: 40px auto;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 600;
    color: #13a581;
    line-height: 1.6;
    border-left: 5px solid #13a581;
    padding-left: 25px;
    transition: transform 0.3s ease;
}

.about-quote:hover {
    transform: translateX(10px);
}

/* 3. SERVICE CARDS ANIMATION */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(27, 94, 32, 0.15);
}

/* 4. RESPONSIVE PUZZLE */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .hero-puzzle {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2rem; letter-spacing: 2px; }
    .hero-content h2 { font-size: 1.2rem; }
    .about-quote { font-size: 1.2rem; }
    .about-quote[style*="border-right"] { 
        text-align: left; 
        border-right: none; 
        border-left: 5px solid #13a581; 
        padding-right: 0; 
        padding-left: 25px; 
    }
}

/* ================================================
   MODERNIZATION UPGRADE 2024 (Glassmorphism, Gradients, Glow)
   ================================================ */

/* 1. ICÔNES MODERNES (Dégradé + Ombre portée lumineuse) */
.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    /* Dégradé appliqué à l'&cône */
    background: linear-gradient(135deg, #13a581 0%, #13a581 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Lueur douce sous l'icône */
    filter: drop-shadow(0 4px 8px rgba(67, 160, 71, 0.3));
    /* Animation de rebond au survol */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(-10deg); /* Grossit et tourne légèrement */
}


/* 2. CARTES GLASSMORPHISM (Effet Verre Dépoli) */
.card {
    background: rgba(255, 255, 255, 0.6); /* Fond semi-transparent */
    backdrop-filter: blur(12px); /* Flou d'arrière-plan */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Bordure fine lumineuse */
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); /* Ombre douce très moderne */
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02); /* Léger zoom en plus du déplacement */
    box-shadow: 0 15px 40px rgba(27, 94, 32, 0.15);
    border: 1px solid rgba(67, 160, 71, 0.4); /* Bordure verte au survol */
}


/* 3. BOUTONS CTA MODERNES (Dégradé + Effet Néon/Glow) */
.cta-button {
    background: linear-gradient(135deg, #13a581 0%, #13a581 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(67, 160, 71, 0.4); /* Lueur verte */
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(67, 160, 71, 0.6); /* Lueur intensifiée */
    color: white;
}


/* 4. TITRES MODERNES (Soulignage Gradient) */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 5px;
    /* Ligne de soulignement en dégradé au lieu d'une couleur unie */
    background: linear-gradient(90deg, #13a581 0%, #1B5E20 100%);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}


/* 5. AMELIORATION DU HERO OVERLAY (Mesh Gradient) */
.hero-overlay {
    background: radial-gradient(circle at 20% 80%, rgba(21, 75, 76, 0.95) 0%, rgba(27, 94, 32, 0.85) 60%, rgba(67, 160, 71, 0.7) 100%);
    z-index: 2;
}


/* 6. BANNIÈRE DE PAGE (Backgrounds moins agressifs) */
.page-banner {
    background: radial-gradient(circle at 80% 20%, #13a581 0%, #13a581 100%);
    background-size: cover;
    background-position: center;
    padding: 160px 0 80px;
    text-align: center;
    color: var(--white);
}


/* 7. LISTES FLECHES/CHECKS MODERNES */
.custom-list li::before, .arrow-list li::before {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.custom-list li:hover::before, .arrow-list li:hover::before {
    transform: scale(1.3); /* Grossit l'icône quand on survole le texte */
}


/* ================================================
   FIX : GRILLE PHOTOS LISIBLES ET COMPLÈTES
   ================================================ */

/* 1. Conteneur principal : On laisse les lignes s'ajuster automatiquement */
.env-photo-grid {
    grid-template-rows: auto; /* Remplace le 1fr 1fr qui causait l'étirement */
    align-content: start; /* Aligne la grille en haut */
}

/* 2. Image Principale : On force un format portrait (ex: 8/10) */
.photo-main {
    aspect-ratio: 4/5; /* Format portrait élégant et fixe */
    overflow: hidden; /* Cache ce qui dépasse pour garder les bords arrondis */
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit sans déformer */
    transition: transform 0.4s ease;
}

/* 3. Images Secondaires : Elles s'adaptent à la hauteur de l'image principale */
.photo-secondary {
    /* Le flex-direction: column est déjà dans votre CSS */
    /* On s'assure que les images prennent chacune la moitié de l'espace disponible */
}

.photo-secondary img {
    flex: 1; /* Chaque image prend 50% de l'espace vertical disponible */
    min-height: 0; /* Prévient les bugsE les bugs de dépassement Flexbox */
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.4s ease;
}

/* FAC1 Fallback responsive si la grille passe sur une colonne (Mobile) */
@media (max-width: 768px) {
    .photo-main {
        aspect-ratio: 16/9; /* Format paysage sur mobile pour gagner de la place */
    }
    .photo-secondary {
        flex-direction: row; /* Les 2 petites photos côte à côte sur mobile */
    }
    .photo-secondary img {
        aspect-ratio: 1/1; /*2/1; /* Format carré sur mobile */
        flex: 1;
        width: 50%;
        height: auto;
    }
}

/* ================================================
   FIX : PHOTOS COMPLÈTES SANS ROGNAGE
   ================================================ */

/* 1. L'image unique de la description */
.full-readable-img {
    width: 100%;
  
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
}

.full-readable-img:hover {
    transform: scale(1.02);
}

/* 2. Le bloc des 2 photos côte à côte (ou empilées) */
.dual-photo-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}



.dual-photo-stack img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* 3. Responsive sur mobile : On passe en colonne inversée pour que le texte soit en premier */
@media (max-width: 768px) {
    .env-hero-grid, .grid-2 {
        grid-template-columns: 1fr; /* Passe tout sur une colonne */
    }
    
    /* Met l'image en dessous du texte sur mobile */
    .env-hero-grid > div:first-child {
        order: 2;
    }
    .env-hero-grid > div:last-child {
        order: 1;
    }

    .full-readable-img, .dual-photo-stack img {
        aspect-ratio: 16/9; /* Format plus large sur mobile */
    }
}

/* ================================================
   FIX : LISIBILITÉ SUR FONDS VERTS (Contrastes)
   ================================================ */

/* -------------------------------------------------
   1. SUR FONDS VERTS CLAIRS (.bg-light, .smq-step-alt)
   ------------------------------------------------- */

/* Les cercles numérotés de la timeline se fondent dans le fond vert clair, on les met en blanc */
.bg-light .timeline-num,
.smq-step-alt .timeline-num {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* La petite ligne sous les titres de section est verte sur vert, on la fonce */
.bg-light .env-section-title::after,
.smq-step-alt .env-section-title::after {
    background-color: #13a581; /* Vert foncé */
}

/* Les badges "Étape" à bordure verte sur fond vert clair sont invisibles, on les corrige */
.smq-step-alt .smq-step-tag-outline {
    color: #13a581;
    border-color: #13a581;
    background-color: var(--white);
}

/* Les boîtes de résultat sur fond vert clair manquent de contraste, on renforce la bordure */
.bg-light .result-box {
    border-left: 5px solid #13a581; /* Vert foncé au lieu de vert clair */
}


/* -------------------------------------------------
   2. SUR FONDS VERTS FONCÉS (.env-benefices, .smq-flow)
   ------------------------------------------------- */

/* Les boutons d'action (CTA) sont verts sur fond vert foncé -> ils disparaissent. On les passe en blanc */
.env-benefices .cta-button,
.smq-flow .cta-button {
    background-color: var(--white);
    color: #13a581;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.env-benefices .cta-button:hover,
.smq-flow .cta-button:hover {
    background-color: #f0f0f0;
    color: #13a581;
}

/* Les lignes de titre de section sur fond sombre */
.env-benefices .env-section-title::after,
.smq-flow .env-section-title::after {
    background-color: #81c784; /* Vert clair pour être visible sur fond sombre */
}

/* Les coches de liste sur fond sombre */
.env-benefices .custom-list li::before,
.smq-flow .custom-list li::before {
    color: #81c784;
}

/* Les boîtes résultat sur fond sombre */
.env-benefices .result-box strong,
.smq-flow .result-box strong {
    color: #81c784;
}

/* Si une timeline se trouve dans un fond sombre (rare mais préventif) */
.env-benefices .timeline-num {
    background-color: rgba(255,255,255,0.1);
    color: #81c784;
    border: 1px solid rgba(255,255,255,0.2);
}

.env-benefices .timeline-content h4,
.env-benefices .timeline-content p {
    color: var(--white);
}

.env-benefices .timeline-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* ================================================
   FIX : IMAGE SMQ COMPLETE (Sans rognage)
   ================================================ */

/* Annule le format forcé pour la grande image de la page SMQ */
.env-intro .photo-main {
    aspect-ratio: auto; /* Supprime le format 4/5 forcé */
    height: auto;       /* Laisse l'image définir sa propre hauteur */
}

/* Assure que l'image s'affiche en entier */
.env-intro .photo-main img {
    object-fit: contain; /* Affiche l'image ENTIÈRE sans la couper */
    max-height: 600px;   /* Limite la hauteur pour ne pas déséquilibrer la mise en page */
    width: 100%;
    margin: 0 auto;      /* Centre l'image si elle est plus petite que le conteneur */
    background-color: #f8f9fa; /* Fond gris clair si l'image ne remplit pas tout */
}

/* ================================================
   FIX : IMAGE SMQ COMPLETE (Sans rognage)
   ================================================ */

/* Annule le format forcé pour la grande image de la page SMQ */
.env-intro .photo-main {
    aspect-ratio: auto; /* Supprime le format 4/5 forcé */
    height: auto;       /* Laisse l'image définir sa propre hauteur */
}

/* Assure que l'image s'affiche en entier */
.env-intro .photo-main img {
    object-fit: contain; /* Affiche l'image ENTIÈRE sans la couper */
    max-height: 600px;   /* Limite la hauteur pour ne pas déséquilibrer la mise en page */
    width: 100%;
    margin: 0 auto;      /* Centre l'image si elle est plus petite que le conteneur */
    background-color: #f8f9fa; /* Fond gris clair si l'image ne remplit pas tout */
}


/* ================================================
   FIX : HERO PUZZLE RESPONSIVE & VISIBLE
   ================================================ */

/* 1. Rend le Hero flexible au lieu de strictement 100vh */
.hero {
    min-height: 100vh; /* Prend au moins la taille de l'écran */
    height: auto;      /* Mais peut s'agrandir si le contenu le nécessite */
    padding-top: 110px; /* Empêche le texte de passer sous le menu fixe */
    padding-bottom: 40px; /* Empêche le bouton d'être coupé en bas */
}

/* 2. Assure que la grille d'images suit bien la taille du Hero */
.hero-puzzle {
    grid-template-rows: 1fr 1fr; /* Force les 2 lignes à se partager l'espace */
}

/* 3. Règle critique pour mobile : les navigateurs mobiles ont une barre d'adresse qui fausse le 100vh */
@supports (height: 100dvh) {
    .hero {
        min-height: 100dvh; /* Hauteur dynamique réelle sur mobile */
    }
}

/* 4. Ajustements pour que le texte ne déborde pas sur mobile */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem; /* Réduit la taille du titre sur mobile */
        margin-bottom: 15px;
    }
    .hero-content h2 {
        font-size: 1.1rem; /* Réduit le sous-titre sur mobile */
    }
    .hero-content .cta-button {
        font-size: 1rem !important; /* Force le bouton à rester lisible */
        padding: 12px 30px !important;
    }
}

/* ================================================
   FIX : HERO PUZZLE - LECTIBILITÉ IMAGES & POSITIONNEMENT
   ================================================ */

/* 1. Décale le Hero sous la barre de navigation fixe */
.hero {
    margin-top: 110px; /* Pousse la section sous le header fixe */
    min-height: calc(100vh - 110px); /* Ajuste la hauteur pour remplir l'écran restant */
    height: auto;
}

/* 2. Réduit l'opacité de l'overlay pour rendre les images plus lisibles */
.hero-overlay {
    background: radial-gradient(circle at 20% 80%, rgba(21, 75, 76, 0.82) 0%, rgba(27, 94, 32, 0.72) 60%, rgba(67, 160, 71, 0.55) 100%);
}

/* 3. S'assure que le contenu texte ne déborde pas sur mobile */
@media (max-width: 768px) {
    .hero {
        margin-top: 80px; /* Ajustement si le header rétrécit sur mobile */
        min-height: calc(100vh - 80px);
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-content h2 { font-size: 1.1rem; }
}


/* ===== CTA ENVIRONNEMENT ===== */
.env-cta {
    background-color: #f4f9f4;
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(135deg, #2e7d32, #13a581);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
}

.cta-box h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ffffff;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: #f1f8f1;
}

/* --- Points forts À Propos --- */
.about-highlights-list {
    list-style: none;
    padding: 0;
    max-width: 850px;
    margin: 0 auto;
}
.about-highlights-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
}
.about-highlights-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #13a581;
    font-size: 1.2rem;
}
.about-highlights-title {
    text-align: center;
    margin: 40px 0 30px;
}

/* ==========================================================
   ÉTAPE 03 — THÉMATIQUES PROPOSÉES (cartes encadrées)
   ========================================================== */

/* Bandeau d'introduction */
.thematiques-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 20px;
    padding: 14px 20px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 0 10px 10px 0;
}
.thematiques-intro i { color: #2e7d32; font-size: 1.1rem; }
.thematiques-intro strong { color: #1b5e20; font-size: 1rem; }

/* Grille des cartes */
.thematiques-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Carte encadrée */
.thematique-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 24px 22px 22px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.thematique-card:hover {
    border-color: #2e7d32;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.12);
    transform: translateY(-4px);
}
/* Ligne verte d'accent en haut (apparaît au survol) */
.thematique-card::before {
    content: '';
    position: absolute;
    top: 0; left: 22px; right: 22px;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32, #43a047);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.thematique-card:hover::before { opacity: 1; }

/* En-tête de carte : icône + titre */
.thematique-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.thematique-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}
.thematique-card h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.35;
}
.thematique-card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 0;
}
.thematique-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

/* Badges des normes ISO */
.thematique-chip {
    display: inline-block;
    background: #f1f8f1;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-radius: 30px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px 4px 0 0;
}

/* Responsive */
@media (max-width: 600px) {
    .thematiques-grid { grid-template-columns: 1fr; gap: 14px; }
    .thematique-card { padding: 18px 16px; }
    .thematique-icon { width: 40px; height: 40px; font-size: 1rem; }
}


/* ==========================================================
   ÉTAPE 03 — THÉMATIQUES PROPOSÉES (lignes encadrées)
   ========================================================== */

/* Bandeau d'introduction */
.thematiques-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 20px;
    padding: 14px 20px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 0 10px 10px 0;
}
.thematiques-intro i { color: #2e7d32; font-size: 1.1rem; }
.thematiques-intro strong { color: #1b5e20; font-size: 1rem; }

/* Liste verticale de lignes encadrées */
.thematiques-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Ligne encadrée */
.thematique-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 18px 22px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.thematique-row:hover {
    border-color: #2e7d32;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.1);
    transform: translateX(5px);
}

/* Icône à gauche */
.thematique-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}

/* Contenu texte */
.thematique-content { flex: 1; }
.thematique-content h4 {
    margin: 0 0 4px 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.35;
}
.thematique-content p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Liste interne (carte "Pilotage du système qualité") en 2 colonnes
   pour rester compacte */
.thematique-content ul {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    columns: 2;
    column-gap: 30px;
    list-style-type: none;
}
.thematique-content ul li { position: relative; padding-left: 16px; }
.thematique-content ul li::before {
    content: '\f00c'; /* coche Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #43a047;
    font-size: 0.72rem;
}

/* Chevron discret à droite */
.thematique-chevron {
    flex-shrink: 0;
    color: #a5d6a7;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.thematique-row:hover .thematique-chevron {
    color: #2e7d32;
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 600px) {
    .thematique-row { padding: 14px 16px; gap: 14px; }
    .thematique-icon { width: 40px; height: 40px; font-size: 1rem; }
    .thematique-chevron { display: none; }
    .thematique-content ul { columns: 1; }
    .thematique-content h4 { font-size: 0.95rem; }
    .thematique-content p { font-size: 0.85rem; }
}

@media (max-width: 600px) {
    .accordion-inner .css-arrows-flow { flex-direction: column; }
}


/* ===== CARTES SERVICES — FLIP 3D + LIEN CLIQUABLE ===== */
.flip-card {
    display: block;
    text-decoration: none;
    color: inherit;
    perspective: 1200px;
    height: 420px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner,
.flip-card:focus-visible .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.06);
}

.flip-card-front-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #fff;
}

.flip-card-front-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	color: #ffffff !important;   /* ← ligne à ajouter */
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color, #16324f), var(--accent-color, #2c7da0));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
}

.flip-card-back h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: #fff;
	color: #ffffff !important;   /* ← ligne à ajouter */
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.flip-card-cta {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.flip-card:hover .flip-card-cta {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== BÉNÉFICES — FOND VERT #13a581 ===== */

/* Fond de la section */
.env-benefices {
    background-color: #13a581 !important;
    background-image: none !important;   /* supprime la photo de fond éventuelle */
}

/* Titre "Bénéfices" bien visible sur le fond vert */
.env-benefices .env-section-title {
    color: #ffffff !important;
}

/* Cartes claires avec contour */
.benefice-card {
    background: #ffffff !important;
    border: 2px solid rgba(19, 165, 129, 0.25);   /* contour vert discret */
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 35px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol : la carte se soulève, le contour se renforce */
.benefice-card:hover {
    transform: translateY(-6px);
    border-color: #13a581;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Icône : cercle vert pâle + pictogramme vert */
.benefice-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
       /* halo vert très clair */
    color: #154b4c !important;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: background 0.3s ease, color 0.3s ease;
}


/* Textes */
.benefice-card h4 {
    color: #1d3b34 !important;    /* vert très foncé, lisible */
    margin-bottom: 8px;
}

.benefice-card p {
    color: #557a70 !important;
    margin-bottom: 0;
}

/* ===== HERO : filtre / superposition ===== */
.hero {
    position: relative;
    overflow: hidden;
}

/* Overlay dégradé par-dessus les images du puzzle */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;   /* laisse passer les clics */
    background: linear-gradient(
        135deg,
        rgba(19, 165, 129, 0.50),   
       
      rgba(19, 165, 129, 0.20)      
    );
	
	 backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Léger filtre sur les images elles-mêmes */
.hero .puzzle-img {
     filter: brightness(0.55) contrast(1.05);
}

/* Le contenu (titre + bouton) passe au-dessus de l'overlay */
.hero .hero-content {
    z-index: 2;
}

/* ============================================================
   SERVICES — SYSTÈME D'ONGLETS (v2 : onglets alignés,
   image et texte centrés, marges latérales)
   ============================================================ */

/* Barre d'onglets : largeurs égales, libellés centrés */
.services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 15px 35px;   /* marges gauche/droite, alignées sur le panneau */
}

.service-tab {
    flex: 1 1 0;              /* chaque onglet occupe la même largeur */
    min-width: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    line-height: 1.25;
    text-align: center;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #1a5276);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.service-tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Panneau de contenu */
.service-panel {
    display: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0 15px;           /* marges à gauche et à droite */
}

.service-panel.is-active {
    display: flex;
    animation: servicePanelIn 0.45s ease both;
}

@keyframes servicePanelIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Image : décollée des bords du panneau */
.service-panel-media {
    flex: 0 0 42%;
    min-height: 300px;
    padding: 25px 0 25px 25px;
}

.service-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Texte : centré, avec marges latérales généreuses */
.service-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* centrage vertical */
    align-items: center;      /* centrage horizontal */
    text-align: center;
    padding: 45px 55px;
}

.service-panel-content h3 { margin-bottom: 15px; }
.service-panel-content p  { margin-bottom: 25px; max-width: 560px; }


/* ============================================================
   CE QUE NOUS VOUS APPORTONS — présentation « 3 piliers »
   Version corrigée — palette verte Easy Quality
   ============================================================ */
.eq-bring{
    max-width: 1080px;
    margin: 55px auto 0;
    padding: 0 20px;
}

/* Titre de la sous-section */
.eq-bring-title{
    text-align: center;
    font-size: 1.55rem;
    margin: 0 0 48px;
    position: relative;
    padding-bottom: 18px;
    color: var(--accent-color);
}
.eq-bring-title::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* Panneau unique — 3 colonnes */
.eq-bring-panel{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border: 1px solid rgba(27, 94, 32, .10);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(27, 94, 32, .10);
    overflow: hidden;
}

/* Chaque pilier */
.eq-pillar{
    position: relative;
    margin: 0;
    padding: 52px 36px 46px;
    text-align: center;
    transition: background .35s ease;
}
.eq-pillar + .eq-pillar{
    border-left: 1px dashed rgba(27, 94, 32, .25);
}

/* Filet accent qui se déploie en haut au survol */
.eq-pillar::before{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .4s ease;
}

/* Numéro en filigrane */
.eq-pillar-num{
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(27, 94, 32, .08);
    transition: color .35s ease;
    pointer-events: none;
}

/* Badge icône */
.eq-pillar-icon{
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 1.85rem;
    color: var(--accent-color);
    background: var(--secondary-color);   /* pastille vert pâle #E8F5E9 */
    box-shadow: 0 10px 22px rgba(27, 94, 32, .12);
    transition: transform .4s ease, background .35s ease, color .35s ease, box-shadow .35s ease;
}

.eq-pillar h4{
    margin: 0 0 14px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--accent-color);
}

.eq-pillar p{
    margin: 0;
    font-size: .96rem;
    line-height: 1.75;
    color: var(--text-light);
}

/* États au survol */
.eq-pillar:hover{
    background: #f3faf4;
}
.eq-pillar:hover::before{ transform: scaleX(1); }
.eq-pillar:hover .eq-pillar-num{
    color: rgba(27, 94, 32, .16);
}
.eq-pillar:hover .eq-pillar-icon{
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px) rotate(-6deg);
    box-shadow: 0 14px 28px rgba(27, 94, 32, .25);
}

/* Responsive — empilement en mobile / tablette étroite */
@media (max-width: 900px){
    .eq-bring-panel{ grid-template-columns: 1fr; }
    .eq-pillar + .eq-pillar{
        border-left: 0;
        border-top: 1px dashed rgba(27, 94, 32, .25);
    }
    .eq-pillar{ padding: 44px 28px 40px; }
}

/* ============================================================
   NOUVEAU DESIGN — NOS EXPERTISES (index.php)
   ============================================================ */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 10px;
}

.exp-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(19, 165, 129, 0.14);
    border-radius: 18px;
    padding: 34px 30px 30px;
    text-align: left;                     /* ← TEXTE ALIGNÉ À GAUCHE */
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Filet vert qui se déploie sur le bord gauche au survol */
.exp-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.exp-card:hover {
    transform: translateY(-6px);
    border-color: rgba(19, 165, 129, 0.45);
    box-shadow: 0 18px 40px rgba(27, 94, 32, 0.15);
}
.exp-card:hover::before { transform: scaleY(1); }

/* Numéro en filigrane (01 → 04) */
.exp-num {
    position: absolute;
    top: 20px; right: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(19, 165, 129, 0.10);
    pointer-events: none;
    transition: color 0.35s ease;
}
.exp-card:hover .exp-num { color: rgba(19, 165, 129, 0.20); }

/* Badge icône arrondi (même style que vos piliers eq-pillar) */
.exp-icon {
    width: 60px; height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.45rem;
    color: var(--accent-color);
    background: var(--secondary-color);
    box-shadow: 0 10px 22px rgba(27, 94, 32, 0.12);
    transition: transform 0.4s ease, background 0.35s ease, color 0.35s ease;
}
.exp-card:hover .exp-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px) rotate(-6deg);
}

.exp-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.4;
}

.exp-card p {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: left;
}
.exp-card p:last-child { margin-bottom: 0; }

/* Pastilles : pays / secteurs / référentiels */
.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.exp-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    background: var(--secondary-color);
    border: 1px solid rgba(27, 94, 32, 0.15);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.exp-tags span:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Responsive : 1 colonne sur tablette étroite / mobile */
@media (max-width: 900px) {
    .exp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .exp-card { padding: 28px 22px 26px; }
    .exp-num { font-size: 2.2rem; }
}

/* HERO — VIDÉO DE PRÉSENTATION (diaporama cinématique) */
.hero-video { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;    /* fondu enchaîné */
    filter: brightness(0.72) saturate(1.05); /* lisibilité du texte blanc */
    animation: heroKenBurns 18s ease-in-out infinite alternate;
    animation-play-state: paused;            /* zoom actif seulement sur l'image visible */
}
.hero-slide.is-active { opacity: 1; animation-play-state: running; }

/* Durées/directions différentes = rendu naturel */
.hero-slide:nth-child(2n) { animation-duration: 22s; animation-direction: alternate-reverse; }
.hero-slide:nth-child(3n) { animation-duration: 26s; }

@keyframes heroKenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } }


<style>
/* ================================================
   HERO — VIDÉO DE PRÉSENTATION (diaporama cinématique)
   ================================================ */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;              /* passe sous votre overlay .hero::after (z-index:1) et le contenu (z-index:2) */
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;   /* fondu enchaîné */
    filter: brightness(0.72) saturate(1.05); /* assombrit pour la lisibilité du texte blanc */
    animation: heroKenBurns 18s ease-in-out infinite alternate;
    animation-play-state: paused;            /* le zoom ne tourne que sur l'image visible (GPU économisé) */
}

.hero-slide.is-active {
    opacity: 1;
    animation-play-state: running;
}

/* Durées/directions différentes = rendu naturel, jamais mécanique */
.hero-slide:nth-child(2n) { animation-duration: 22s; animation-direction: alternate-reverse; }
.hero-slide:nth-child(3n) { animation-duration: 26s; }

@keyframes heroKenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.14); }
}

/* Accessibilité : pas de zoom si l'utilisateur refuse les animations */
@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; }
}
</style>


.hero-video-file { position: absolute; inset: 0; width: 100%; height: 100%;
                   object-fit: cover; z-index: 0; filter: brightness(0.72) saturate(1.05); }