/* ---------- Variables ---------- */
:root {
    /* Couleurs */
    --primary-color: #023047;
    --primary-light: #0353a4;
    --secondary-color: #219ebc;
    --accent-color: #d4af37;
    --accent-light: #e9c967;
    --light-accent: #f0e4bb;
    --text-color: #333;
    --text-light: #666;
    --light-text: #f8f9fa;
    --light-bg: #f8f9fa;
    --dark-bg: #023047;
    --medium-bg: #e9f0f4;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    /* Typographie */
    --heading-font: 'DM Serif Display', Georgia, serif;
    --body-font: 'Montserrat', Arial, sans-serif;
    
    /* Espacements */
    --section-padding: 7rem 0;
    --container-padding: 0 2rem;
    
    /* Transitions */
    --transition-short: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-long: 0.8s ease;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 32px;
    
    /* Shadows */
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- Import Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
    background-color: var(--light-bg);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
    -ms-transition: opacity 1s ease;
    -o-transition: opacity 1s ease;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

p.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-short);
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: var(--body-font);
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ---------- Utilitaires ---------- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 2;
}

.highlight {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-short);
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: height var(--transition-short);
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(2, 48, 71, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 48, 71, 0.2);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: calc(1rem - 2px) calc(2rem - 2px);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(2, 48, 71, 0.15);
}

.full-width {
    width: 100%;
}

.hidden-field {
    display: none !important;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 0.6rem;
    vertical-align: middle;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: var(--accent-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
}

/* ---------- Loader ---------- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.loader {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

.water {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='50%25' x2='50%25' y1='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23219ebc'/%3E%3Cstop offset='100%25' stop-color='%23023047'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M0 0h800v800H0z'/%3E%3Cg fill='%23fff' fill-opacity='.3'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    animation: fillAnimation 5s infinite;
}

@keyframes fillAnimation {
    0% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(40%);
    }
    100% {
        transform: translateY(100%);
    }
}

.loader-text {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    -webkit-animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ---------- Cursor ---------- */

.cursor-active {
    opacity: 1;
}

.cursor-link {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.2);
}

/* ---------- Background Waves ---------- */
.bg-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.02;
    pointer-events: none;
}

.wave1 {
    fill: var(--primary-color);
    opacity: 0.2;
    animation: waveAnimation 25s linear infinite;
}

.wave2 {
    fill: var(--secondary-color);
    opacity: 0.2;
    animation: waveAnimation 20s linear infinite reverse;
}

.wave3 {
    fill: var(--accent-color);
    opacity: 0.1;
    animation: waveAnimation 30s linear infinite;
}

@keyframes waveAnimation {
    0% {
        transform: translate3d(-50px, 0, 0);
    }
    50% {
        transform: translate3d(50px, 0, 0);
    }
    100% {
        transform: translate3d(-50px, 0, 0);
    }
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    z-index: 1000;
    padding: 1.5rem;
    display: none;
    transform: translateY(100%);
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    margin-right: 2rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie-accept, .btn-cookie-decline {
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-short);
}

.btn-cookie-accept {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    border: none;
}

.btn-cookie-decline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-cookie-accept:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ---------- Header & Navigation ---------- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-short);
}

.header.scrolled {
    box-shadow: var(--box-shadow-light);
    background-color: white;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height var(--transition-short);
}

.header.scrolled .container {
    height: 70px;
}

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

.logo-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    transition: color var(--transition-short);
}

.logo-link:hover {
    color: var(--accent-color);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.logo-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.logo-text {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    font-weight: 800;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-short);
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-short);
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 0 0 100px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.hero-visual-full {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease;
    filter: brightness(0.9);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 1;
}

.hero h1 {
    margin-bottom: 2rem;
    line-height: 1.2;
    font-size: 4.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin: 2.5rem auto;
    justify-content: center;
}

.hero-locations {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 900px;
}

.stat-item {
    text-align: center;
    padding: 0 2rem;
}

.stat-number {
    display: block;
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    vertical-align: super;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 70px;
    background-color: var(--border-color);
}

/* Animation for count (depuis hero-section.js) */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Services Section ---------- */
.services {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

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

.service-card {
    position: relative;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-content, .service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    backface-visibility: hidden;
}

.service-card-content {
    background-color: white;
    box-shadow: var(--box-shadow-light);
    z-index: 2;
    transform: rotateY(0deg);
}

.service-hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
    box-shadow: var(--box-shadow);
}

.service-card:hover .service-card-content {
    transform: rotateY(-180deg);
}

.service-card:hover .service-hover {
    transform: rotateY(0deg);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background-color: var(--light-accent);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link .arrow {
    margin-left: 5px;
    transition: transform var(--transition-short);
}

.service-link:hover .arrow {
    transform: translateX(5px);
}

.service-hover-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-hover-content h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.service-hover-content ul {
    list-style: none;
    margin-bottom: auto;
}

.service-hover-content li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: baseline;
    font-size: 0.95rem;
}

