/* =====================================================
   JERCGO.FR – style.css
   Couleurs : rouge accent, fond blanc, hover orange,
              texte noir. Variables du portfolio.
   ===================================================== */

/* ── Variables ── */
:root {
    --ink: #000000;
    --paper: #ffffff;
    --muted: #666666;
    --accent: #333333;
    --border: #e0e0e0;
    --border-soft: #ccc;
    --bg: #f5f5f5;
    --solid: rgba(230, 47, 47, 0.37);
    --red: #e62f2f;
    --orange: #e07020;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --nav-h: 56px;
    --radius: 8px;
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --ink: #ffffff;
    --paper: #0d0d0d;
    --muted: #666666;
    --accent: #cccccc;
    --border: #222222;
    --border-soft: #1a1a1a;
    --bg: #0d0d0d;
    --solid: rgba(90, 230, 47, 0.37);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── Skip link accessibilité ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--red);
    color: #fff;
    padding: .375rem .75rem;
    border-radius: var(--radius);
    font-size: .875rem;
    z-index: 9999;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 1rem;
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--orange);
}

.nav__theme {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    transition: border-color var(--transition), color var(--transition);
}

.nav__theme:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Burger mobile */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   BANNER / HERO
   ===================================================== */
.banner-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: calc(60vh + var(--nav-h));
    border-bottom: 1px solid var(--border);
    background-image: url('/assets/images/banner-claire.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: var(--nav-h);
}

[data-theme="dark"] .banner-section {
    background-image: url('/assets/images/banner.webp');
}

/* Fallback si pas d'image */
.banner-section:not([style*="background-image"]),
.banner-section {
    background-color: var(--bg);
}

.banner-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(60vh + var(--nav-h));
    padding: 4rem 2.5rem 3rem;
    background: rgba(10, 10, 10, 0.308);
}

.banner-scanlines {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: repeating-linear-gradient(to bottom,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, .04) 2px,
            rgba(0, 0, 0, .04) 4px);
}

.banner-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Avatar */
.banner-avatar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.banner-avatar img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .1);
    outline: 2px solid rgba(200, 200, 200, .4);
    outline-offset: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.banner-avatar__fallback {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--border-soft), var(--paper));
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 2px solid rgba(200, 200, 200, .4);
    outline-offset: 2px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, .5);
}

.banner-avatar__fallback span {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-display);
}

/* Titre */
.banner-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: .5rem;
    cursor: default;
    max-width: 800px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

/* Profession */
.banner-profession {
    font-size: clamp(.9rem, 2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: -.02em;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* Typewriter */
.banner-typewriter {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    min-height: 1.4rem;
    margin-bottom: 2rem;
}

/* Localisation */
.banner-location {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 1.5rem;
}

.banner-location__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: rgba(255, 255, 255, .7);
}

/* CTA */
.banner-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.banner-cta__btn {
    padding: .5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    display: inline-flex;
    align-items: center;
}

.banner-cta__btn--primary {
    background: var(--red);
    color: #fff;
    border: 1px solid transparent;
}

.banner-cta__btn--primary:hover {
    background: var(--orange);
}

.banner-cta__btn--secondary {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .3);
}

.banner-cta__btn--secondary:hover {
    border-color: var(--orange);
    color: #fff;
}

/* Animations */
.banner-fade {
    opacity: 0;
    transform: translateY(10px);
    animation: bannerFadeIn .5s ease forwards;
    animation-delay: var(--d, 0s);
}

@keyframes bannerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   LAYOUT COMMUN
   ===================================================== */
.section {
    padding: 5rem 0;
}

.section--border {
    border-bottom: 1px solid var(--border);
}

.section--center {
    text-align: center;
}

.section--alt {
    background: var(--bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.container--narrow {
    max-width: 800px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section__sub {
    font-size: .95rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

/* ── Grille ── */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* =====================================================
   CARDS (services)
   ===================================================== */
.card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.card__icon {
    padding: 1.5rem 1.5rem 0;
    width: 48px;
    height: 48px;
    color: var(--red);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

.card__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: .5rem;
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: .75rem;
    line-height: 1.3;
}

.card__text {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.card__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.card__list li {
    font-size: .8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card__list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

/* =====================================================
   À PROPOS
   ===================================================== */
.about__text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__para {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
}

.about__para strong {
    color: var(--ink);
}

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.badge {
    font-size: 11px;
    font-weight: 500;
    padding: .25rem .75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.stat__num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.stat__label {
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* =====================================================
   STACK – carrousel infini
   ===================================================== */
.stack-track-wrap {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

.stack-track-wrap::before,
.stack-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.stack-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--paper), transparent);
}

.stack-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--paper), transparent);
}

.stack-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: stackScroll 30s linear infinite;
}

.stack-track:hover {
    animation-play-state: paused;
}

@keyframes stackScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.stack-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    min-width: 100px;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.stack-card:hover {
    border-color: var(--orange);
}

.stack-card__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.stack-card__label {
    font-size: .7rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.75rem 1rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.contact-card__icon svg {
    width: 24px;
    height: 24px;
}

.contact-card__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card__value {
    font-size: .8rem;
    color: var(--ink);
    word-break: break-all;
    text-align: center;
}

/* Socials */
.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    transition: border-color var(--transition), color var(--transition);
}

.social svg {
    width: 18px;
    height: 18px;
}

.social:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: var(--paper);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    font-size: .75rem;
    color: var(--muted);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__link {
    font-size: .75rem;
    color: var(--muted);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--orange);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .container--split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Nav burger */
    .nav__burger {
        display: flex;
    }

    .nav__menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        z-index: 99;
    }

    .nav__menu.is-open {
        display: flex;
    }

    .nav__link {
        font-size: 1rem;
        color: var(--ink);
    }

    .nav__theme {
        align-self: flex-start;
    }

    .grid--3 {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: .75rem;
    }

    .stat__num {
        font-size: 2rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }

    .banner-overlay {
        padding: 5rem 1.5rem 2.5rem;
    }

    .banner-title {
        font-size: clamp(2rem, 8vw, 2.4rem);
    }

    .section {
        padding: 3.5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .about__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.25rem 1rem;
    }

    .socials {
        gap: .75rem;
    }
}

/* =====================================================
   TÉMOIGNAGES / AVIS GOOGLE
   ===================================================== */
.review-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-align: left;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.review-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}

.review-card--cta {
    background: var(--bg);
    border-style: dashed;
    align-items: center;
    text-align: center;
}

.review-card__stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: .1em;
}

.review-card__text {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.review-card__author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.review-card__name {
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink);
}

.review-card__source {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: var(--muted);
}

.review-card__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.25rem;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition);
    margin-top: .5rem;
}

.review-card__btn:hover {
    background: var(--orange);
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {

    .nav,
    .banner-section {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

/* ── Utilitaires ── */
.icon-hidden {
    display: none;
}