/* ==========================================================================
   CRYSTA — Thème « Anthracite, Pétrole & Or » (couleurs du logo)
   --------------------------------------------------------------------------
   Couche de design chargée après les autres feuilles : elle redéfinit la
   mise en page (en-têtes de section numérotés, cartes
   éditoriales, sections sombres / bleu nuit) sans toucher au CSS d'origine.
   ========================================================================== */

:root {
    --ink: #111827;
    --ink-2: #1F2937;
    --ink-3: #374151;
    --accent: #08758A;
    --accent-dark: #005766;
    --accent-ink: #FFFFFF;
    --accent-text: #005766;
    --gold: #BFA22C;       /* détails : traits, numéros, icônes */
    --gold-text: #8E661E;  /* or lisible sur fond blanc (contraste 5,2:1) */
    --gold-ink: #1E1602;   /* texte posé sur l'or */
    --paper: #F6F7F4;
    --line: #E4E7DF;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --border-radius: 6px;
}

h1:not(.hero__title), h2, h3, h4,
.section__title,
.faq-item__question span {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Boutons : angles nets au lieu des pilules (sauf ceux du slider)
   -------------------------------------------------------------------------- */
.btn:not(.hero__btn-primary):not(.hero__btn-secondary),
.reviews__cta-btn,
.reviews__cta-btn-alt {
    border-radius: 10px;
    letter-spacing: 0;
}

.btn--primary:hover { background-color: var(--ink); }

/* --------------------------------------------------------------------------
   En-tête : barre supérieure bleu nuit, menu flottant au défilement
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 500;
    border-bottom: 0;
}

.top-bar__item svg { color: var(--accent-ink); opacity: 1; }
.top-bar__item a:hover { color: var(--ink); }

.main-header { border-bottom: 1px solid var(--line); }

.header.scrolled .main-header {
    width: min(1240px, calc(100% - 24px));
    margin: 10px auto 0;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}

.nav__link:not(.btn) { position: relative; }
.nav__link:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav__link:not(.btn):hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   En-têtes de section : alignés à gauche, numérotés
   -------------------------------------------------------------------------- */
main { counter-reset: section; }

.section { padding: 6rem 0; }

.section__header,
.section__header.text-center {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 760px;
}

.section__header::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    display: block;
    padding-left: 48px;
    margin-bottom: 1rem;
    background: linear-gradient(var(--gold), var(--gold)) left center / 36px 2px no-repeat;
    color: var(--gold-text);
    font: 600 0.8rem/1 var(--font-display);
    letter-spacing: 0.18em;
}

.section__title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.section__divider { display: none; }

.section__description {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    color: var(--ink-3);
}

.clients__eyebrow,
.reviews__eyebrow { display: none; }

/* --------------------------------------------------------------------------
   Références : logos en niveaux de gris, sans cadres
   -------------------------------------------------------------------------- */
