/* Layout Styles */

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* Section Spacing */
section {
    padding: var(--space-20) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-4);
}

/* Grid Systems */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

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

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

/* Flexbox Utilities */
.flex {
    display: flex;
}

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

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

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

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Visibility Utilities */
.hidden-mobile {
    display: block;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
    
    .visible-mobile {
        display: block;
    }
}

/* Homepage Specific Layout */

/* Page Hero Banner (for FAQ, Contact, and other internal pages) */
.page-hero-banner {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.page-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8);
}

.page-hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8),
                 0 2px 10px rgba(0, 0, 0, 0.6);
}

.page-hero-subtitle {
    font-size: var(--font-size-lg);
    color: white;
    line-height: var(--line-height-relaxed);
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8),
                 0 1px 8px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero-banner {
        height: 250px;
    }
    
    .page-hero-content {
        padding: var(--space-6);
    }
    
    .page-hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .page-hero-subtitle {
        font-size: var(--font-size-base);
    }
}

/* ================================
   FAQ Page - Anchor Scroll Offset
   UPDATED: Matches predictive JavaScript (20px breathing room)
   ================================ */
[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
    /* = 80px (header) + 20px (breathing room) = 100px */
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
     /* ✓ AJOUT */
    display: flex;
    align-items: center;      /* centrage vertical */
    justify-content: center;  /* centrage horizontal */
}



.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay pour mieux voir le texte */
.hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8);
}

.hero-slide-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-6);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8),
                 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-slide-subtitle {
    font-size: var(--font-size-xl);
    color: white;
    line-height: var(--line-height-relaxed);
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8),
                 0 1px 8px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin: 0 auto;
}

.hero-slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slide-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slide-indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Hero CTA Section (Below Slider) */
.hero-cta-section {
    padding: var(--space-12) 0;
    background: var(--color-white);
}

.hero-cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.values-section {
    padding: var(--space-24) 0;
    background: var(--color-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-10);
    margin-top: var(--space-12);
}

.value-card {
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: white;
}

.value-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.value-description {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

.competencies-section {
    padding: var(--space-24) 0;
    background: var(--color-gray-100); /* #f3f4f6 - slightly darker */
}

.competency-card {
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.competency-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.competency-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.competency-icon{
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--color-primary);
}

.competency-icon svg{
  width:100%;
  height:100%;
  display:block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.competency-icon svg{
  stroke-width: 2;
}

.competency-title::learn-more-link {
    content: "\f105";
    color: var(--color-primary);
    font-weight: 400;
}

.competency-description {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.learn-more-link:hover {
    opacity: 1;
    gap: var(--space-3);
}

.learn-more-link::after {
    content: "\2192";
    font-size: 14px;
    transition: transform var(--transition-fast);
}

.learn-more-link:hover::after {
    transform: translateX(3px);
}

.methodology-section {
    padding: var(--space-24) 0;
    background: var(--color-white);
}

.cta-home {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-home-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide-content {
        padding: var(--space-6);
    }
    
    .hero-slide-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-slide-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta-section {
        padding: var(--space-8) 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}