/* ===========================================================
   ABOUT — Base (mobile-first)
   =========================================================== */

.about {
    padding-bottom: 0;
}

.about-hero {
    padding-top: var(--s5);
    padding-bottom: var(--s5);
}

/* ===========================================================
   ABOUT HERO — Business Card (Apple-ish)
   =========================================================== */

.about-hero-grid--modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
}

/* La carte glass qui englobe tout le hero */
.hero-business {
    --glassRadius: 34px;
    --glassBlur: 18px;
    --glassAlpha: 0.035;
    --glassSat: 1.12;

    --glassCaustics:
        radial-gradient(60% 55% at 20% 25%, rgb(255 255 255 / 0.075) 0%, transparent 70%),
        radial-gradient(60% 55% at 80% 35%, rgb(255 255 255 / 0.050) 0%, transparent 72%);

    --glassBorder: rgb(255 255 255 / 0.16);
    --glassShadow:
        0 28px 80px rgb(0 0 0 / 0.14),
        inset 0 1px 0 rgb(255 255 255 / 0.16),
        inset 0 -1px 0 rgb(0 0 0 / 0.10),
        inset 0 0 0 1px rgb(255 255 255 / 0.06);

    padding: var(--s6) var(--s5);
}

/* Kicker = profession (ligne 3 du H1) */
.hero-kicker {
    display: block;
    font-family: var(--fontTitle);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    color: rgb(var(--textColor) / .65);
    margin-top: var(--s4) !important;
    line-height: 1.1;
}

/* Kicker secondaire = ville (ligne 4 du H1) — plus discret */
.hero-kicker--small {
    font-size: clamp(0.85rem, 2.2vw, 1.3rem);
    color: rgb(var(--textColor) / .40);
    letter-spacing: .10em;
    margin-top: var(--s2) !important;
}

/* colonne texte */
.hero-copy {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hero-copy-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Titre */
.about-title {
    margin: 0;
    font-family: var(--fontAccent);
    color: rgb(var(--textColor));
    letter-spacing: .03em;
    line-height: .88;
    font-size: clamp(2.8rem, 9vw, 4.2rem);
    text-transform: uppercase;
}

.about-title--stack span {
    display: block;
}

/* Subtitle */
.about-subtitle {
    margin-top: var(--s3);
    font-family: var(--fontText);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: rgb(var(--textColor) / .60);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s3);
}

.about-subtitle .sep {
    color: rgb(var(--accentColor));
}

/* Chips */
.hero-chips {
    margin-top: var(--s4);
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s2);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--fontTitle);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .78rem;
    background: rgb(var(--accentColor) / 0.22);
    border: 1px solid rgb(var(--accentColor) / 0.26);
    color: rgb(var(--textColor));
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
}

/* Divider (en bas) */
.about-divider {
    height: 2px;
    width: min(520px, 100%);
    margin: var(--s5) auto 0;
    border-radius: var(--radius-cut);
    background: rgb(var(--accentColor));
    opacity: .9;
}

/* Photo */
.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgb(var(--accentColor) / 0.18);
    box-shadow: 0 24px 70px rgb(0 0 0 / 0.16);
    aspect-ratio: 4 / 5;
}

.hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.04);
    transition: transform 1200ms cubic-bezier(.16, 1, .3, 1);
}

/* Reflet subtil */
.hero-media::after {
    content: "";
    position: absolute;
    inset: -45%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(120deg,
            transparent 40%,
            rgb(255 255 255 / 0.10) 50%,
            transparent 60%);
    transform: translateX(-55%) rotate(12deg);
    opacity: .6;
    transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
}