.service-hover-content li::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.service-hover-content .btn {
    align-self: flex-start;
}

.service-hover-content .btn-outline {
    border-color: white;
    color: white;
}

.service-hover-content .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ---------- About Section ---------- */
.about {
    padding: var(--section-padding);
    background-color: var(--medium-bg);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-bottom: 6rem;
}

.about-image-wrapper {
    position: relative;
    align-self: center;
}

.about-image-container {
    position: relative;
    z-index: 1;
}

.about-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-lg);
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-content h3 {
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.certification {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.certification img {
    width: 40px;
    object-fit: cover;
}

.certification span {
    font-size: 0.9rem;
    font-weight: 600;
}

.about-philosophy {
    margin-top: 3rem;
}

.about-philosophy h4 {
    margin-bottom: 2rem;
}

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

.philosophy-item {
    position: relative;
}

.philosophy-number {
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: var(--heading-font);
    font-size: 3rem;
    color: rgba(33, 158, 188, 0.1);
    z-index: 0;
}

.philosophy-item h5 {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.philosophy-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.map-section {
    margin-bottom: 6rem;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.interactive-map-container {
    width: 80%;
    position: relative;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: auto;
}

#leaflet-map {
    width: 100%;
    z-index: 1;
}

.location-item {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.location-item.active {
    background-color: var(--light-bg);
    box-shadow: var(--box-shadow-light);
}

.locations-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.locations-map h4 {
    text-align: center;
}

.locations-info p {
    text-align: center;
}

.location-name {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    fill: var(--primary-color);
    text-anchor: middle;
    dominant-baseline: hanging;
}

.location-line {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1;
}

.location-list {
    list-style: none;
}

.location-list li {
    display: flex;
    margin-bottom: 1.5rem;
}

.location-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.leaflet-control-attribution {
    display: none;
}

.location-dot.paris {
    background-color: var(--primary-color);
}

.location-dot.bretagne {
    background-color: var(--secondary-color);
}

.location-dot.reunion {
    background-color: var(--accent-color);
}

.location-details h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.location-details p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.animated-line {
    animation: dash 20s linear infinite;
}

/* Style des popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
}

.leaflet-popup-content {
    margin: 10px;
}

.testimonials-section h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-long), visibility var(--transition-long);
    padding: 1rem;
}

.testimonial.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-content {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: var(--heading-font);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-light);
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.prev-testimonial, .next-testimonial {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border-radius: 50%;
    transition: all var(--transition-short);
}

.prev-testimonial:hover, .next-testimonial:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonial-dots {
    display: flex;
    gap: 0.8rem;
    margin: 0 1.5rem;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    cursor: pointer;
    transition: all var(--transition-short);
    margin: 0;
}

.testimonial-dots .dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* ---------- FAQ Section ---------- */
.faq {
    padding: var(--section-padding);
    background-color: var(--light-bg);
    position: relative;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.faq-image {
    position: relative;
}

.faq-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(var(--accent-light) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
    border-radius: var(--border-radius-lg);
}

.faq-img-container {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: translateX(30px) translateY(30px);
}

.faq-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-long);
}

.faq-img-container:hover img {
    transform: scale(1.05);
}

.faq-container {
    max-width: 700px;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-md);
    background-color: white;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: all var(--transition-short);
}

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

.faq-question {
    width: 100%;
    background-color: white;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: all var(--transition-short);
    font-size: 1rem;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    transition: all var(--transition-short);
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
    background-color: white;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-more-btn, .faq-less-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-more-btn .arrow, .faq-less-btn .arrow {
    margin-left: 0.5rem;
    transition: transform var(--transition-short);
}

.faq-more-btn:hover .arrow {
    transform: translateX(5px);
}

.faq-less-btn:hover .arrow {
    transform: translateY(-5px);
}

.faq-more-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ---------- Contact Section ---------- */
.section-subtitle-arg {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact {
    padding: var(--section-padding);
    background-color: var(--light-bg);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    align-items: flex-start;
}

.contact-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    width: 100%;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-details h3 {
    color: white;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin-bottom: 0;
    opacity: 0.8;
}

.office-hours h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.hours-day {
    font-weight: 500;
}

.hours-time {
    color: rgba(255, 255, 255, 0.8);
}

.hours-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.contact-form-container {
    position: relative;
}

.contact-form-wrapper {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-short);
    font-size: 1rem;
}

.form-group select {
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(2, 48, 71, 0.1);
}

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

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.privacy-checkbox input {
    width: auto;
    margin-top: 0.3rem;
}

.privacy-checkbox label {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 400;
}

.form-submit {
    margin-top: 1rem;
}

.form-success, .form-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-short);
    border-radius: var(--border-radius-lg);
}

.form-success.show, .form-error.show {
    opacity: 1;
    visibility: visible;
}

.success-icon, .error-icon {
    margin-bottom: 1.5rem;
}

.success-icon {
    color: var(--success-color);
}

.error-icon {
    color: var(--error-color);
}

.form-success h3, .form-error h3 {
    margin-bottom: 1rem;
}

.form-success p, .form-error p {
    margin-bottom: 2rem;
}

.success-close, .error-close {
    min-width: 150px;
}

/* Erreur formulaire */
.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-group input.error, .form-group textarea.error, .form-group select.error {
    border-color: var(--error-color);
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-short);
    z-index: 90;
    box-shadow: var(--box-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* ---------- Appointment Button ---------- */
.appointment-btn {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 90;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-short);
}

.appointment-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-strong);
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 0 0 2rem;
    position: relative;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
    padding: 6rem 0 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: white;
    transition: var(--transition-short);
}

