/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f7c;
    --secondary-color: #8eb4c7;
    --accent-color: #d4a574;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #4a8fb5;
    --secondary-color: #6a9db7;
    --accent-color: #d4a574;
    --dark-color: #e0e0e0;
    --light-color: #2a2a2a;
    --white: #1a1a1a;
    --gray: #b0b0b0;
    --light-gray: #3a3a3a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.4);
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skip Link pour accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Amélioration du focus pour l'accessibilité */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-2px);
}

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

/* Header et Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.footer-logo-mar {
    height: 50px;
    width: auto;
    margin-top: 1rem;
    border-radius: 5px;
    background: white;
    padding: 5px 10px;
}

.mar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.amo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.logo-mar {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.logo-maprimeadapt-container {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-maprimeadapt {
    max-width: 220px;
    height: auto;
    border-radius: 10px;
}

.amo-header > div {
    text-align: center;
}

.amo-header .section-title {
    margin-bottom: 0.5rem;
}

.amo-header .section-intro {
    margin-top: 0.5rem;
}

.logo .subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    width: 60px;
    height: 32px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.theme-icon {
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    opacity: 0.3;
}

[data-theme="dark"] .theme-icon.sun {
    opacity: 0.3;
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: linear-gradient(135deg, rgba(44, 95, 124, 0.85) 0%, rgba(142, 180, 199, 0.85) 100%), url('images/header.svg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 124, 0.85) 0%, rgba(142, 180, 199, 0.75) 100%);
    z-index: 0;
}

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #c99763;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille de services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.service-image {
    width: calc(100% + 4rem);
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
    margin-top: -2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    display: block !important;
    background-color: #f8f9fa;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.4s ease;
}

.service-image-wrapper {
    width: calc(100% + 4rem);
    height: 200px;
    margin-top: -2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #f8f9fa;
    display: block !important;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    transition: transform 0.4s ease;
}

.service-image-moe {
    /* Règle spécifique pour forcer l'affichage */
    display: block !important;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-image,
.service-card:hover .service-image-wrapper img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--dark-color);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Section Qui sommes-nous */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--dark-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.value-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-badges {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.badge-item:last-child {
    border-bottom: none;
}

.badge-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color), #e0b888);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.badge-content strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.badge-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

.certification-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.certification-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.certification-box ul {
    list-style: none;
    padding: 0;
}

.certification-box ul li {
    padding: 0.5rem 0;
    color: var(--dark-color);
    font-weight: 500;
    border-bottom: 1px solid rgba(44, 95, 124, 0.1);
}

.certification-box ul li:last-child {
    border-bottom: none;
}

.cert-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quote-box {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote-box p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.quote-box cite {
    font-style: normal;
    font-weight: 600;
    display: block;
    text-align: right;
}

/* Section MAR */
.mar-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.mar-info h3,
.amo-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.mar-info h3:first-child,
.amo-info h3:first-child {
    margin-top: 0;
}

.mar-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.mar-step:hover {
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--dark-color);
    line-height: 1.7;
    margin: 0;
}

.mar-list,
.amo-list {
    list-style: none;
    padding-left: 0;
}

.mar-list li,
.amo-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.mar-list li strong,
.amo-list li strong {
    color: var(--primary-color);
}