@media (hover:hover) and (pointer:fine) {
    .hero-media:hover img {
        transform: scale(1.085);
    }

    .hero-media:hover::after {
        transform: translateX(55%) rotate(12deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-media img {
        transition: none;
        transform: none;
    }

    .hero-media::after {
        transition: none;
    }
}

/* ===========================================================
   ABOUT — Bio section
   =========================================================== */

.about-bio {
    padding: 0 0 var(--s8);
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.about-values-inner {
    position: relative;
    z-index: 1;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Carte éditoriale */
.bio-card {
    --glassRadius: 34px;
    --glassBlur: 18px;
    --glassAlpha: 0.045;
    --glassSat: 1.10;

    --glassCaustics:
        radial-gradient(60% 55% at 18% 22%, rgb(255 255 255 / 0.065) 0%, transparent 72%),
        radial-gradient(60% 55% at 82% 30%, rgb(255 255 255 / 0.045) 0%, transparent 74%);

    padding: clamp(22px, 3vw, 44px);
    max-width: 800px;
    margin-inline: auto;
}

/* Contenu WP — hiérarchie stylistique */
.bio-content {
    max-width: 72ch;
    margin-inline: auto;
}

/* H2 → accroche principale */
.bio-content h2 {
    font-family: var(--fontAccent);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.05;
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    color: rgb(var(--textColor));
    margin-bottom: var(--s4);
    text-align: center;
}

/* ul → meta-list (Style / Direction / Objectif) */
.bio-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s2) var(--s5);
    margin-bottom: var(--s5);
    padding-bottom: var(--s5);
    border-bottom: 1px solid rgb(var(--accentColor) / 0.18);
}

.bio-content ul li {
    font-family: var(--fontText);
    font-size: .875rem;
    color: rgb(var(--textColor) / .75);
    letter-spacing: .02em;
}

/* <strong> = label de meta (ex: "Style :") */
.bio-content ul li strong {
    display: inline-block;
    font-family: var(--fontTitle);
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: .72rem;
    color: rgb(var(--textColor) / .50);
    margin-right: .4rem;
}

/* Paragraphes */
.bio-content p {
    font-family: var(--fontText);
    color: rgb(var(--textColor) / .86);
    line-height: 1.75;
    font-size: clamp(1.02rem, 1.05vw, 1.12rem);
    margin-bottom: var(--s4);
}

.bio-content p:last-of-type {
    margin-bottom: 0;
}

/* CTA */
.bio-cta {
    margin-top: var(--s6);
    width: fit-content;
}

/* ===========================================================
   ABOUT — Values (grainient global)
   =========================================================== */

.about-values {
    padding: var(--s7) 0 var(--s9);

    box-shadow: 0 0 0 100vmax rgb(var(--textColor));
    clip-path: inset(0 -100vmax);

    --panelRadius: 18px;
    --panelBorder: rgb(var(--accentColor) / 0.20);
    --panelShadow: 0 18px 46px rgb(0 0 0 / 0.38);
}

.about-section-title {
    text-align: center;
    font-family: var(--fontTitle);
    font-size: clamp(2.1rem, 2.7vw, 3.5rem);
    letter-spacing: .06em;
    color: rgb(var(--backgroundLight));
    margin-bottom: var(--s4);
}

/* ===========================================================
   Quote grid (layout chat)
   =========================================================== */

.quote-grid {
    --lineGap: var(--s3);
    --panelRadiusSafe: var(--panelRadius, 18px);

    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lineGap);

    max-width: 800px;
    margin-inline: auto;
    padding: var(--s6) var(--s4);

    border-radius: var(--panelRadiusSafe);
}

.quote-grid>* {
    position: relative;
    z-index: 1;
}

.quote-row {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: var(--s2);

    justify-content: flex-start;
    --bubbleBg: rgb(var(--backgroundLight));
    --bubbleFg: rgb(var(--textColor));
}

.quote-row[data-role="a"] {
    justify-content: flex-end;
    --bubbleBg: rgb(var(--accentColor));
    --bubbleFg: rgb(var(--textColor));
}

.quote-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.quote-card {
    margin: 0;
    padding: var(--s4);
    border-radius: 20px;

    font-family: var(--fontText);
    line-height: 1.35;
    letter-spacing: 0.01em;
    hyphens: auto;

    max-width: min(540px, 92%);

    background: var(--bubbleBg);
    color: var(--bubbleFg);
}

/* ===========================================================
   Chat animation
   =========================================================== */

.quote-grid.chat-animate {
    place-content: start;
}

/* Rows : opacity:0 (pas display:none) -> hauteur naturelle preservee */
.quote-grid.chat-animate .quote-row {
    display: flex;
    opacity: 0;
    transform: translateY(14px);
}

/* Texte : display:none -> card peut se rétrécir en pill pendant le typing */
.quote-grid.chat-animate .quote-text {
    display: none;
}

/* Dots de frappe : caches jusqu'a is-typing */
.quote-grid.chat-animate .quote-typing {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1;
}

/* Transition definie sur is-mounted */
.quote-grid.chat-animate .quote-row.is-mounted {
    transition:
        opacity 600ms ease,
        transform 700ms cubic-bezier(.16, 1, .3, 1);
}

/* Apparition de la bulle */
.quote-grid.chat-animate .quote-row.is-mounted.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carte : transition pour l'effet typing bubble */
.quote-grid.chat-animate .quote-card {
    transition:
        padding 240ms cubic-bezier(.16, 1, .3, 1),
        border-radius 240ms cubic-bezier(.16, 1, .3, 1),
        transform 240ms cubic-bezier(.16, 1, .3, 1);
    will-change: padding, border-radius, transform;
}

/* Mode typing */
.quote-grid.chat-animate .quote-row.is-typing .quote-card {
    padding: 10px 12px;
    border-radius: 999px;
    transform: scale(0.985);
}

.quote-grid.chat-animate .quote-row.is-typing .quote-typing {
    display: inline-flex;
}

/* Révélation : texte visible, carte à taille normale */
.quote-grid.chat-animate .quote-row.is-revealed .quote-text {
    display: inline;
}

.quote-grid.chat-animate .quote-row.is-revealed .quote-card {
    transform: scale(1);
}

/* Dots */
.quote-grid.chat-animate .quote-typing .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.55;
    animation: typingDots var(--dot-speed, 500ms) infinite ease-in-out;
}

