/* ========== RESET ET VARIABLES ========== */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #e9ecef;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== BOUTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #d81159;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.learn-more-btn {
    margin-top: 20px;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========== SECTIONS ========== */
section {
    padding: 40px 0;
    scroll-margin-top: 70px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== HEADER ========== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gray);
    word-wrap: break-word;
}

.service-details {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.service-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: visible;
    margin: 30px 0 20px;
    display: none;
    position: relative;
}

.service-detail.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.detail-header {
    background: var(--primary);
    color: white;
    padding: 25px 25px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.service-indicator {
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--accent);
    color: white;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-header h2 {
    margin: 0;
    font-size: 1.6rem;
    margin-top: 8px;
}

.close-detail {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-detail:hover {
    transform: scale(1.2);
}

.detail-content {
    padding: 25px;
    display: block;
}

.text-content {
    width: 100%;
}

.text-content > p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--dark);
    text-align: center;
}

.feature-list {
    margin: 20px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
    padding: 12px;
    border-radius: 8px;
}

.feature:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.feature-icon {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
    transition: var(--transition);
    flex-shrink: 0;
}

.feature:hover .feature-icon {
    color: var(--accent);
    transform: scale(1.2);
}

.feature-text h4 {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-detail#detail-cv .detail-actions {
    margin-top: 25px;
}

/* ========== CONTACT ========== */
#contact {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 100%;
}

.contact-item > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 4px;
    color: var(--secondary);
    font-size: 1.1rem;
    text-align: left;
    width: 100%;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: left;
    word-break: break-word;
    width: 100%;
    margin: 0;
}

