﻿/* ==========================================================================
   1. VARIABLES & STYLES GLOBAUX
   ========================================================================== */
:root {
    --primary-color: #226D68;
    --primary-darker: #1A534F;
    --primary-lighter: #E9F3F2;
    --accent-color: #8B008B;
    --accent-darker: #6A006A;
    --light-gray: #F4F7F9;
    --dark-text: #1A534F;
    --secondary-text: #555555;
    --white: #FFFFFF;
    --dark-footer: #6A006A;
    --font-family: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

section {
    padding: 80px 0;
}

/* ==========================================================================
   2. EN-TÊTE & NAVIGATION
   ========================================================================== */
header {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    padding: 7px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-block;
    vertical-align: middle;
}

.logo img {
    display: block;
    height: 120px;
    width: auto;
    vertical-align: middle;
}

.main-nav {
    margin-right: auto;
    margin-left: 20px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    vertical-align: middle;
}

.main-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--accent-darker);
}

.main-nav a span {
    color: var(--dark-text); 
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.main-nav a:hover svg,
.main-nav a.active svg {
    stroke: var(--white);
}

.main-nav a:hover span,
.main-nav a.active span {
    color: var(--white);
}

.main-nav a:active {
    transform: scale(0.97);
    background-color: var(--primary-darker);
}

.header-client-button {
    flex-shrink: 0;
}

.header-cta {
    padding: 5px 15px !important;
    font-size: 1rem !important;
    background-color: var(--primary-color); 
    color: var(--white);
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    vertical-align: middle;
}

.header-cta:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-cta:active {
    transform: translateY(1px);
    background-color: var(--primary-darker);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   3. SECTION HÉROS
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 50px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#home-hero .hero-content h1, 
#home-hero .hero-content h2, 
#home-hero .hero-content .subtitle {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 3rem;
    margin: 0 auto 20px auto;
    max-width: 800px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 auto 20px auto;
}

.hero .subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 40px auto;
}

#home-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: linear-gradient(-45deg, var(--primary-lighter), var(--primary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: wavyBackground 15s ease infinite;
}

.page-hero {
    background-color: var(--primary-lighter);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   4. AUTRES SECTIONS
   ========================================================================== */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; 
    text-align: center; 
}

.service-item { 
    background: var(--light-gray); 
    padding: 40px 30px; 
    border-radius: 8px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.service-item .icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.why-us-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}
.why-us-text { flex: 1; }
.why-us-image {
    flex: 1;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1554415707-6e8cfc93fe23?q=80&w=2070&auto=format&fit=crop') center/cover;
    border-radius: 8px;
}
.why-us-text h2 { 
    text-align: left;
    margin-bottom: 20px; 
}
.why-us-text ul { list-style: none; padding: 0; }
.why-us-text li {
    position: relative;
    padding-left: 35px;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.why-us-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.2rem;
}

.testimonials {
    background-color: var(--light-gray);
    margin-bottom: 60px;
}
.testimonials h2 {
    margin-bottom: 20px; 
}
.testimonial-item {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-item blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-text);
    margin: 0 0 20px 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    text-align: left;
}
.testimonial-item cite {
    font-weight: 700;
    font-style: normal;
    color: var(--dark-text);
}

.contact-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.contact-cta h2, .contact-cta p {
    color: var(--white);
}
.contact-cta p {
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.service-detail {
    padding: 60px 0;
}
.service-detail-alt {
    background-color: var(--light-gray);
}
.service-detail-item {
    display: flex;
    gap: 50px;
    align-items: center;
}
.service-detail-item.reverse {
    flex-direction: row-reverse;
}
.service-text, .service-image {
    flex: 1;
}
.service-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-detail-item:hover .service-image img {
    transform: scale(1.05);
}
.service-text h2 {
    text-align: left;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.1rem;
}
.service-text ul {
    list-style: none;
    padding-left: 0;
}
.service-text li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}
.service-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.2rem;
}

.how-it-works {
    background-color: var(--white);
    padding-top: 40px;
    overflow: hidden;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 30px;
}
.step h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.step[data-step]::before {
    content: attr(data-step);
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1;
}

/* ==========================================================================
   STYLES POUR LA PAGE "À PROPOS"
   ========================================================================== */
