/**
 * =====================================================================
 * CESDD – Couche d'amélioration visuelle premium
 * N'introduit AUCUNE nouvelle couleur ni police : réutilise uniquement
 * les tokens définis dans style.css (--color-*, --font-*, --space-*).
 * Objectif : rythme, hiérarchie et finition dignes d'un cabinet
 * international, sans toucher à la charte graphique existante.
 * =====================================================================
 */

/* ---------------------------------------------------------------------
   01. Rythme & typographie éditoriale
--------------------------------------------------------------------- */
.section {
    padding-top: clamp(3.5rem, 6vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
}

.section-title {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    line-height: 1.12;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--color-secondary, var(--color-primary));
    border-radius: 2px;
}

.section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------------------------------------------------------------------
   02. Hero — profondeur et respiration
--------------------------------------------------------------------- */
.hero, .page-hero {
    position: relative;
}
.hero::after, .page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0.15) 0%, rgba(13,27,42,0.65) 100%);
    pointer-events: none;
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   03. Cartes — élévation cohérente & micro-interactions
--------------------------------------------------------------------- */
.expertise-card,
.project-card,
.news-card,
.mission-values-col img {
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

.expertise-card {
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(13,27,42,0.06);
}
.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(13,27,42,0.18);
}

.news-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(13,27,42,0.08);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -14px rgba(13,27,42,0.22);
}
.news-card__img { overflow: hidden; }
.news-card__img img {
    transition: transform 0.5s ease;
}
.news-card:hover .news-card__img img {
    transform: scale(1.06);
}

/* Article vedette — magazine style, 1ère carte de la grille */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.news-grid--magazine .news-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}
.news-grid--magazine .news-card:first-child .news-card__img { height: 100%; min-height: 280px; }
.news-grid--magazine .news-card:first-child .news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-grid--magazine .news-card:first-child .news-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    line-height: 1.2;
}
.news-grid--magazine .news-card:first-child .news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid--magazine .news-card:first-child { grid-template-columns: 1fr; }
    .news-grid--magazine .news-card:first-child .news-card__img { min-height: 220px; }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}

.news-card__cat {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-radius: 999px;
}

/* ---------------------------------------------------------------------
   04. Statistiques — traitement éditorial fort
--------------------------------------------------------------------- */
.stat-item__number {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.stat-item__number span {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

/* ---------------------------------------------------------------------
   05. Citation — signature visuelle du cabinet
--------------------------------------------------------------------- */
.mission-quote, .director-quote {
    position: relative;
    padding-left: 2rem;
}
.mission-quote::before {
    content: '\201C';
    position: absolute;
    left: -0.35rem;
    top: -1.1rem;
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--color-secondary, var(--color-primary));
    opacity: 0.28;
    line-height: 1;
}

/* ---------------------------------------------------------------------
   06. Boutons — finition premium
--------------------------------------------------------------------- */
.btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn--primary:hover, .btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(13,27,42,0.28);
}

/* ---------------------------------------------------------------------
   07. Filtres actualités — pastilles au lieu du <select> brut
--------------------------------------------------------------------- */
.news-toolbar {
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(13,27,42,0.05);
}

/* ---------------------------------------------------------------------
   08. Cartes projets phares (spotlight)
--------------------------------------------------------------------- */
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.spotlight__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px -20px rgba(13,27,42,0.35);
}
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.spotlight__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
}
@media (max-width: 900px) {
    .spotlight { grid-template-columns: 1fr; }
    .spotlight__media img { min-height: 240px; }
}

/* ---------------------------------------------------------------------
   09. Section alternée — respiration visuelle entre blocs clairs/gris
--------------------------------------------------------------------- */
.section--gray { background: var(--color-gray-50); }
.section--tint { background: var(--color-primary-light); }
