/* --- CHARTE GRAPHIQUE --- */
:root {
    --teal: #09463E;
    --aqua: #48A3AE;
    --sand: #8E6E5F;
    --light-sand: #C5AA9C;
    --off-white: #ECE0E7;
    --gold-accent: #B08D57; /* From Logo */
    --white: #ffffff;
    --dark-text: #333;
}

/* --- STYLES GÉNÉRAUX --- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 {
    font-family: 'Lora', serif;
    color: var(--teal);
    margin-bottom: 15px;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--white);
}

/* --- HERO SECTION & HEADER OVERLAY --- */
.hero {
    position: relative;
    padding: 0;
    color: var(--white);
    background-color: var(--teal); /* Fallback color */
    background-image: url('/images/hero-background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
}

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

.logo img {
    height: 80px;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    border-bottom-color: var(--gold-accent);
}

.hero-content h1.brand-title {
    font-family: 'Lora', serif;
    font-size: 4.5em;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h2 {
    color: var(--white);
    font-size: 2.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- HERO CONTENT ALIGNMENT --- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Ensure text within is also centered */
}

/* --- HERO LOGO --- */
.hero-logo {
    max-width: 200px; /* Adjust as needed */
    margin-top: 20px;
    margin-bottom: 20px;
    /* Removed border-radius: 50%; to allow mask to define shape */
    mask-image: radial-gradient(ellipse at center, white 70%, transparent 100%); /* Wider, softer fade effect */
    -webkit-mask-image: radial-gradient(ellipse at center, white 70%, transparent 100%); /* For Webkit browsers */
}

/* --- HERO HEADER ADJUSTMENTS --- */
.hero-header .container {
    justify-content: center; /* Center the nav since the logo is gone */
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--gold-accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 40px;
}

.btn:hover {
    background-color: var(--sand);
}

/* --- SECTIONS --- */
section:not(.hero) {
    padding: 60px 0;
}

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

.section-dark {
    background-color: #f7f9f9; /* A very light grey, derived from off-white */
}

/* --- SECTION 3 BLOCS --- */
#intro-blocks {
    padding: 80px 0;
}

.blocks-container {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.block {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
}

.block-image-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px auto;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    position: relative;
    border: 4px solid var(--aqua);
    animation: blob-morph 10s infinite alternate;
}

.block:nth-child(2) .block-image-wrapper {
    border-color: var(--light-sand);
    animation-delay: -2s;
}

.block:nth-child(3) .block-image-wrapper {
    border-color: var(--gold-accent);
    animation-delay: -5s;
}

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

.block-image-wrapper:hover img {
    transform: scale(1.1);
}

.block h4 {
    font-family: 'Lora', serif;
    color: var(--sand);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.block-link-wrapper .block p {
    color: var(--dark-text);
}

@keyframes blob-morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* --- WRAPPER LIEN BLOCS --- */
.block-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- FIX STYLE LIEN BLOCS --- */
.block-link-wrapper h4 {
    color: var(--sand);
}

.block-link-wrapper p {
    color: var(--dark-text);
}

/* --- FORMULAIRE --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
}

form input[type="text"],
form input[type="email"],
form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
}

form button.btn {
    margin-top: 10px;
    width: 100%;
}

/* --- FOOTER --- */
footer {
    background-color: var(--teal);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer a {
    color: var(--aqua);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- STYLES PAGES INTERNES --- */
.page-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.page-header nav a {
    color: var(--teal);
}

.page-header nav a:hover {
    border-bottom-color: var(--gold-accent);
}

.page-title-section {
    padding: 50px 0;
    text-align: center;
}

.page-title-section h1 {
    font-size: 2.8em;
}

.subtitle-page {
    font-size: 1.2em;
    color: var(--sand);
    font-style: italic;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px; /* Add some padding for smaller screens */
}

.content-container ul {
    padding-left: 20px;
}

.content-container li {
    margin-bottom: 10px;
}

/* --- TIMELINE (PAGE APPROCHE) --- */
.timeline {
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.timeline-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--aqua);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-family: 'Lora', serif;
}

.timeline-item:nth-child(2) .timeline-number { background-color: var(--light-sand); }
.timeline-item:nth-child(3) .timeline-number { background-color: var(--gold-accent); }

.timeline-content h4 {
    margin-top: 0;
    color: var(--teal);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-header .container {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content h2, .hero-content h1.brand-title {
        font-size: 2.2em;
    }

    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 1em;
    }

    .page-header .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- PAGE TITLE WITH BACKGROUND IMAGE --- */
.page-title-with-bg {
    position: relative;
    padding: 100px 0;
    color: var(--white);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    text-align: center;
    z-index: 1;
}

.page-title-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(9, 70, 62, 0.7), rgba(9, 70, 62, 0.3));
    z-index: -1;
}

.page-title-with-bg h1,
.page-title-with-bg .subtitle-page {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-title-with-bg + .section-light::before {
    content: '';
    display: block;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white));
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

/* --- UTILITIES --- */
.text-center {
    text-align: center;
}

/* --- CONTACT CTA SECTION --- */
#contact-cta {
    padding: 80px 0;
    background-color: var(--teal);
    color: var(--white);
}

#contact-cta h3 {
    color: var(--white);
    margin-bottom: 20px;
}

#contact-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* --- PRICING SECTION --- */
#tarifs {
    padding: 60px 0;
    text-align: center;
}

#tarifs h2 {
    margin-bottom: 40px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pricing-card {
    background-color: var(--off-white);
    border-radius: 20px; /* Match example */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and content */
    overflow: hidden; /* To keep border-radius on images */
    padding: 0; /* Remove padding from card */
}

.pricing-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pricing-card-content {
    padding: 30px;
    text-align: center;
}

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

.pricing-card h4 {
    color: var(--teal);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 2em;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 10px;
}

.pricing-card .duration {
    font-size: 1em;
    color: var(--sand);
    margin-bottom: 15px;
}

.pricing-card p {
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 0.95em;
}

.reimbursement-info {
    background-color: #f7f9f9;
    border-left: 5px solid var(--aqua);
    padding: 25px;
    margin-top: 40px;
    text-align: left;
    border-radius: 5px;
}

.reimbursement-info h3 {
    color: var(--teal);
    margin-top: 0;
    margin-bottom: 15px;
}

.reimbursement-info p {
    color: var(--dark-text);
}

/* --- CALENDLY INTEGRATION STYLING --- */
#booking-module .content-container {
    max-width: 100%; /* Full width for Calendly */
    padding: 0; /* Remove padding for full width */
}

.calendly-inline-widget {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card-link {
        width: 100%;
        max-width: 400px; /* Control max-width on mobile */
    }
}

/* --- PRICING CARD LINK --- */
.pricing-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1 1 385px; /* Adjusted flex-basis to fit two cards with gap */
    max-width: 385px; /* Adjusted max-width */
}

.pricing-card-content {
    padding: 30px;
    text-align: center; /* Ensure text is centered */
}

/* --- CALENDLY BACKGROUND --- */
.calendly-background {
    background-color: var(--off-white); /* Using a light color from the palette */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