.about-story-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}
.story-text, .story-image {
    flex: 1;
}
.story-text h2 {
    text-align: left;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.1;
}
.big-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
    margin-top: 0;
}
.story-highlight {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.story-image {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}
.about-benefits {
    background-color: var(--light-gray);
}
.about-benefits h2 {
    margin: 0;
    padding: 0;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -10px auto 40px auto;
    font-size: 1.1rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.benefit-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.benefit-icon {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}
.benefit-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}
.team-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--primary-lighter);
    border-radius: 8px;
    overflow: hidden;
}
.about-team h2 {
    margin-top: 0;
}
.team-image {
    flex: 0 0 40%;
    align-self: stretch;
    min-height: 400px;
}
.team-text {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.story-image img, .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   5. BOUTONS
   ========================================================================== */
.cta-button, .cta-button-white {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 -4px 0 0 rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease-out;
}
.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
}
.cta-button:hover {
    background-color: var(--accent-darker);
    transform: translateY(-3px);
    box-shadow: 0 7px 12px rgba(0, 0, 0, 0.2), inset 0 -4px 0 0 var(--primary-color);
}
.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 -2px 0 0 var(--primary-color);
}
.cta-button-white {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 -4px 0 0 #e0e0e0;
}
.cta-button-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 7px 12px rgba(0, 0, 0, 0.15), inset 0 -4px 0 0 var(--accent-color);
}
.cta-button-white:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 -2px 0 0 var(--accent-color);
}

/* ==========================================================================
   6. PIED DE PAGE
   ========================================================================== */
