/* style.css - Version Finale (Header 2 Colonnes + Couleurs Logo) */

:root {
    /* --- NOUVELLES COULEURS (Basées sur le logo Saniflo) --- */
    --primary-blue: #0070cd;   /* Bleu Azur dynamique */
    --primary-dark: #004a8f;   /* Bleu Profond pour les contrastes */
    --accent-yellow: #ffc400;  /* Jaune Soleil chaleureux */
    --accent-hover: #e0a800;   /* Jaune plus foncé (survol) */

    /* --- COULEURS NEUTRES --- */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* --- UTILITAIRES --- */
    --radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 112, 205, 0.15);
}

/* --- RESET & BASES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-light);
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
}

/* --- NAVIGATION --- */
nav {
    background: var(--white);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-nav {
    background: var(--primary-blue);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    transition: background 0.3s;
}

.btn-nav:hover {
    background: var(--primary-dark) !important;
}

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* --- HERO SECTION (Version 2 Colonnes avec Agréments Divisés) --- */
header#accueil {
    height: 90vh;
    min-height: 600px;
    position: relative;
    /* Dégradé adapté aux nouveaux bleus */
    background: linear-gradient(135deg, rgba(0, 74, 143, 0.85), rgba(0, 112, 205, 0.7)), url('../img/hero-bg.png') center/cover;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
}

/* Grille pour séparer Gauche (Texte) et Droite (Cadre Agréments) */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Texte plus large que le cadre */
    gap: 50px;
    align-items: center;
    width: 100%;
}

/* -- Colonne GAUCHE : Texte -- */
.hero-text-side {
    text-align: left;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start; /* Alignement gauche */
    margin-top: 30px;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 5px 15px rgba(255, 196, 0, 0.4);
    border: none;
    cursor: pointer;
}

.btn-secondary {
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
}

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

/* -- Colonne DROITE : Cadre Agréments -- */
.hero-certs-box {
    background: rgba(255, 255, 255, 0.1); /* Fond semi-transparent */
    backdrop-filter: blur(10px); /* Effet verre dépoli */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: var(--radius);
    max-width: 400px;
    margin-left: auto; /* Pousse à droite */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-certs-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 10px;
    display: inline-block;
    color: white;
}

.hero-certs-list {
    max-height: 350px; /* Légèrement augmenté pour les titres de régions */
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar personnalisée */
.hero-certs-list::-webkit-scrollbar { width: 5px; }
.hero-certs-list::-webkit-scrollbar-thumb { background: var(--accent-yellow); border-radius: 10px; }

/* Division par régions */
.region-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-yellow);
    letter-spacing: 1px;
    margin: 15px 0 8px 5px;
    border-left: 2px solid var(--accent-yellow);
    padding-left: 8px;
    font-weight: 600;
}

.cert-group:first-child .region-label {
    margin-top: 0;
}

.hero-cert-item {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.hero-cert-item:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.3);
}

.cert-icon {
    color: var(--accent-yellow);
    font-size: 1rem;
}

.hero-cert-item h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.hero-cert-item p {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.8;
    font-family: monospace;
}

/* --- À PROPOS & TEAM --- */
#apropos {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.target-box {
    background: #f0f8ff;
    padding: 25px;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary-blue);
    margin-top: 25px;
}

.target-box h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    display: flex;
    gap: 20px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateX(5px);
}

.team-img {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h4 {
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.team-info .role {
    font-size: 0.85rem;
    color: var(--accent-hover);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.team-info p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- SERVICES --- */
#services {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.icon-box {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(0, 112, 205, 0.05);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary-blue);
    font-size: 1.8rem;
    transition: 0.3s;
}

.service-card:hover .icon-box {
    background: var(--primary-blue);
    color: white;
    transform: rotateY(180deg);
}

/* --- CONTACT --- */
#contact {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary-blue));
    color: white;
    padding: 40px;
    border-radius: var(--radius);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-top: 5px;
}

.info-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: var(--accent-yellow);
}

.contact-form {
    padding: 40px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.full-width {
    width: 100%;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-top: 4px solid var(--primary-blue);
}

footer p {
    opacity: 0.6;
    margin-bottom: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    /* Hero passe en 1 colonne sur tablette/mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text-side {
        text-align: center;
        margin-bottom: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-certs-box {
        margin: 0 auto;
        width: 100%;
    }
    header#accueil {
        height: auto;
        padding: 100px 20px 60px;
    }

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .burger {
        display: block;
    }
}

/* ======================= FOOTER PRO ======================= */
.main-footer {
    background-color: #1a1a1a; /* Fond très sombre, plus pro que noir pur */
    color: #b3b3b3;
    padding: 70px 0 20px;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* La 1ère colonne est plus large */
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-yellow);
}

/* Colonne Marque */
.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

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

/* Listes (Liens & Contact) */
.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #b3b3b3;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.contact-col i {
    color: var(--primary-blue);
    margin-right: 10px;
    width: 20px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #444;
}

/* ======================= MODALES (POPUP) ======================= */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Fond noir semi-transparent */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.modal-content h2 {
    background: var(--primary-dark);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.3rem;
}

.modal-body-scroll {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
    color: #333;
    line-height: 1.7;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-yellow);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   MODULE WIZARD (PRISE DE RENDEZ-VOUS EN LIGNE)
   ========================================================================== */

/* --- Conteneur Principal --- */
#devis-wizard {
    padding: 80px 0;
    background: #f4f7f6; /* Gris très léger pour différencier du fond blanc */
}