.quote-grid.chat-animate .quote-typing .dot:nth-child(2) {
    animation-delay: calc(var(--dot-speed, 500ms) * 0.18);
}

.quote-grid.chat-animate .quote-typing .dot:nth-child(3) {
    animation-delay: calc(var(--dot-speed, 500ms) * 0.36);
}

@keyframes typingDots {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    40% {
        transform: translateY(-4px);
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid.chat-animate .quote-row {
        display: flex;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .quote-grid.chat-animate .quote-typing {
        display: none !important;
    }

    .quote-grid.chat-animate .quote-text {
        display: inline !important;
    }

    .quote-grid.chat-animate .quote-card {
        transition: none !important;
    }
}

/* ===========================================================
   Footer (specific here)
   =========================================================== */

footer {
    border-top: 2px solid rgb(var(--accentColor));
}

/* ===========================================================
   Breakpoints
   =========================================================== */

@media (min-width: 768px) {
    .about-hero {
        padding-top: var(--s6);
        padding-bottom: var(--s8);
    }

    .hero-kicker {
        margin-top: var(--s7) !important;
    }

    .hero-kicker--small {
        margin-top: var(--s4) !important;
    }

    .about-hero-grid--modern.hero-business {
        --heroH: clamp(520px, 34vw, 720px);

        grid-template-columns: 1fr 1.15fr;
        align-items: stretch;
        gap: var(--s7);

        min-height: var(--heroH);
        padding: var(--s7);
    }

    .hero-copy {
        height: var(--heroH);
    }

    .hero-copy-top {
        flex: 1;
        justify-content: center;
        gap: var(--s6);
    }

    .hero-copy .about-divider {
        margin-top: 0;
        align-self: center;
    }

    .hero-media {
        height: var(--heroH);
        aspect-ratio: auto;
        border-radius: 30px;
    }

    .about-title {
        font-size: clamp(3.4rem, 4.6vw, 6.0rem);
        line-height: .84;
    }

    .about-subtitle {
        font-size: clamp(1.35rem, 1.9vw, 2.25rem);
    }
}

@media (min-width: 1024px) {
    .about-hero {
        padding-top: var(--s7);
        padding-bottom: var(--s9);
    }

    .bio-content {
        max-width: 76ch;
    }

    .about-section-title {
        font-size: clamp(2.2rem, 2.8vw, 3.6rem);
    }
}