/* ============================================
   01 - BASE : variables, reset, typo, utilitaires
   ============================================ */

:root {
    /* Charte graphique : Bleu / Rouge / Noir + accents */
    --jm-blue:        #0a2a7c;
    --jm-blue-dark:   #061a4f;
    --jm-blue-light:  #1e44b8;
    --jm-red:         #d4202a;
    --jm-red-dark:    #a51820;
    --jm-yellow:      #ffd166;
    --jm-mint:        #06d6a0;
    --jm-pink:        #ef476f;
    --jm-black:       #0f1217;
    --jm-grey-900:    #1a1d24;
    --jm-grey-700:    #4a4f5a;
    --jm-grey-500:    #8a8f99;
    --jm-grey-300:    #d8dbe1;
    --jm-grey-100:    #f4f6fa;
    --jm-white:       #ffffff;

    /* Typo */
    --jm-font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --jm-font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --jm-font-hand:    'Caveat', cursive;

    /* Spacing & FX */
    --jm-radius:       12px;
    --jm-radius-lg:    20px;
    --jm-radius-xl:    28px;
    --jm-shadow:       0 10px 30px rgba(10, 42, 124, 0.08);
    --jm-shadow-lg:    0 25px 60px rgba(10, 42, 124, 0.18);
    --jm-shadow-red:   0 25px 60px rgba(212, 32, 42, 0.25);
    --jm-transition:   0.3s ease;
    --jm-section-y:    110px;

    --jm-gradient:     linear-gradient(135deg, var(--jm-blue) 0%, var(--jm-red) 100%);
    --jm-gradient-soft: linear-gradient(135deg, var(--jm-blue-light) 0%, var(--jm-red) 100%);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--jm-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--jm-grey-900);
    background: var(--jm-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--jm-blue); text-decoration: none; transition: color var(--jm-transition); }
a:hover { color: var(--jm-red); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jm-font-display);
    font-weight: 800;
    line-height: 1.15;
    color: var(--jm-black);
    margin: 0 0 0.6em 0;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em 0; }

/* Container */
.jm-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Section heads */
.jm-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 3;
}
.jm-section__head p { color: var(--jm-grey-700); font-size: 1.05rem; }

.jm-eyebrow {
    display: inline-block;
    font-family: var(--jm-font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jm-red);
    margin-bottom: 16px;
    position: relative;
    padding-left: 38px;
}
.jm-eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 2px;
    background: var(--jm-red);
}

.jm-text-accent { color: var(--jm-blue); }

/* Texte avec surlignage peinture */
.jm-text-highlight {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.jm-text-highlight::before {
    content: '';
    position: absolute;
    left: -6px; right: -6px;
    bottom: 4px;
    height: 38%;
    background: var(--jm-yellow);
    z-index: -1;
    transform: skewX(-8deg) rotate(-1deg);
    border-radius: 4px;
    opacity: 0.85;
}

/* Boutons */
.jm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--jm-radius);
    font-family: var(--jm-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--jm-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.jm-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.jm-btn:hover::before { transform: translateX(100%); }

.jm-btn--primary {
    background: var(--jm-red);
    color: var(--jm-white);
    box-shadow: 0 14px 30px rgba(212, 32, 42, 0.35);
}
.jm-btn--primary:hover {
    background: var(--jm-blue);
    color: var(--jm-white);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(10, 42, 124, 0.4);
}
.jm-btn--xl { padding: 18px 36px; font-size: 1.02rem; }

.jm-btn--ghost {
    background: transparent;
    color: var(--jm-white);
    border-color: var(--jm-white);
}
.jm-btn--ghost:hover {
    background: var(--jm-white);
    color: var(--jm-blue);
}
.jm-btn--block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* Bouton téléphone hero */
.jm-btn--phone {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 22px 12px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.jm-btn--phone:hover {
    background: #fff;
    color: var(--jm-blue);
    transform: translateY(-3px);
}
.jm-btn__icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--jm-yellow);
    color: var(--jm-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.jm-btn__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
    gap: 2px;
}
.jm-btn__text small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.jm-btn__text strong { font-size: 1.05rem; }

/* Reveal animations */
.jm-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.jm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bouton remontée */
.jm-totop {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--jm-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(212, 32, 42, 0.4);
    opacity: 0; pointer-events: none;
    transform: translateY(20px);
    transition: all var(--jm-transition);
    z-index: 80;
}
.jm-totop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.jm-totop:hover { background: var(--jm-blue); color: #fff; transform: translateY(-4px); }

/* Section avec décorations peinture */
.jm-section--paint {
    position: relative;
    overflow: hidden;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