.contact-item a {
    color: var(--gray);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ========== RÉSEAUX SOCIAUX ========== */
.social-icons-container {
    margin-top: 30px;
    text-align: center;
    display: block;
    width: 100%;
    padding: 20px 0;
}

.social-icons-container h3 {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 1.3rem;
    display: block;
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
}

.social-linkedin {
    background: #0077B5;
    color: white;
}

.social-linkedin i {
    color: white;
    font-size: 20px;
}

.social-instagram {
    background: linear-gradient(45deg, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.social-instagram i {
    color: white;
    font-size: 20px;
}

.social-links a:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ========== QUI SOMMES-NOUS SECTION ========== */
#about {
    padding: 40px 0;
    background-color: var(--light);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    text-align: justify;
    text-align-last: center;
    max-width: 100%;
    hyphens: manual; /* Désactive la césure automatique */
    word-wrap: break-word;
    margin-bottom: 30px;
}

/* Ajustement pour les petits écrans - CORRECTION COMPLÈTE */
@media (max-width: 768px) {
    .about-content {
        max-width: 95%;
        padding: 0 5px;
    }
    
    .about-content p {
        text-align: center !important; /* Forcer le centrage */
        text-align-last: center !important; /* Forcer le centrage de la dernière ligne */
        hyphens: manual; /* Aucune césure de mots */
        word-spacing: normal;
    }
}

/* Correction pour très petits écrans */
@media (max-width: 480px) {
    .about-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .about-content p {
        font-size: 1.05rem;
        line-height: 1.6;
        text-align: center !important;
        text-align-last: center !important;
        hyphens: manual; /* Aucune césure de mots */
    }
    
    #about {
        padding: 30px 0;
    }
}

/* ... Votre code CSS existant ... */

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        max-width: 680px;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .about-content {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
        padding: 12px 15px; /* MODIFICATION: padding réduit */
        gap: 12px; /* MODIFICATION: espace réduit */
        align-items: center;
    }
    
    /* CORRECTION EMAIL - Ajoutez cette partie */
    .contact-item p {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        hyphens: none !important;
    }
    
    .contact-item a[href^="mailto:"] {
        word-break: break-word;
        overflow-wrap: anywhere;
        display: inline-block;
        max-width: 100%;
    }
    
    /* MODIFICATION: Taille réduite pour l'icône */
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* MODIFICATION: Taille de police réduite */
    .contact-item h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    /* Fin de la correction email */
    
    .social-icons-container {
        margin-top: 25px;
        padding: 15px 0;
    }
    
    .social-icons-container h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .social-links {
        gap: 30px;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
    }
    
    .social-linkedin i,
    .social-instagram i {
        font-size: 22px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        max-width: 90%;
    }
    
    .about-content p {
        text-align: left;
    }
    
    #services {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    /* CORRECTION EMAIL POUR TRÈS PETITS ÉCRANS - Ajoutez cette partie */
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 10px 12px; /* MODIFICATION: padding réduit */
        gap: 10px; /* MODIFICATION: espace réduit */
    }
    
    .contact-icon {
        margin-bottom: 8px;
        margin-right: 0;
        width: 36px; /* MODIFICATION: taille réduite */
        height: 36px;
        font-size: 0.9rem; /* MODIFICATION: police réduite */
    }
    
    .contact-item h3 {
        font-size: 0.95rem; /* MODIFICATION: police réduite */
        margin-bottom: 2px;
    }
    
    .contact-item p, .contact-item h3 {
        text-align: center;
    }
    
    .contact-item a[href^="mailto:"] {
        font-size: 0.85rem; /* MODIFICATION: police réduite */
        line-height: 1.4;
    }
    /* Fin de la correction pour très petits écrans */
    
    .social-links {
        gap: 25px;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
    
    .social-linkedin i,
    .social-instagram i {
        font-size: 20px;
    }
    
    .detail-actions .btn {
        max-width: 250px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .detail-actions .btn-outline {
        font-size: 0.85rem;
        padding: 9px 15px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*******************************/
/* ========== GESTION DES COOKIES ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: #333;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-text p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-links a {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-links a:hover {
    color: var(--secondary);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-accept {
    background: var(--primary);
    color: white;
}

.btn-accept:hover {
    background: var(--secondary);
}

.btn-customize {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-customize:hover {
    background: var(--primary);
    color: white;
}

.btn-decline {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}

.btn-decline:hover {
    background: var(--gray);
    color: white;
}

/* Modal de personnalisation */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--secondary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.category-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
}

.category-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Switch personnalisé */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-links {
        justify-content: center;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* ========== PAGES LÉGALES ========== */
.privacy-container {
    padding: 80px 20px 40px;
    max-width: 1000px;
}

.privacy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.privacy-content h1 {
    color: var(--secondary);
    margin-bottom: 10px;
    text-align: center;
}

.last-update {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    font-style: italic;
}

.privacy-content section {
    margin-bottom: 40px;
}

.privacy-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-content h3 {
    color: var(--secondary);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookies-table th,
.cookies-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cookies-table th {
    background: var(--light);
    font-weight: 600;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-content a:hover {
    color: var(--secondary);
}

/* Footer spécifique aux pages légales */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .privacy-container {
        padding: 60px 15px 30px;
    }
    
    .privacy-content {
        padding: 25px;
    }
    
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }
}

/* ========== PAGE COOKIES SPÉCIFIQUE de cookies.html========== */
.cookie-settings-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.cookie-settings-form {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-category {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cookie-switch.large {
    width: 60px;
    height: 30px;
    flex-shrink: 0;
    margin-top: 5px;
}

.cookie-switch.large .slider:before {
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
}

.category-info h3 {
    color: var(--secondary);
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.category-info > p:first-of-type {
    font-weight: 600;
    margin-bottom: 10px;
}

.category-desc {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.cookie-examples {
    margin: 15px 0 0 20px;
    color: var(--gray);
}

.cookie-examples li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    min-width: 200px;
}

.btn-decline {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}

.btn-decline:hover {
    background: var(--gray);
    color: white;
}

.cookie-status {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.cookie-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cookie-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Instructions navigateurs */
.browser-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.browser-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.browser-item h4 {
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.browser-item h4 i {
    font-size: 1.2rem;
}

.browser-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive pour la page cookies */
@media (max-width: 768px) {
    .cookie-settings-section {
        padding: 20px 15px;
    }
    
    .cookie-category {
        padding: 20px 15px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-switch.large {
        align-self: flex-start;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-actions .btn {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .browser-instructions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cookie-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .category-info h3 {
        font-size: 1.1rem;
    }
}

/* ========== MENTIONS LÉGALES SPÉCIFIQUE ========== */
.legal-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--primary);
}

.legal-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

.legal-info strong {
    color: var(--secondary);
    min-width: 200px;
    display: inline-block;
}

.credits {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.credits h3 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.credits h3:first-child {
    margin-top: 0;
}

.credits p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Table pour les informations légales */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Responsive pour les mentions légales */
@media (max-width: 768px) {
    .legal-info strong {
        min-width: 150px;
        display: block;
        margin-bottom: 5px;
    }
    
    .legal-table {
        font-size: 0.9rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 10px;
    }
    
    .legal-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .legal-table {
        display: block;
        overflow-x: auto;
    }
    
    .legal-info strong {
        min-width: 120px;
        font-size: 0.9rem;
    }
}

/* ========== CORRECTIONS BANNIÈRE COOKIES ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: #333;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.active {
    display: block;
    transform: translateY(0);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

/* Assurer la visibilité sur mobile */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-cookie {
        min-width: 140px;
        margin: 5px;
    }
}

/* ========== CORRECTIONS BANNIÈRE COOKIES ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: #333;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.active {
    display: block;
    transform: translateY(0);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

/* Assurer la visibilité sur mobile */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-cookie {
        min-width: 140px;
        margin: 5px;
    }
}