/* ============================================================
   KEDROS — Feuille de style principale
   100 % autonome : aucune dépendance externe (pas de Tailwind,
   pas de CDN). Les polices sont chargées via fonts.css.
   Palette, typographie et composants entièrement sur-mesure.
   ============================================================ */

/* ---------- 1. VARIABLES DE MARQUE ---------- */
:root {
    --navy:        #102A4C;   /* bleu marine principal */
    --navy-dark:   #0A1B33;   /* marine foncé (fonds, footer) */
    --navy-light:  #1B3A63;   /* marine clair (cartes) */
    --gold:        #C9A24B;   /* or principal */
    --gold-light:  #E3C77A;   /* or clair */
    --gold-dark:   #A9802E;   /* or sombre */
    --cream:       #F7F4EC;   /* blanc cassé (fond clair) */

    --serif: 'Cinzel', Georgia, 'Times New Roman', serif;  /* titres */
    --sans:  'Jost', 'Segoe UI', Helvetica, Arial, sans-serif; /* texte */

    --max: 1180px;            /* largeur max du contenu */
}

/* ---------- 2. RÉINITIALISATION & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: var(--navy);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }

/* Conteneur centré */
.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Décalage d'ancrage (compense l'en-tête fixe) */
section[id] { scroll-margin-top: 5rem; }

/* ---------- 3. TYPOGRAPHIE UTILITAIRE ---------- */

/* Texte doré « brossé » + repli or solide (toujours visible) */
.texte-or, .logo-mot {
    display: inline-block;
    color: #D4AF52;
    background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 45%, #B8862F 70%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .texte-or, .logo-mot { -webkit-text-fill-color: #D4AF52; color: #D4AF52; }
}

/* Sur-titre doré (eyebrow) */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    font-weight: 600;
}
.eyebrow-centre { justify-content: center; }
.filet { display: inline-block; width: 3rem; height: 1px; background: var(--gold); flex-shrink: 0; }

.titre-section {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    color: var(--navy);
}
.titre-clair { color: var(--cream); }

.texte { margin-top: 1.2rem; color: rgba(16, 42, 76, 0.72); line-height: 1.75; }
.texte-clair { color: rgba(247, 244, 236, 0.65); line-height: 1.75; }
.sous-titre-section { margin-top: 1rem; }

.entete-centre {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

/* ---------- 4. ICÔNES (SVG inline) ---------- */
.ico { width: 1.3rem; height: 1.3rem; flex-shrink: 0; vertical-align: middle; }
.ico-sm { width: 1.1rem; height: 1.1rem; }
.ico-lg { width: 1.7rem; height: 1.7rem; }
.ico-or { color: var(--gold); }

/* ---------- 5. BOUTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.9rem; }

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 10px 25px -8px rgba(201, 162, 75, 0.5); }

.btn-outline-clair { border-color: rgba(247, 244, 236, 0.3); color: var(--cream); }
.btn-outline-clair:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 6. EN-TÊTE / NAVIGATION ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.header-scrolled {
    background: rgba(10, 27, 51, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px -12px rgba(10, 27, 51, 0.5);
    border-bottom-color: rgba(201, 162, 75, 0.18);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { height: 2.5rem; width: auto; }
.logo-mot { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.18em; }

.nav-liens { display: flex; align-items: center; gap: 2.5rem; }
.lien-nav {
    position: relative;
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}
.lien-nav::after {
    content: "";
    position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.lien-nav:hover { color: var(--gold); }
.lien-nav:hover::after { width: 100%; }

/* Bouton menu mobile (caché sur grand écran) */
.btn-burger {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--cream); padding: 0.4rem;
}
.btn-burger .ico { width: 1.7rem; height: 1.7rem; }

.menu-mobile {
    display: none;
    background: rgba(10, 27, 51, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(201, 162, 75, 0.18);
}
.menu-mobile.ouvert { display: block; }
.menu-mobile a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--cream);
    border-bottom: 1px solid rgba(201, 162, 75, 0.1);
    transition: color 0.2s ease;
}
.menu-mobile a:hover { color: var(--gold); }
.lien-mobile-cta { color: var(--gold); font-weight: 600; }