footer {
    background: var(--dark-footer);
    color: #ccc;
    padding: 40px 0;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
footer .logo {
    color: var(--white);
}
footer .footer-details p {
    margin: 5px 0;
}
footer .footer-details a {
    color: #ccc;
    text-decoration: none;
}
footer .footer-details a:hover {
    text-decoration: underline;
}
.footer-legal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.footer-legal-nav a {
    color: #ccc;
    text-decoration: none;
}
.footer-legal-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   7. SYSTÈME D'ANIMATION GLOBALE
   ========================================================================== */
@keyframes pageLoadFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
header, .hero-content, .page-hero {
    animation: pageLoadFadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.how-it-works .step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.how-it-works.is-visible .step {
    opacity: 1;
    transform: translateY(0);
}
.how-it-works.is-visible .step:nth-child(1) { transition-delay: 0.2s; }
.how-it-works.is-visible .step:nth-child(2) { transition-delay: 0.4s; }
.how-it-works.is-visible .step:nth-child(3) { transition-delay: 0.6s; }

/* ==========================================================================
   8. ANIMATION DES VAGUES
   ========================================================================== */
@keyframes wavyBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   9. RESPONSIVE (BLOCS FUSIONNÉS)
   ========================================================================== */
@media (max-width: 992px) {
    .service-detail-item, .service-detail-item.reverse { flex-direction: column; gap: 30px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-text h2 { text-align: center; }
    .process-steps { grid-template-columns: 1fr; }
    .about-story-flex { flex-direction: column; }
    .story-text h2, .big-number { text-align: center; }
    .benefits-grid { grid-template-columns: 1fr; }
    .team-content { flex-direction: column; }
    .team-image { width: 100%; min-height: 300px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-details h2, .contact-form h2 { text-align: center; }
    
    .main-nav { display: none; }
    .header-client-button { display: none; }
    #hamburger-button { display: block; }
}

/* ERREUR DE SYNTAXE CORRIGÉE ICI */
@media (max-width: 768px) {
    h1, .page-hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    
    .logo img { height: 80px; } 

    .services-grid { grid-template-columns: 1fr; }
    .why-us-flex { flex-direction: column; gap: 30px; }
    .why-us-text h2 { text-align: center; }
    .why-us-image { height: 250px; width: 100%; background-size: cover; background-position: center; }
    .cta-button, .cta-button-white { width: 100%; padding: 15px 20px; }
    footer .container { flex-direction: column; text-align: center; }

    #popup-slidein { padding: 20px 25px; max-width: 320px; }
    #popup-slidein h3 { font-size: 1.3rem; }
    #popup-slidein p { font-size: 0.9rem; }
    #popup-slidein .cta-button { padding: 8px 15px; font-size: 0.8rem; }
    
    #cookie-consent-banner { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
    #cookie-consent-banner .cta-button,
    #cookie-consent-banner .cta-button-white { flex-grow: 1; }
} /* L'ACCOLADE MANQUANTE A ÉTÉ AJOUTÉE ICI */

/* ==========================================================================
   10. STYLES POUR LA PAGE "CONTACT"
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.contact-details h2, .contact-form h2 { text-align: left; color: var(--primary-color); margin-bottom: 30px; }
.contact-info-item { margin-bottom: 20px; font-size: 1.1rem; }
.contact-info-item strong { display: block; color: var(--dark-text); margin-bottom: 5px; }
.contact-info-item span { color: var(--secondary-text); }
.contact-details a[href^="tel:"], .contact-details a[href^="mailto:"] { color: inherit; text-decoration: none; }
.contact-details a[href^="tel:"]:hover, .contact-details a[href^="mailto:"]:hover { text-decoration: underline; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.contact-form .cta-button { width: 100%; }

/* ==========================================================================
   11. CARROUSEL DE TÉMOIGNAGES ANIMÉ
   ========================================================================== */
.testimonial-container { perspective: 1000px; max-width: 750px; margin: 0 auto; }
.testimonial-flipper { position: relative; transition: transform 0.8s, height 0.4s ease-in-out 0.4s; transform-style: preserve-3d; }
.testimonial-flipper.is-flipped { transform: rotateY(180deg); }
.testimonial-face { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; }
.testimonial-face.testimonial-back { transform: rotateY(180deg); }
.testimonial-face .testimonial-item { text-align: center; max-width: none; }
.testimonial-face blockquote { font-size: 1.5rem; font-style: italic; color: var(--secondary-text); margin: 0 0 20px 0; border-left: 4px solid var(--primary-color); padding-left: 20px; text-align: left; }
.testimonial-face cite { font-weight: 700; font-style: normal; color: var(--dark-text); }

/* ==========================================================================
   12. BOUTON "RETOUR EN HAUT"
   ========================================================================== */
#back-to-top { position: fixed; bottom: 20px; right: 20px; z-index: 999; background-color: var(--primary-color); color: var(--white); border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 20px; line-height: 45px; text-align: center; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); opacity: 0; transform: translateY(10px); visibility: hidden; transition: all 0.3s ease-in-out; }
#back-to-top.show { opacity: 1; transform: translateY(0); visibility: visible; }
#back-to-top:hover { background-color: var(--primary-darker); }
#back-to-top:active { transform: scale(0.95); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }

/* ==========================================================================
   13. POP-UP LATÉRAL (CENTRE-DROIT)
   ========================================================================== */

#popup-side {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 1001;

    transform: translate(110%, -50%);
    
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 380px;
    width: calc(100% - 40px); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    text-align: left;
    border-left: 5px solid var(--accent-color);
    
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, visibility 0s linear 0.5s;
}

#popup-side.show {
    opacity: 1;
    transform: translate(0, -50%);
    visibility: visible;
    transition-delay: 0s;
}

#popup-side #popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}
#popup-side #popup-close:hover {
    color: var(--dark-text);
}

#popup-side h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    padding-right: 30px;
}
#popup-side p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}
#popup-side .cta-button {
    background-color: var(--accent-color);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    font-size: 0.9rem;
}
#popup-side .cta-button:hover {
    background-color: var(--accent-darker);
    box-shadow: 0 7px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
#popup-side .cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   14. MENU HAMBURGER POUR MOBILE
   ========================================================================== */
#hamburger-button { display: none; background: none; border: none; font-size: 30px; cursor: pointer; color: var(--primary-color); padding: 5px; line-height: 1; }
#mobile-menu { display: none; background-color: var(--white); position: absolute; top: 100%; left: 0; width: 100%; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 999; }
#mobile-menu nav ul { list-style: none; padding: 10px 0; margin: 0; display: flex; flex-direction: column; align-items: center; }
#mobile-menu nav li { width: 100%; text-align: center; }
#mobile-menu nav a { display: block; padding: 15px 20px; text-decoration: none; color: var(--dark-text); font-weight: 700; border-bottom: 1px solid var(--light-gray); }
#mobile-menu nav li:last-child a { border-bottom: none; }
#mobile-menu nav a:hover { background-color: var(--primary-lighter); color: var(--primary-color); }
#mobile-menu nav a svg { display: none; }
body.mobile-menu-open #mobile-menu { display: block; }
body.mobile-menu-open #hamburger-button::before { content: "✕"; font-size: 24px; line-height: 1; }
body.mobile-menu-open #hamburger-button { font-size: 0; }

