/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: hsl(16, 62%, 52%);       /* Terracotta warm */
    --primary-hover: hsl(16, 62%, 45%); /* Terracotta hover */
    --primary-light: hsl(16, 60%, 96%); /* Very soft orange background */
    --secondary: hsl(30, 20%, 35%);     /* Soft brown / slate accent */
    --accent-gold: #D4AF37;              /* Gold for stars/badges */
    
    /* Backgrounds */
    --bg-primary: #FAF8F5;               /* Warm cream / off-white */
    --bg-secondary: #F2ECE4;             /* Soft sand / beige */
    --bg-white: #FFFFFF;
    
    /* Typography Colors */
    --text-dark: #2C2520;                /* Warm charcoal (readable, high contrast) */
    --text-muted: #61554E;               /* Medium charcoal for subtext */
    --text-light: #FFFFFF;
    
    /* Font Families */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 37, 32, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 37, 32, 0.08);
    --shadow-lg: 0 16px 40px rgba(44, 37, 32, 0.12);
    
    /* Transitions & Border Radii */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    /* Container Width */
    --container-width: 1140px;
    --container-small: 760px;
}

/* ==========================================================================
   RESET & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base */
}

@media (min-width: 768px) {
    html {
        font-size: 18px; /* Larger base font for senior audience readability */
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Screen readers only utility */
.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;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.small-container {
    max-width: var(--container-small);
}

section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    section {
        padding: 90px 0;
    }
}

.grid {
    display: grid;
    gap: 30px;
}

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

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

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(212, 106, 67, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 106, 67, 0.4);
    outline: none;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--primary);
    color: var(--text-light);
    outline: none;
}

.btn-text {
    background: transparent;
    color: var(--text-dark);
    padding: 10px 16px;
}

.btn-text:hover, .btn-text:focus {
    color: var(--primary);
    outline: none;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.icon-arrow {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.btn-text:hover .icon-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid rgba(44, 37, 32, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo-area-img {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 44px;
    width: auto;
    display: block;
    max-width: 280px;
}

@media (max-width: 480px) {
    .header-logo-img {
        height: 34px;
        max-width: 180px;
    }
}

.header-badge {
    display: none;
    align-items: center;
    background-color: var(--bg-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-dark);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

@media (min-width: 768px) {
    .header-badge {
        display: flex;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
    position: relative;
    background-image: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.info-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 106, 67, 0.15);
}

.hero-lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.icon-check {
    width: 20px;
    height: 20px;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 3px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* Hero Media (Image) */
.hero-media {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible; /* to let the floating card overlap */
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.image-card-caption {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background-color: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
}

.image-card-caption .stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.image-card-caption p {
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.4;
    color: var(--text-dark);
}

.image-card-caption span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-lead {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   TRUST INFO BANNER
   ========================================================================== */
.trust-banner {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid rgba(44, 37, 32, 0.05);
    border-bottom: 1px solid rgba(44, 37, 32, 0.05);
}

.trust-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px 15px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 180px;
}

.trust-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   SECTION HEADER COMMON
   ========================================================================== */
.section-header {
    margin-bottom: 40px;
}

.section-header.text-center {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-description {
    font-size: 1.1rem;
    margin-top: -10px;
}

/* ==========================================================================
   QUI SOMMES-NOUS / ABOUT
   ========================================================================== */
.about-section {
    background-color: var(--bg-white);
}

.about-content {
    font-size: 1.05rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.highlight-box {
    background-color: var(--bg-primary);
    border: 1px dashed rgba(212, 106, 67, 0.3);
    padding: 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-top: 2rem;
    color: var(--text-dark);
}

/* ==========================================================================
   PROGRAM / CONCEPT CARDS
   ========================================================================== */
.program-section {
    background-color: var(--bg-primary);
}

.concept-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(44, 37, 32, 0.03);
    transition: var(--transition);
    height: 100%;
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 106, 67, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.concept-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.concept-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   TESTIMONIALS / REVIEWS
   ========================================================================== */
.reviews-section {
    background-color: var(--bg-white);
    border-top: 1px solid rgba(44, 37, 32, 0.03);
}

.reviews-summary-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 50px;
    align-items: center;
    text-align: center;
}

.summary-left {
    flex-shrink: 0;
}

.rating-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.rating-max {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.stars-large {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin: 8px 0;
    letter-spacing: 2px;
}

.rating-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0;
}

.summary-right {
    text-align: center;
}

.summary-right h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

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

@media (min-width: 768px) {
    .reviews-summary-card {
        flex-direction: row;
        text-align: left;
        padding: 40px;
        align-items: center;
        gap: 50px;
    }
    .summary-right {
        text-align: left;
    }
}

/* Review Cards */
.review-card {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 37, 32, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.review-author {
    border-top: 1px solid rgba(44, 37, 32, 0.08);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}

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

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.author-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-section {
    background-color: var(--bg-secondary);
}

.faq-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.faq-question:focus {
    outline: none;
    background-color: var(--primary-light);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Open State classes */
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    /* controlled dynamically via JS, but fallback just in case */
    max-height: 500px;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.cta-section {
    background-color: var(--bg-primary);
    position: relative;
}

.cta-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 106, 67, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background-color: hsl(40, 60%, 93%);
    color: hsl(40, 70%, 40%);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.cta-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cta-subtext {
    font-size: 0.8rem !important;
    margin: 0 !important;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .cta-card {
        padding: 60px 40px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #241D19; /* Dark warm brown footer */
    color: #ECE7E4;
    padding: 50px 0 20px 0;
    border-top: 3px solid var(--primary);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #A3968F;
    font-size: 0.85rem;
    max-width: 350px;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-info p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #A3968F;
}

.footer-info p strong {
    color: #FFFFFF;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    font-size: 0.75rem;
    color: #8A7B73;
}

.footer-links a {
    color: #A3968F;
    text-decoration: underline;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ==========================================================================
   INSCRIPTION FORM
   ========================================================================== */
.inscription-section {
    background-color: var(--bg-secondary);
}

.inscription-card {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 106, 67, 0.08);
}

@media (min-width: 768px) {
    .inscription-card {
        padding: 50px 60px;
    }
}

.inscription-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(44, 37, 32, 0.15);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 106, 67, 0.15);
    background-color: var(--bg-white);
}

.form-privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Form feedback messages */
.form-feedback {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
    line-height: 1.5;
    text-align: left;
}

.form-feedback.success {
    display: block;
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.form-feedback.error {
    display: block;
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* Spinner & Loading */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
    display: none;
}

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

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .spinner {
    display: inline-block;
}

/* Checkbox Opt-in */
.form-row-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    text-align: left;
}

.form-row-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

/* ==========================================================================
   SCROLL OFFSET & ANIMATIONS
   ========================================================================== */
section {
    scroll-margin-top: 70px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .grid > *:nth-child(1) { transition-delay: 0.05s; }
    .grid > *:nth-child(2) { transition-delay: 0.15s; }
    .grid > *:nth-child(3) { transition-delay: 0.25s; }
    .grid > *:nth-child(4) { transition-delay: 0.35s; }
}

