/* ════════════════════════════════════════
   presentation.css
   Inherits global vars from home.css / app.css
   :root vars expected: --red, --dark, --font-heading, --font-btn
════════════════════════════════════════ */

:root {
    --red:          #9E001F;
    --dark:         #0f1117;
    --white:        #ffffff;
    --light-bg:     #f5f5f5;
    --font-heading: 'JetBrains Mono', monospace;
    --font-btn:     'Oswald', sans-serif;
}

.section-pad { padding: 5rem 0; }

/* ════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════ */
.page-hero {
    background: #fff;
    border-top: 1px solid var(--red);
    padding: 3.5rem 0 2.5rem;
}
.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 .4rem;
    line-height: 1;
}
.page-hero-sub {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: #666;
    margin: 0;
    letter-spacing: .04em;
}

/* ════════════════════════════════════════
   SINCE 2007
════════════════════════════════════════ */
.since-section { background: #fff; }

.since-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    line-height: 1.25;
    margin-bottom: 1.8rem;
}
.since-bar {
    flex-shrink: 0;
    display: inline-block;
    width: 5px;
    height: 100%;
    min-height: 2em;
    background: var(--red);
    border-radius: 2px;
    margin-top: .1em;
}

.since-body p {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1rem;
}
.since-body p strong { color: var(--dark); font-weight: 700; }

.since-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.since-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: .25;
}
.since-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ════════════════════════════════════════
   CE QUI NOUS DISTINGUE
════════════════════════════════════════ */
.distingue-section { background: var(--light-bg); }

.distingue-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: .6rem;
}
.distingue-divider {
    width: 348px;
    height: 3px;
    background: var(--red);
    margin-bottom: 1.6rem;
}
.distingue-text {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: #444;
    line-height: 1.95;
    max-width: 860px;
    margin-bottom: 1rem;
}

/* ════════════════════════════════════════
   CERTIFICATIONS TIMELINE
════════════════════════════════════════ */
/* Google Fonts Import for requested typography */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Oswald:wght@500;600;700&display=swap');

/* Section Container */
.certs-section {
    background-color: #E2E2E2; /* Matches the exact grey background of the image */
    padding: 60px 20px;
    font-family: 'JetBrains Mono', monospace; /* Applied to categories/rubriques */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.certs-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Heading style */
.certs-heading {
    font-family: 'Oswald', sans-serif; /* Utilizing bold clean display look */
    color: #9E001F;
    font-size: 2.3rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 80px auto;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: -0.5px;
}

/* Timeline Wrapper to hold the structural track line */
.certs-timeline-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* The exact thin line running through behind the white cards */
.timeline-connecting-line {
    position: absolute;
    top: 57%; /* Positions perfectly across the center alignment of the cards */
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: #EBB6BA; /* Soft tinted red/grey line matching the image */
    z-index: 1;
}

/* Horizontal Timeline Track Grid */
.certs-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    z-index: 2; /* Ensures cards sit over the line */
}

/* Individual Item Column */
.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Year Badges with pointers */
.cert-year {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    padding: 10px 18px;
    min-width: 45px;
    text-align: center;
    position: relative;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.cert-year--red {
    background-color: #9E001F;
}

.cert-year--dark {
    background-color: #555555; /* Dark grey for the middle box */
}

/* Downward arrow pointers beneath the year badges */
.cert-year::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.cert-year--red::after {
    border-top: 6px solid #9E001F;
}

.cert-year--dark::after {
    border-top: 6px solid #555555;
}

/* White Content Cards */
.cert-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px 20px;
    width: 100%;
    max-width: 320px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Eyebrow Category Title */
.cert-card-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #777777;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Main inner title text */
.cert-card-title {
    font-family: 'Oswald', sans-serif; /* Matches the button element specification style */
    font-size: 22px;
    color: #111111;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

/* Base Bottom Tracking Dot Elements */
.cert-timeline-dot-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 20px;
    background-color: #E2E2E2; /* Blends ring out with background perfectly */
    z-index: 3;
}

.cert-timeline-dot {
    width: 18px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Inside tiny target dot creation */
.cert-timeline-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Outer and Inner color configurations for dots */
.cert-timeline-dot--red {
    background-color: #D6C2C5; /* Light soft red outer circle */
    border: 1px solid #C4A1A6;
}
.cert-timeline-dot--red::after {
    background-color: #9E001F; /* Exact red center dot */
}

.cert-timeline-dot--dark {
    background-color: #CCCCCC; /* Light soft gray outer circle */
    border: 1px solid #B5B5B5;
}
.cert-timeline-dot--dark::after {
    background-color: #555555; /* Dark gray center dot */
}

/* Responsive breakpoint for smaller mobile viewports */
@media (max-width: 768px) {
    .certs-timeline {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .timeline-connecting-line {
        display: none; /* Hide linear horizontal track line on vertical stacks */
    }
    .certs-heading {
        font-size: 1.8rem;
    }
}

/* ════════════════════════════════════════
   VISION & MISSION
════════════════════════════════════════ */
/* Intégration des Google Fonts demandées */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Oswald:wght@500;700&family=Inter:wght@400;500&display=swap');

:root {
    --primary-color: #9E001F;
    --text-muted: #555555;
    --border-light: #CCCCCC;
}

/* --- Section globale --- */
.vm-section {
    background-color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

/* --- Cartes Vision & Mission --- */
.vm-card {
    min-height: 237px;
    padding: 2.5rem;
    border-radius: 12px;
}
.vm-card--light {
    background-color: #F4F4F4;
    border: 1px solid var(--primary-color);
}
.vm-card--light .vm-card-label {
    color: #000000;
}
.vm-card--dark {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.vm-card--dark .vm-card-label,
.vm-card--dark .vm-card-text {
    color: #FFFFFF;
}
.vm-card-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.vm-card-text {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- En-tête Nos Valeurs --- */
.values-header {
    padding-bottom: 1rem;
    position: relative;
}
.values-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.values-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0;
}
.btn-apropos-wrapper {
    margin-bottom: -1rem; /* Aligne le bouton directement sur la ligne */
}
.btn-apropos {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111111;
    text-transform: uppercase;
    cursor: pointer;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- Grille des cartes de valeurs --- */
.values-grid {
    margin-top: 1.5rem;
}
.value-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--primary-color); /* Barre rouge supérieure distinctive */
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.value-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}
.value-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.value-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ════════════════════════════════════════
   ABOUT SUB-NAV (bottom tabs)
════════════════════════════════════════ */
.about-subnav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    padding: 0;
}
.subnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.3rem 2.5rem;
    font-family: var(--font-heading);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}
.subnav-item i { font-size: 1.2rem; }
.subnav-item:hover { color: var(--red); border-bottom-color: var(--red); }
.subnav-item--active { color: var(--red); border-bottom-color: var(--red); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
    .certs-timeline::before { display: none; }
    .cert-item { width: 100%; max-width: 300px; }
    .subnav-item { padding: 1rem 1.1rem; font-size: .6rem; }
    .values-grid .col-md-4:nth-child(3n) .value-card  { border-right: 1px solid #e0e0e0; }
    .values-grid .col-md-4:nth-child(n+4) .value-card { border-bottom: 1px solid #e0e0e0; }
    .values-grid .col-md-4:last-child .value-card { border-bottom: none; }
}