.wizard-container {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden; /* Pour contenir les animations */
}

/* --- Indicateurs d'étapes (Le fil d'ariane en haut) --- */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

/* Ligne grise derrière les étapes */
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator {
    position: relative;
    z-index: 2;
    background: #e0e0e0;
    color: #666;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s all;
    border: 3px solid var(--white); /* Contour blanc pour couper la ligne */
}

/* Texte sous la bulle (1. Profil, etc.) */
.step-indicator::after {
    content: attr(data-step-title); /* On peut utiliser un attribut data pour le texte */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    margin-top: 8px;
    opacity: 0; /* Caché par défaut sur mobile */
}

/* Étate Active (Bleu) */
.step-indicator.active {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 112, 205, 0.1);
}

/* Étate Complétée (Vert ou Bleu foncé) */
.step-indicator.completed {
    background: var(--primary-dark);
    color: var(--accent-yellow);
}

/* Afficher les textes sur écran large */
@media (min-width: 768px) {
    .step-indicator { width: 50px; height: 50px; line-height: 50px; font-size: 1.1rem; }
    .step-indicator::after { opacity: 1; }
}

/* --- Les Étapes (Contenu du formulaire) --- */
.step {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.5s ease-in-out;
}

.step.active-step {
    display: block; /* Affiché si actif */
}

.step h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* --- Champs de formulaire spécifiques au Wizard --- */
.wizard-container input,
.wizard-container select,
.wizard-container textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    background: #fafafa;
}

.wizard-container input:focus,
.wizard-container select:focus,
.wizard-container textarea:focus {
    border-color: var(--primary-blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 112, 205, 0.1);
}

/* Styles pour les radios (Choix Particulier/Société & Paiement) */
.wizard-container .form-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.wizard-container label {
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-container input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-blue); /* Couleur native du navigateur */
}

/* --- Section Prix & Paiement --- */
.payment-selection {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #cfe2ff;
    margin-bottom: 20px;
}

.payment-selection h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1rem;
}

.price-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 30px 0;
    padding: 15px;
    background: var(--accent-yellow);
    border-radius: var(--radius);
    color: var(--primary-dark);
}

.price-display span {
    font-size: 1.5rem;
}

/* --- Boutons de Navigation (Précédent / Suivant) --- */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.prev-btn, .next-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.prev-btn {
    background: #e0e0e0;
    color: #555;
}

.prev-btn:hover {
    background: #d0d0d0;
}

.next-btn {
    background: var(--primary-blue);
    color: white;
    margin-left: auto; /* Pousse à droite si seul */
}

.next-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 112, 205, 0.2);
}

/* Validation visuelle */
input:invalid, select:invalid {
    border-color: #ffcccc;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .wizard-container {
        padding: 20px;
    }

    .wizard-steps {
        margin-bottom: 25px;
    }

    .wizard-buttons {
        flex-direction: column-reverse; /* Bouton Suivant en haut sur mobile */
    }

    .next-btn, .prev-btn, .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* --- PORTFOLIO / REALISATIONS (Slider Horizontal) --- */

.portfolio-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Le conteneur qui défile */
.portfolio-slider {
    display: flex; /* Alignement horizontal */
    gap: 30px;
    overflow-x: auto; /* Active le scroll horizontal */
    scroll-snap-type: x mandatory; /* Effet d'aimant (snap) */
    padding: 20px 5px; /* Espace pour l'ombre */
    -webkit-overflow-scrolling: touch; /* Fluidité sur iOS */
    scrollbar-width: none; /* Cache la barre de scroll (Firefox) */
    width: 100%;
}

/* Cache la barre de scroll (Chrome/Safari) */
.portfolio-slider::-webkit-scrollbar {
    display: none;
}

/* La carte individuelle - CORRIGÉE */
.portfolio-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    transition: transform 0.3s ease;

    /* --- CORRECTION: Largeur stricte pour éviter l'étirement --- */
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    flex: 0 0 350px; /* Figé à 350px, ne grandit pas, ne rétrécit pas */

    scroll-snap-align: start; /* La carte se cale à gauche */
}

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

.portfolio-img {
    position: relative;
    width: 100%; /* Prend toute la largeur de la carte */
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Supprime l'espace vide sous l'image */
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-yellow);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
    white-space: nowrap;      /* Empêche le titre de passer à la ligne */
    overflow: hidden;         /* Coupe si trop long */
    text-overflow: ellipsis;  /* Ajoute ... */
}

.portfolio-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
}

.portfolio-meta i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.portfolio-content p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    /* --- CORRECTION : Suppression des limites pour afficher tout le texte --- */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* overflow: hidden; */
}

.btn-portfolio {
    display: inline-block;
    padding: 8px 0;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-portfolio:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--accent-yellow);
}

/* Boutons de navigation (Flèches) */
.slider-btn {
    background: var(--white);
    border: 1px solid #eee;
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* --- CORRECTION : Nouveaux noms de classes pour éviter le conflit --- */
.portfolio-prev { margin-right: 15px; }
.portfolio-next { margin-left: 15px; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .portfolio-item {
        /* --- CORRECTION MOBILE: Taille stricte plus petite --- */
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        flex: 0 0 280px;
    }

    .slider-btn {
        display: none;
    }

    .portfolio-slider {
        padding-left: 20px;
        padding-right: 20px; /* Important pour voir la dernière carte */
    }
}