.highlight-box {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.highlight-box h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.mar-benefits h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.benefit-icon {
    background-color: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Section AMO */
.amo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.amo-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.amo-step:hover {
    transform: translateX(5px);
}

.amo-step .step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.amo-step .step-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.amo-step .step-content p {
    color: var(--dark-color);
    line-height: 1.7;
    margin: 0;
}

.amo-examples {
    margin-top: 2rem;
}

.amo-examples h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.example-item {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

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

.example-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.example-item p {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
}

.amo-eligibility h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.eligibility-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.eligibility-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.eligibility-card p {
    color: var(--gray);
}

.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.eligibility-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.eligibility-conditions {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
}

.eligibility-conditions h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(44, 95, 124, 0.1);
    font-size: 1.05rem;
    line-height: 1.6;
}

.conditions-list li:last-child {
    border-bottom: none;
}

.conditions-list strong {
    color: var(--primary-color);
}

/* Section Qualifications */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.qualification-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.qualification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.qualification-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.qualification-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Section Contact */
.section-contact {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.map-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--gray);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.whatsapp-contact {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
}

.whatsapp-contact h4 {
    color: var(--white);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: #25D366;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #25D366;
    font-weight: 600;
}

.whatsapp-link svg {
    width: 16px;
    height: 16px;
}

.whatsapp-link:hover {
    text-decoration: none;
    color: #128C7E;
}

.calendly-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.calendly-contact h4 {
    color: var(--white);
}

.btn-calendly {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    cursor: pointer;
}

.btn-calendly:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Formulaire */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .mar-content,
    .amo-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 60px 20px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}

.author-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-service {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Section FAQ */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

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

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

.faq-icon,
.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon,
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
    margin: 0;
}

/* Modal Popup Devis */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--gray);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

.quote-form .form-group {
    margin-bottom: 1.5rem;
}

.quote-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-full {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e0b888 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.6);
}

/* Bouton CTA flottant */
.floating-cta {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1999;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

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

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cookie-buttons .btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-color);
    border: none;
}

.cookie-buttons .btn-secondary:hover {
    background-color: var(--gray);
    color: var(--white);
}

/* Modal Calendrier de Rendez-vous */
.appointment-modal {
    max-width: 700px;
}

.appointment-form .form-group {
    margin-bottom: 1.5rem;
}

.appointment-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form input[type="file"],
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.appointment-form input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.appointment-form input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s ease;
}

.appointment-form input[type="file"]::file-selector-button:hover {
    background: var(--secondary-color);
}

.calendar-container {
    margin: 2rem 0;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.calendar-nav {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.calendar-day.disabled {
    background: var(--light-gray);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.other-month {
    color: var(--gray);
    opacity: 0.3;
}

.calendar-day.today {
    border: 2px solid var(--accent-color);
    font-weight: bold;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: var(--white);
}

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.time-slots {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
}

.time-slots h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#timeSlotsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--light-gray);
}

.appointment-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.appointment-info p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

.btn-calendly {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calendly:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 124, 0.3);
}

.calendly-contact {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.calendly-contact h4 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    #timeSlotsContainer {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* Section Galerie Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 95, 124, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view-project {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-project:hover {
    background: #e0b888;
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 2rem;
    background: var(--card-bg);
}

.lightbox-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.lightbox-info p {
    color: var(--gray);
    line-height: 1.8;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 3001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Timeline Interactive */
/* Timeline Horizontale */
.timeline-horizontal {
    position: relative;
    padding: 4rem 0;
    overflow: visible;
    width: 100%;
}

.timeline-track {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.timeline-items-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 0;
    position: relative;
    width: 100%;
}

.timeline-item-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-item-h:nth-child(1) { animation-delay: 0.1s; }
.timeline-item-h:nth-child(2) { animation-delay: 0.2s; }
.timeline-item-h:nth-child(3) { animation-delay: 0.3s; }
.timeline-item-h:nth-child(4) { animation-delay: 0.4s; }
.timeline-item-h:nth-child(5) { animation-delay: 0.5s; }
.timeline-item-h:nth-child(6) { animation-delay: 0.6s; }
.timeline-item-h:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Box for MAR/AMO sections */
.mar-cta, .amo-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mar-cta .cta-content h3,
.amo-cta .cta-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mar-cta .cta-content p,
.amo-cta .cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mar-cta .cta-buttons,
.amo-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mar-cta .btn-lg,
.amo-cta .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 220px;
    border: 2px solid white;
}

.mar-cta .btn-primary,
.amo-cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.mar-cta .btn-primary:hover,
.amo-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.mar-cta .btn-secondary,
.amo-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.mar-cta .btn-secondary:hover,
.amo-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mar-cta, .amo-cta {
        padding: 2rem 1.5rem;
    }
    
    .mar-cta .cta-content h3,
    .amo-cta .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .mar-cta .cta-buttons,
    .amo-cta .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mar-cta .btn-lg,
    .amo-cta .btn-lg {
        width: 100%;
    }
}