.clients { background: #fff; }

.clients__grid {
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0;
}

.clients__item {
    background: transparent;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 120px;
}

.clients__item:hover { background: var(--paper); }

.clients__logo {
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.clients__item:hover .clients__logo { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   À propos : texte à gauche, points forts en grille sans cadre
   -------------------------------------------------------------------------- */
.about__content { max-width: none; margin: 0; }

.about__intro {
    text-align: left;
    max-width: 760px;
    margin: 0 0 2.5rem;
    font-size: 1.15rem;
    color: var(--ink-3);
}

.about__list-wrapper {
    padding: 2.5rem;
    background: var(--paper);
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Avis
   -------------------------------------------------------------------------- */
.reviews { background: var(--paper); }

/* --------------------------------------------------------------------------
   Services : cartes éditoriales (photo + texte), numérotées
   -------------------------------------------------------------------------- */
.services { background: #fff; }
.services__grid { counter-reset: service; gap: 1.5rem; }

.service-card--image {
    counter-increment: service;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: none;
}

.service-card--image .service-card__bg {
    position: relative;
    inset: auto;
    height: 220px;
    flex-shrink: 0;
    z-index: 0;
    filter: grayscale(0.35);
    transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card--image::before { display: none; }

.service-card--image::after {
    content: counter(service, decimal-leading-zero);
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: var(--gold);
    color: var(--gold-ink);
    font: 700 0.78rem/1 var(--font-display);
    letter-spacing: 0.08em;
}

.service-card--image .service-card__title {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.4rem 1.5rem 0.5rem;
}

.service-card--image .service-card__text {
    color: var(--ink-3);
    opacity: 1;
    margin: 0 1.5rem 1.25rem;
}

.service-card--image .service-card__cta {
    margin: auto 1.5rem 1.5rem;
    color: var(--ink);
    opacity: 1;
    transform: none;
    padding-bottom: 2px;
    background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 2px no-repeat;
    align-self: flex-start;
}

.service-card--image:hover,
.service-card--image:focus-visible {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.1);
}

.service-card--image:hover .service-card__bg {
    transform: none;
    filter: none;
}

/* --------------------------------------------------------------------------
   Pourquoi nous : section sombre
   -------------------------------------------------------------------------- */
.why-us { background: var(--ink); color: #D1D5DB; }
.why-us .section__title { color: #fff; }
.why-us .section__header::before { color: var(--gold); }

.why-us .advantages-grid {
    max-width: none;
    margin: 0 0 4rem;
    gap: 1px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.why-us .advantage-item {
    align-items: flex-start;
    padding: 2.25rem;
    background: var(--ink);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.3s ease;
}

.why-us .advantage-item:hover { background: var(--ink-2); }

.why-us .advantage-item__icon {
    color: var(--accent);
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: rgba(8, 117, 138, 0.12);
}

.why-us .advantage-item__title { color: #fff; font-weight: 600; }
.why-us .advantage-item__text { color: #9CA3AF; }

.why-us .promise-section {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 3rem;
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.why-us .promise-section__intro {
    margin: 0;
    text-align: left;
    color: #fff;
    font: 600 1.7rem/1.25 var(--font-display);
    letter-spacing: -0.02em;
}

.why-us .promise-card {
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border-radius: 14px;
}

.why-us .promise-icon { color: var(--gold); }
.why-us .promise-title { color: #fff; }
.why-us .promise-text { color: #9CA3AF; }

@media (max-width: 860px) {
    .why-us .promise-section { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Déroulé : frise horizontale, chiffres en contour
   -------------------------------------------------------------------------- */
.process { background: var(--paper); }

.process__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    max-width: none;
}

.process-item {
    text-align: left;
    padding-top: 1.75rem;
    border-top: 3px solid var(--ink-2);
    transition: border-color 0.3s ease;
}

.process-item__number {
    position: static;
    transform: none;
    margin-bottom: 1rem;
    font: 700 3.2rem/1 var(--font-display);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink-2);
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.process-item__content {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.process-item__title { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 600; }
.process-item__text { margin: 0; max-width: none; font-size: 0.95rem; }

.process-item:hover { border-top-color: var(--gold); }
.process-item:hover .process-item__number {
    transform: none;
    color: var(--gold);
    -webkit-text-stroke-color: var(--gold);
}

@media (max-width: 991px) { .process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; } }
@media (max-width: 560px) { .process__grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Philosophie : grand bandeau bleu nuit
   -------------------------------------------------------------------------- */
.philosophy { background: var(--accent); padding: 6.5rem 0; text-align: left; }

.philosophy .philosophy__content {
    max-width: 1000px;
    margin: 0;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.philosophy .philosophy__title {
    color: var(--gold) !important;
    font: 600 0.8rem/1 var(--font-display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.philosophy .philosophy__divider { display: none; }

.philosophy .philosophy__text.scroll-highlight {
    margin: 0 0 1.25rem;
    max-width: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   FAQ : titre collant à gauche, questions à droite
   -------------------------------------------------------------------------- */
.faq { background: #fff; }

@media (min-width: 992px) {
    .faq > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
        gap: 4rem;
        align-items: start;
    }

    .faq .section__header { position: sticky; top: 120px; margin-bottom: 0; }
}

.faq__list {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-top: 1px solid var(--line);
}

.faq-item {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.faq-item:hover { box-shadow: none; }
.faq-item.active { border-color: var(--line); }

.faq-item__question { padding-left: 0; padding-right: 0; font-weight: 600; }
.faq-item__question span { font-size: 1.08rem; }

.faq-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 50%;
    background: var(--paper);
    transition: background 0.25s ease, transform 0.3s ease;
}

.faq-item.active .faq-item__icon { background: var(--gold); color: var(--gold-ink); }
.faq-item__answer p { padding-left: 0; padding-right: 3rem; }

/* --------------------------------------------------------------------------
   Blog & contact
   -------------------------------------------------------------------------- */
.blog-teaser { background: var(--paper); }
.blog-teaser__card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: none; }
.blog-teaser__badge { background: var(--accent); color: var(--accent-ink); }

.contact { background: #fff; padding: 6rem 0; }
.contact__wrapper { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(17, 24, 39, 0.06); }
.contact__form { background: var(--paper); border-radius: 14px; }
.contact .section__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #9CA3AF; border-top: 4px solid var(--gold); padding-top: 3.5rem; }
.footer__heading { color: #fff; font-family: var(--font-display); letter-spacing: 0.04em; }
.footer a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Pages service & blog : en-tête aligné à gauche, liseré bleu nuit
   -------------------------------------------------------------------------- */
.service-hero { border-bottom: 6px solid var(--gold); }
.service-hero__content { text-align: left; max-width: 1200px; padding: 0 1.5rem; }
.service-hero__title { font-weight: 700; letter-spacing: -0.03em; max-width: 800px; }
.service-hero__subtitle { max-width: 640px; margin-left: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: flex-start; }
.breadcrumb__current { color: var(--gold); }

.service-benefit-box { border-left-color: var(--gold); background: var(--paper); border-radius: 0 14px 14px 0; }
.service-cta { background: var(--ink); border-radius: 18px; }

.blog-hero { background-color: var(--ink) !important; border-bottom: 6px solid var(--gold); }
.blog-hero__content { text-align: left; }
.blog-hero__breadcrumb, .blog-hero__breadcrumb a { color: var(--gold); }

/* Sur fond anthracite : icônes et numéro dorés */
.why-us .section__header::before,
.why-us .advantage-item__icon,
.why-us .promise-icon { color: var(--gold); }
.why-us .advantage-item__icon { background: rgba(191, 162, 44, 0.14); }

/* Espacement des paragraphes d'articles (remplace les anciens style="margin-bottom" en ligne) */
.blog-article__content p { margin-bottom: 1.5rem; }
.faq-item__answer p:last-child { margin-bottom: 0; }