.footer-logo:hover {
    color: var(--accent-color);
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-short);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
    transition: transform var(--transition-short);
}

.footer-col li:hover {
    transform: translateX(5px);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition-short);
    position: relative;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-legal {
    margin-bottom: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-short);
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.8rem;
}

.copyright {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legal-info {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0;
}

.website-dev {
    text-decoration: none;
    color: var(--accent-color);
}

/* ---------- Animations ---------- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] {
    transition-delay: 0.1s;
}

[data-aos-delay="200"] {
    transition-delay: 0.2s;
}

[data-aos-delay="300"] {
    transition-delay: 0.3s;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ---------- Media Queries ---------- */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-divider {
        width: 80px;
        height: 1px;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-visual-full {
        height: 70vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-container {
        margin: 0 auto;
    }
    
    .about-grid, .locations-map, .faq-layout, .calculator-container, .contact-container {
        grid-template-columns: 1fr;
    }

    #leaflet-map {
        height: 400px;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .faq-img-container {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
    }
    
    .faq-pattern {
        display: none;
    }
    
    .locations-info {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-visual-full {
        height: 60vh;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-short);
        box-shadow: var(--box-shadow);
    }
    
    .header.scrolled .nav-links {
        top: 70px;
    }
    
    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 2rem;
    }

    #leaflet-map {
        height: 350px;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col h4 {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul {
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .appointment-btn {
        padding: 0.8rem;
        left: 1rem;
        bottom: 1rem;
    }
    
    .appointment-btn span {
        display: none;
    }
    
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .separator {
        display: none;
    }
}

/* ---------- Accessibilité ---------- */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.keyboard-user :focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

body:not(.keyboard-user) :focus {
    outline: none;
}

/* ---------- Animations dynamiques ---------- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Legal pages ---------- */
.legal-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.content-card h2,
.content-card h3 {
    margin-bottom: 1.5rem;
}
.content-card h3 {
    font-size: 1.75rem;
}

.content-card ul, .content-card ol {
    margin-left: 20px;
    padding-left: 0;
}
.content-card li {
    margin-bottom: 0.75rem;
}

.content-card-highlight {
    background: var(--primary-color);
    color: white;
    padding: 2rem 3rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
}
.content-card-highlight p {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.content-card-highlight strong {
    color: inherit; 
}
.content-card-highlight h2, .content-card-highlight h3 {
    color: white;
}


.content-card-dark {
    background: rgb(35, 31, 31); 
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.content-card-dark h2,
.content-card-dark h3 {
    color: white; 
    margin-bottom: 1.5rem;
}

.content-card-dark ul {
    margin-left: 20px;
}

.content-card-accent { 
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 2rem 3rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
}
.content-card-accent p {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 500;
}
.content-card-accent strong {
    color: var(--primary-color);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.styled-table th,
.styled-table td {
    text-align: left;
    padding: 1rem 0.5rem 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.styled-table th {
    font-weight: 600;
    color: var(--primary-color);
}

.styled-table tr:last-child td {
    border-bottom: none;
}

.rights-summary-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.rights-summary-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.rights-summary-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.content-card a, .content-card-dark a, .content-card-highlight a, .content-card-accent a {
    text-decoration: underline;
}

.content-card a {
    color: var(--secondary-color);
}
.content-card a:hover {
    color: var(--accent-color);
}

.content-card-dark a {
    color: var(--accent-light);
}
.content-card-dark a:hover {
    color: white;
}

.content-card-highlight a {
    color: var(--accent-light);
}
.content-card-highlight a:hover {
    color: white;
}

.content-card-accent a {
    color: var(--primary-light);
}
.content-card-accent a:hover {
    color: var(--primary-color);
}