.timeline-marker-h {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #e0b888);
    border: 5px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-marker-h:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.timeline-marker-final {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.marker-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
}

.timeline-content-h {
    margin-top: 1.5rem;
    text-align: center;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.timeline-content-h:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content-h h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content-h p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 140px;
}

.timeline-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-color), #e0b888);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    min-height: 40px;
    min-width: 120px;
    width: fit-content;
    align-self: center;
}

@media (max-width: 1200px) {
    .timeline-horizontal {
        padding: 3rem 0;
    }
    
    .timeline-content-h {
        padding: 1.2rem;
        height: 300px;
    }
    
    .timeline-content-h h3 {
        font-size: 1.05rem;
        min-height: 45px;
    }
    
    .timeline-content-h p {
        font-size: 0.88rem;
        min-height: 130px;
    }
}

@media (max-width: 768px) {
    .timeline-horizontal {
        padding: 2rem 0;
    }
    
    .timeline-items-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .timeline-track {
        display: none;
    }
    
    .timeline-item-h {
        width: 100%;
    }
    
    .timeline-marker-h {
        width: 60px;
        height: 60px;
    }
    
    .marker-number {
        font-size: 1.5rem;
    }
    
    .timeline-content-h {
        height: auto;
        min-height: 240px;
    }
    
    .timeline-content-h h3 {
        min-height: auto;
    }
    
    .timeline-content-h p {
        min-height: auto;
    }
}

/* Ancien style timeline (conservé pour compatibilité) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    animation: slideInTimeline 0.6s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(odd) {
    transform: translateX(-30px);
}

.timeline-item:nth-child(even) {
    transform: translateX(30px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #e0b888);
    border: 5px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.timeline-content {
    width: calc(50% - 50px);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.timeline-duration {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), #e0b888);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Animation au scroll pour la timeline */
.timeline-item.in-view {
    animation: slideInTimeline 0.6s ease forwards;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-marker {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        text-align: left !important;
    }
}

/* Section Audit Énergétique */
.audit-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.audit-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.audit-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.audit-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.audit-types {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.audit-types p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.audit-types-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.audit-types-list li {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.audit-benefits-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.benefit-quick span:last-child {
    font-weight: 600;
    font-size: 1rem;
}

.audit-obligations {
    margin-bottom: 3rem;
}

.audit-obligations h3,
.audit-financement h3,
.audit-process h3,
.audit-faq h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.obligation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.obligation-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.obligation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.obligation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.obligation-icon {
    font-size: 2.5rem;
}

.obligation-header h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.obligation-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.obligation-highlight {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 1.5rem !important;
}

.obligation-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.obligation-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-color);
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.alert-box {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 600;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.aide-montants {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.aide-item .montant {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.audit-financement {
    margin-bottom: 3rem;
}

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

.financement-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.financement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.financement-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid var(--primary-color);
}

.financement-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.financement-card h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.financement-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.financement-card ul li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.financement-note {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1rem;
}

.tarifs-box {
    background: #e3f2fd;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.tarifs-box .financement-note {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.tarifs-box ul {
    margin: 0;
}

.tarifs-box ul li {
    padding: 0.5rem 0;
    color: var(--dark-color);
}

.financement-card .btn {
    width: 100%;
    margin-top: 1.5rem;
}

.audit-process {
    margin-bottom: 3rem;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: var(--primary-color);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.audit-faq {
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.faq-question:hover {
    color: var(--primary-color);
    background: var(--light-color);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.audit-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .obligation-cards,
    .financement-grid {
        grid-template-columns: 1fr;
    }
    
    .audit-hero {
        padding: 2rem;
    }
    
    .audit-benefits-quick {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-step::before {
        left: 30px;
        top: 60px;
    }
    
    .step-content:hover {
        transform: none;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}