/* ==========================================================================
   15. STYLES POUR LA PAGE ESPACE CLIENT
   ========================================================================== */
.client-area { padding-top: 40px; padding-bottom: 60px; }
#widget-connexion-ubi { max-width: 400px; margin: 0 auto; padding: 20px; border: 1px solid var(--light-gray); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); font-family: var(--font-family); }
#widget-connexion-ubi label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--dark-text); }
#widget-connexion-ubi input[type="text"],
#widget-connexion-ubi input[type="password"] { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; margin-bottom: 20px; font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s; }
#widget-connexion-ubi input[type="text"]:focus,
#widget-connexion-ubi input[type="password"]:focus { outline: none; border-color: var(--primary-color); }
#widget-connexion-ubi button,
#widget-connexion-ubi input[type="submit"] { display: inline-block; width: 100%; padding: 14px 30px; font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; cursor: pointer; border: none; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 -4px 0 0 rgba(0, 0, 0, 0.2); transition: all 0.15s ease-out; background-color: var(--primary-color); color: var(--white); margin-top: 10px; }
#widget-connexion-ubi button:hover,
#widget-connexion-ubi input[type="submit"]:hover { background-color: var(--primary-darker); transform: translateY(-3px); box-shadow: 0 7px 12px rgba(0, 0, 0, 0.2), inset 0 -4px 0 0 var(--accent-color); }
#widget-connexion-ubi button:active,
#widget-connexion-ubi input[type="submit"]:active { transform: translateY(1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 -2px 0 0 var(--accent-color); }

/* ==========================================================================
   16. STYLES POUR LES COOKIES (Style inversé)
   ========================================================================== */
#cookie-consent-banner { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--dark-footer); 
    color: #f1f1f1; 
    padding: 20px 25px; 
    z-index: 2000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2); 
    opacity: 0; 
    transform: translateY(100%); 
    visibility: hidden; 
    transition: all 0.5s ease-out; 
}
#cookie-consent-banner.show { 
    opacity: 1; 
    transform: translateY(0); 
    visibility: visible; 
}
.cookie-text p { 
    margin: 0; 
    font-size: 0.9rem; 
    line-height: 1.5; 
}
.cookie-text a { 
    color: var(--white); 
    font-weight: 700; 
    text-decoration: underline; 
}
.cookie-buttons { 
    display: flex; 
    gap: 15px; 
    flex-shrink: 0; 
}
#cookie-consent-banner .cta-button,
#cookie-consent-banner .cta-button-white {
    padding: 8px 18px;
    font-size: 0.9rem;
    width: auto;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: none; 
    border: 1px solid;
}

#cookie-consent-banner .cta-button {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

#cookie-consent-banner .cta-button-white {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

#cookie-consent-banner .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

#cookie-consent-banner .cta-button-white:hover {
    background-color: var(--accent-darker);
    border-color: var(--accent-darker);
    transform: translateY(-1px);
}

#cookie-consent-banner .cta-button:active,
#cookie-consent-banner .cta-button-white:active {
    transform: translateY(0);
}

/* ==========================================================================
   17. STYLES POUR LES PAGES LÉGALES
   ========================================================================== */
.legal-page {
    background-color: var(--white);
    padding-top: 40px;
    padding-bottom: 60px;
}
.legal-page h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}
.legal-page h2 {
    text-align: left;
    color: var(--primary-darker);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-lighter);
    padding-bottom: 5px;
}
.legal-page p, .legal-page ul {
    line-height: 1.8;
    margin-bottom: 15px;
}
.legal-page ul {
    padding-left: 20px;
}
.legal-page a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}
.legal-page strong {
    color: var(--dark-text);
}