/* ---------- 7. HÉRO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    color: var(--cream);
    padding: 7rem 0 5rem;
}
.hero-filigrane {
    position: absolute;
    right: -4rem; top: 50%;
    transform: translateY(-50%);
    height: 115%; width: auto;
    opacity: 0.07;
    pointer-events: none; user-select: none;
}
.hero-voile {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,27,51,0.4), transparent 40%, rgba(10,27,51,0.6));
}
.hero-contenu { position: relative; max-width: 760px; }
.eyebrow-clair { color: var(--gold); }
.hero-titre {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    line-height: 1.14;
    color: var(--cream);
}
.hero-sous-titre {
    margin-top: 2rem;
    max-width: 640px;
    font-size: 1.1rem;
    color: rgba(247, 244, 236, 0.72);
    line-height: 1.7;
}
.hero-sous-titre strong { color: var(--gold-light); font-weight: 500; }
.hero-actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(201, 162, 75, 0.6);
    animation: rebond 2s infinite;
    transition: color 0.25s ease;
}
.hero-scroll:hover { color: var(--gold); }
.hero-scroll .ico { width: 1.7rem; height: 1.7rem; }
@keyframes rebond {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---------- 8. BANDEAU CHIFFRES CLÉS ---------- */
.stats { background: var(--navy-dark); color: var(--cream); padding: 3.5rem 0; }
.stats-grille {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-chiffre { font-family: var(--serif); font-weight: 700; font-size: 2.7rem; line-height: 1; }
.stat-unite { font-size: 1.1rem; margin-left: 0.15rem; }
.stat-label {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: rgba(247, 244, 236, 0.6);
    line-height: 1.5;
    max-width: 220px;
}

/* ---------- 9. SECTIONS GÉNÉRIQUES ---------- */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-navy { background: var(--navy); color: var(--cream); }

/* ---------- 10. APPROCHE / PHILOSOPHIE ---------- */
.grille-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.medaillon-zone { display: flex; justify-content: center; }
.medaillon {
    width: clamp(16rem, 26vw, 20rem);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 30px 60px -20px rgba(16, 42, 76, 0.5);
}
.medaillon-img { height: 66%; width: auto; }

.valeurs { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.valeur { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.valeur .ico { width: 1.7rem; height: 1.7rem; }
.valeur span { font-weight: 600; font-size: 0.9rem; color: var(--navy); }

/* ---------- 11. EXPERTISES (cartes) ---------- */
.cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.carte {
    background: rgba(27, 58, 99, 0.35);
    border: 1px solid rgba(201, 162, 75, 0.15);
    border-radius: 1rem;
    padding: 2.2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.carte:hover { transform: translateY(-5px); border-color: rgba(201, 162, 75, 0.5); }
.carte-ico {
    width: 3.5rem; height: 3.5rem;
    border-radius: 0.9rem;
    background: rgba(201, 162, 75, 0.1);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease;
}
.carte:hover .carte-ico { background: rgba(201, 162, 75, 0.2); }
.carte-ico .ico { width: 1.6rem; height: 1.6rem; }
.carte-titre { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--cream); margin-top: 1.4rem; }
.carte-texte { margin-top: 0.8rem; font-size: 0.92rem; color: rgba(247, 244, 236, 0.62); line-height: 1.7; }

/* ---------- 12. MÉTHODE (4 temps) ---------- */
.etapes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.etape {
    position: relative;
    background: #fff;
    border: 1px solid rgba(16, 42, 76, 0.08);
    border-radius: 1rem;
    padding: 2rem 1.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.etape:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(16, 42, 76, 0.4); }
.etape-num {
    position: absolute; top: 1.1rem; right: 1.4rem;
    font-family: var(--serif); font-weight: 700; font-size: 1.6rem;
    color: rgba(201, 162, 75, 0.3);
}
.etape-ico {
    width: 3.2rem; height: 3.2rem;
    border-radius: 0.8rem;
    background: rgba(201, 162, 75, 0.1);
    display: flex; align-items: center; justify-content: center;
}
.etape-ico .ico { width: 1.5rem; height: 1.5rem; }
.etape-titre { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); margin-top: 1.2rem; }
.etape-texte { margin-top: 0.6rem; font-size: 0.9rem; color: rgba(16, 42, 76, 0.65); line-height: 1.6; }

/* ---------- 13. SEGMENTS CLIENTS ---------- */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.segment {
    text-align: center;
    padding: 1.9rem 1.2rem;
    background: rgba(27, 58, 99, 0.3);
    border: 1px solid rgba(201, 162, 75, 0.15);
    border-radius: 1rem;
    transition: border-color 0.3s ease;
}
.segment:hover { border-color: rgba(201, 162, 75, 0.45); }
.segment .ico { width: 2rem; height: 2rem; margin: 0 auto; }
.segment h3 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--cream); margin-top: 1rem; }
.segment p { margin-top: 0.5rem; font-size: 0.85rem; color: rgba(247, 244, 236, 0.6); line-height: 1.5; }

