/* Fichier de modernisation du site */

/* Import de polices modernes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette de couleurs modernisée */
    --primary: #1a365d;      /* Bleu plus profond et moderne */
    --secondary: #e65100;    /* Orange plus vif */
    --accent: #00A651;       /* Vert inchangé */
    --light: #f8fafc;        /* Gris très clair pour le fond */
    --dark: #334155;         /* Gris foncé plus doux pour le texte */
    
    /* Variables pour les éléments d'interface */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    
    --transition-fast: 150ms;
    --transition: 300ms;
    --transition-slow: 500ms;
}

/* Styles de base */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* En-tête modernisé */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation modernisée */
nav {
    background: linear-gradient(90deg, var(--secondary) 0%, #f57c00 100%);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

/* Footer modernisé */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2a3a 100%);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Liens du footer */
footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: all var(--transition) ease;
}

footer a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    text-decoration: none !important;
}

nav a {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--transition);
}

nav a:hover {
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 70%;
}

/* Cartes et sections */
.bg-white {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.bg-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Boutons modernisés */
.btn {
    background: linear-gradient(90deg, var(--secondary) 0%, #f57c00 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(90deg, #f57c00 0%, var(--secondary) 100%);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Titres principaux (sauf header) */
main h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary) 0%, #2c5282 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Titre du header - couleur jaune */
header h1 {
    color: #fbbf24 !important; /* text-yellow-400 */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-fill-color: unset !important;
}

/* Pied de page */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: all var(--transition-fast);
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: all var(--transition);
}

footer a:hover::after {
    width: 100%;
}

/* Bouton de retour en haut */
.scroll-to-top {
    background: linear-gradient(135deg, var(--secondary) 0%, #f57c00 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    z-index: 9998;
    position: fixed;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Améliorations pour les formulaires */
input, textarea, select {
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Animations subtiles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn var(--transition) ease-out forwards;
}

/* Animation pour le bouton d'appel - plus visible et attractive */
@keyframes callButtonGlow {
    0%, 100% { 
        box-shadow: var(--shadow), 0 0 0 0 rgba(230, 81, 0, 0.8);
        transform: scale(1);
        background: linear-gradient(135deg, #e65100 0%, #ff8f00 100%);
    }
    25% { 
        box-shadow: var(--shadow-lg), 0 0 0 4px rgba(230, 81, 0, 0.4);
        transform: scale(1.03);
        background: linear-gradient(135deg, #ff6f00 0%, #ffab00 100%);
    }
    50% { 
        box-shadow: var(--shadow-lg), 0 0 0 12px rgba(230, 81, 0, 0);
        transform: scale(1.05);
        background: linear-gradient(135deg, #ff8f00 0%, #ffc107 100%);
    }
    75% { 
        box-shadow: var(--shadow-lg), 0 0 0 4px rgba(230, 81, 0, 0.4);
        transform: scale(1.03);
        background: linear-gradient(135deg, #ff6f00 0%, #ffab00 100%);
    }
}

.animate-call-glow {
    animation: callButtonGlow 1.8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance supplémentaire */
.animate-call-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* Logo uniforme et adaptatif */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 100%;
}

.logo-img {
    width: 120px;
    height: auto;
    max-width: 120px;
    min-width: 80px;
    display: flex;
    align-items: center;
}

.logo-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    /* Adaptation au mode sombre */
    filter: brightness(1) contrast(1);
}

/* Mode sombre - inversion du logo pour une meilleure visibilité */
@media (prefers-color-scheme: dark) {
    .logo-img img {
        filter: brightness(1.2) contrast(1.1) saturate(1.1);
        background-color: rgba(255, 255, 255, 0.1);
        padding: 8px;
        border-radius: var(--border-radius-lg);
    }
}

/* Effet hover sur le logo */
.logo-container:hover .logo-img img {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Alignement et centrage vertical pour toutes les pages */
header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

header .logo-container {
    order: 1;
    margin: 0 auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

header .text-center {
    order: 2;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .logo-img {
        width: 100px;
        min-width: 70px;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        justify-content: center;
    }
    
    header .logo-container {
        order: 1;
        margin: 0 auto;
        margin-bottom: 0;
        justify-content: center;
    }
    
    header .text-center {
        order: 2;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .logo-img {
        width: 140px;
        max-width: 140px;
    }
}

/* ===== BANNIÈRE DE CONSENTEMENT COOKIES ===== */
:root {
    --primary: #0072CE;
    --secondary: #FF6B00;
    --accent: #00A651;
    --light: #F5F5F5;
    --dark: #333333;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--light);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    line-height: 1.5;
    color: var(--dark);
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-consent__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-consent__text {
    min-width: 0; /* Permet la troncature sur petits écrans */
}

.cookie-consent__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.cookie-consent__description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--dark);
}

.cookie-consent__link {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus {
    text-decoration-color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent__btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Accessibilité tactile */
    white-space: nowrap;
}

.cookie-consent__btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-accept {
    background: var(--secondary);
    color: white;
}

.btn-accept:hover,
.btn-accept:focus {
    background: #e55a00;
    transform: translateY(-1px);
}

.btn-decline {
    background: white;
    color: var(--dark);
    border: 1px solid #ddd;
}

.btn-decline:hover,
.btn-decline:focus {
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-customize {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 0.75rem 1rem;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.btn-customize:hover,
.btn-customize:focus {
    text-decoration-color: var(--primary);
    background: rgba(0, 114, 206, 0.05);
}

/* Panneau de préférences */
.cookie-consent__preferences {
    margin-top: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background: white;
}

.cookie-consent__preferences[open] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-consent__preferences-toggle {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--primary);
    list-style: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.cookie-consent__preferences-toggle:hover {
    background: rgba(0, 114, 206, 0.05);
}

.cookie-consent__preferences-toggle::-webkit-details-marker {
    display: none;
}

.cookie-consent__preferences-icon {
    transition: transform 0.2s ease;
}

.cookie-consent__preferences[open] .cookie-consent__preferences-icon {
    transform: rotate(180deg);
}

.cookie-consent__preferences-content {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #f0f0f0;
}

.cookie-consent__category {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-consent__category:last-of-type {
    border-bottom: none;
}

.cookie-consent__category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-consent__toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
}

.cookie-consent__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__toggle-slider {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.cookie-consent__toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-consent__checkbox:checked + .cookie-consent__toggle-slider {
    background: var(--accent);
}

.cookie-consent__checkbox:checked + .cookie-consent__toggle-slider::before {
    transform: translateX(20px);
}

.cookie-consent__checkbox:disabled + .cookie-consent__toggle-slider {
    background: var(--accent);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-consent__checkbox:focus + .cookie-consent__toggle-slider {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cookie-consent__category-title {
    font-weight: 500;
    color: var(--dark);
}

.cookie-consent__category-status {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 166, 81, 0.1);
    border-radius: 1rem;
}

.cookie-consent__category-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.cookie-consent__preferences-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

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

.btn-save:hover,
.btn-save:focus {
    background: #005aa3;
    transform: translateY(-1px);
}

.btn-accept-all {
    background: var(--secondary);
    color: white;
}

.btn-accept-all:hover,
.btn-accept-all:focus {
    background: #e55a00;
}

.btn-decline-all {
    background: white;
    color: var(--dark);
    border: 1px solid #ddd;
}

.btn-decline-all:hover,
.btn-decline-all:focus {
    background: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent__container {
        padding: 1rem;
    }
    
    .cookie-consent__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }
    
    .cookie-consent__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent__btn {
        width: 100%;
        justify-content: center;
        min-height: 48px; /* Plus gros tap target sur mobile */
    }
    
    .cookie-consent__category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cookie-consent__preferences-actions {
        flex-direction: column;
    }
    
    .cookie-consent__preferences-actions .cookie-consent__btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent__title {
        font-size: 1rem;
    }
    
    .cookie-consent__description {
        font-size: 0.8rem;
    }
    
    .cookie-consent__btn {
        font-size: 0.8rem;
        padding: 0.875rem 1rem;
    }
}