/* ---------- 14. CONTACT ---------- */
.contact { background: var(--cream); }
.contact-panneau {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: var(--navy);
    box-shadow: 0 40px 80px -30px rgba(16, 42, 76, 0.5);
}
.halo { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.halo-1 { top: -6rem; right: -6rem; width: 20rem; height: 20rem; background: rgba(201, 162, 75, 0.2); }
.halo-2 { bottom: -8rem; left: -5rem; width: 20rem; height: 20rem; background: rgba(201, 162, 75, 0.1); }
.contact-filigrane { position: absolute; left: -2.5rem; bottom: 0; height: 75%; width: auto; opacity: 0.06; pointer-events: none; user-select: none; }
.contact-inner { position: relative; padding: clamp(3rem, 6vw, 5rem) 1.5rem; text-align: center; }
.contact-actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-coords {
    margin-top: 3rem; padding-top: 2.5rem;
    border-top: 1px solid rgba(247, 244, 236, 0.1);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    max-width: 640px; margin-inline: auto;
}
.coord {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: rgba(247, 244, 236, 0.7);
    font-size: 0.88rem;
    transition: color 0.25s ease;
}
a.coord:hover { color: var(--gold); }
.coord .ico { width: 1.4rem; height: 1.4rem; }

/* ---------- 15. PIED DE PAGE ---------- */
.footer { background: var(--navy-dark); color: rgba(247, 244, 236, 0.7); padding: 3.5rem 0; }
.footer-haut { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-liens { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-liens a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-liens a:hover { color: var(--gold); }
.footer-linkedin { color: var(--cream); display: inline-flex; }
.footer-linkedin .ico { width: 1.3rem; height: 1.3rem; }
.footer-filet { margin: 2rem 0; height: 1px; background: linear-gradient(to right, transparent, rgba(201, 162, 75, 0.3), transparent); }
.footer-bas { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: rgba(247, 244, 236, 0.5); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal .sep { margin: 0 0.6rem; color: rgba(201, 162, 75, 0.4); }

/* ---------- 16. ANIMATION D'APPARITION ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 17. RESPONSIVE ---------- */
@media (min-width: 861px) {
    /* Le menu mobile ne s'affiche jamais sur grand écran */
    .menu-mobile { display: none !important; }
}
@media (max-width: 860px) {
    .nav-liens { display: none; }
    .btn-burger { display: inline-flex; }
    .grille-2 { grid-template-columns: 1fr; gap: 3rem; }
    .cartes { grid-template-columns: 1fr; }
    .etapes { grid-template-columns: repeat(2, 1fr); }
    .segments { grid-template-columns: repeat(2, 1fr); }
    .stats-grille { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .etapes { grid-template-columns: 1fr; }
    .segments { grid-template-columns: 1fr; }
    .contact-coords { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-haut, .footer-bas { flex-direction: column; text-align: center; }
    .hero-actions .btn, .contact-actions .btn { width: 100%; }
}

/* ---------- 18. ACCESSIBILITÉ : RÉDUCTION DE MOUVEMENT ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-scroll { animation: none; }
}

/* ---------- 19. BARRE DE DÉFILEMENT (touche premium) ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
