/* ============================================
   03 - HERO BLANC moderne & épuré
   ============================================ */

.jm-hero {
    position: relative;
    min-height: 100vh;
    padding: 156px 0 100px;
    display: flex;
    align-items: center;
    color: var(--jm-black);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, #fafbff 0%, transparent 100%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    overflow: hidden;
    isolation: isolate;
}

/* === Décorations arrière-plan === */
.jm-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Grille subtile */
.jm-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 42, 124, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 42, 124, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 80%);
}

/* Splats de couleur subtils */
.jm-hero__deco {
    position: absolute;
    pointer-events: none;
    animation: jmSpin 60s linear infinite;
}
.jm-hero__deco--blob1 {
    width: 320px; height: 320px;
    top: -80px; left: -80px;
    fill: var(--jm-blue);
    opacity: 0.05;
}
.jm-hero__deco--blob2 {
    width: 260px; height: 260px;
    top: 30%; right: -90px;
    fill: var(--jm-red);
    opacity: 0.06;
    animation-direction: reverse;
}
.jm-hero__deco--blob3 {
    width: 200px; height: 200px;
    bottom: 10%; left: 30%;
    fill: var(--jm-yellow);
    opacity: 0.1;
}
@keyframes jmSpin { to { transform: rotate(360deg); } }

/* Gouttes discrètes qui tombent */
.jm-drop {
    position: absolute;
    width: 10px;
    border-radius: 0 0 50% 50% / 0 0 30% 30%;
    top: -50px;
    animation: jmDropFall linear infinite;
    opacity: 0;
}
.jm-drop::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    width: 9px; height: 14px;
    background: inherit;
    border-radius: 50% 50% 35% 35% / 60% 60% 35% 35%;
}
.jm-drop--1 { height: 60px; left: 8%;  background: var(--jm-blue);   animation-duration: 9s;  animation-delay: 0s; }
.jm-drop--2 { height: 50px; left: 92%; background: var(--jm-red);    animation-duration: 11s; animation-delay: -3s; }
.jm-drop--3 { height: 45px; left: 60%; background: var(--jm-yellow); animation-duration: 13s; animation-delay: -6s; }
@keyframes jmDropFall {
    0%   { transform: translateY(-100px); opacity: 0; }
    10%  { opacity: 0.5; }
    100% { transform: translateY(105vh); opacity: 0; }
}

/* === Contenu === */
.jm-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.jm-hero__text { animation: jmFadeUp 1s 0.2s both; }

.jm-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid var(--jm-grey-300);
    border-radius: 100px;
    font-family: var(--jm-font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--jm-grey-700);
    margin-bottom: 26px;
    box-shadow: 0 4px 14px rgba(10, 42, 124, 0.05);
}
.jm-hero__tag-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--jm-mint);
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.6);
    animation: jmPulse 2s ease-out infinite;
}
@keyframes jmPulse {
    0%   { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7); }
    100% { box-shadow: 0 0 0 14px rgba(6, 214, 160, 0); }
}

/* Titre */
.jm-hero__title {
    color: var(--jm-black);
    margin-bottom: 24px;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.025em;
}
.jm-hero__line {
    display: block;
    overflow: hidden;
}
.jm-hero__line--1 {
    animation: jmSlideUp 1s 0.4s both;
    color: var(--jm-black);
}
.jm-hero__line--2 {
    animation: jmSlideUp 1s 0.6s both;
    color: var(--jm-blue);
    position: relative;
}

/* Mot avec soulignement peinture animé */
.jm-hero__word {
    position: relative;
    display: inline-block;
    color: var(--jm-red);
}
.jm-hero__underline {
    position: absolute;
    left: 0; right: 0;
    bottom: -8px;
    width: 100%;
    height: 16px;
    color: var(--jm-yellow);
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: jmDrawLine 1.5s 1.2s ease-out forwards;
}
@keyframes jmDrawLine { to { stroke-dashoffset: 0; } }

.jm-hero__dot {
    display: inline-block;
    width: 14px; height: 14px;
    background: var(--jm-red);
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: 10px;
    box-shadow: 0 0 0 0 rgba(212, 32, 42, 0.6);
    animation: jmPulseRed 2s ease-out infinite;
}
@keyframes jmPulseRed {
    0%   { box-shadow: 0 0 0 0 rgba(212, 32, 42, 0.7); }
    100% { box-shadow: 0 0 0 18px rgba(212, 32, 42, 0); }
}

.jm-hero__handwriting {
    display: block;
    font-family: var(--jm-font-hand);
    font-weight: 700;
    font-size: 0.5em;
    color: var(--jm-red);
    margin-top: 14px;
    letter-spacing: 0.02em;
    transform: rotate(-2deg);
    animation: jmSlideUp 1s 0.85s both;
}

@keyframes jmSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes jmFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jm-hero__lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--jm-grey-700);
    max-width: 540px;
    margin-bottom: 32px;
    animation: jmFadeUp 1s 0.9s both;
}
.jm-hero__lead strong {
    color: var(--jm-black);
    font-weight: 700;
}

.jm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
    animation: jmFadeUp 1s 1s both;
}

.jm-hero__trust {
    list-style: none;
    padding: 0; margin: 0 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    animation: jmFadeUp 1s 1.1s both;
}
.jm-hero__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--jm-font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--jm-grey-900);
}
.jm-hero__check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--jm-mint);
    color: var(--jm-blue-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem;
}

/* Palette */
.jm-palette {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    animation: jmFadeUp 1s 1.2s both;
}
.jm-palette__chip {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--c);
    border: 3px solid #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.jm-palette__chip:hover {
    transform: scale(1.25) translateY(-4px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.25);
    z-index: 2;
}
.jm-palette__label {
    font-family: var(--jm-font-hand);
    color: var(--jm-grey-700);
    font-size: 1.3rem;
    margin-left: 10px;
}

/* === Illustration (côté droit) === */
.jm-hero__illu {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
    transition: transform 0.3s ease-out;
    transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
    animation: jmFadeIn 1.2s 0.6s both;
}
@keyframes jmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Cercle de fond doux */
.jm-hero__circle {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.25), transparent 60%),
        linear-gradient(135deg, #eef1fb 0%, #f7e8e9 100%);
    box-shadow:
        inset 0 0 80px rgba(255,255,255,0.6),
        0 30px 80px rgba(10, 42, 124, 0.12);
    animation: jmMorph 14s ease-in-out infinite;
}
@keyframes jmMorph {
    0%, 100% { border-radius: 50% 48% 52% 50% / 50% 52% 48% 50%; transform: rotate(0deg); }
    33%      { border-radius: 42% 58% 48% 52% / 55% 45% 55% 45%; transform: rotate(120deg); }
    66%      { border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%; transform: rotate(240deg); }
}

/* Cartes photo */
.jm-hero__card {
    position: absolute;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(10, 42, 124, 0.25);
    border: 6px solid #fff;
}
.jm-hero__card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.jm-hero__card--main {
    width: 62%;
    aspect-ratio: 3 / 4;
    top: 6%;
    left: 4%;
    transform: rotate(-4deg);
    animation: jmCardIn 1s 0.8s both, jmFloatCard 6s ease-in-out infinite 2s;
    z-index: 3;
}
.jm-hero__card--side {
    width: 48%;
    aspect-ratio: 4 / 3;
    bottom: 8%;
    right: 0;
    transform: rotate(6deg);
    animation: jmCardIn 1s 1.1s both, jmFloatCard 7s ease-in-out infinite 2.5s reverse;
    z-index: 2;
}
@keyframes jmCardIn {
    from { opacity: 0; transform: scale(0.7) rotate(-15deg); }
}
@keyframes jmFloatCard {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

.jm-hero__card-tape {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 90px; height: 22px;
    background: rgba(255, 209, 102, 0.9);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.jm-hero__card-label {
    position: absolute;
    bottom: 14px; left: 14px;
    background: var(--jm-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--jm-font-display);
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(212, 32, 42, 0.4);
}
.jm-hero__card-label--alt {
    background: var(--jm-blue);
    box-shadow: 0 8px 20px rgba(10, 42, 124, 0.4);
}

/* Rouleau de peinture */
.jm-roller {
    position: absolute;
    width: 150px;
    top: -10%;
    right: 4%;
    z-index: 4;
    filter: drop-shadow(0 16px 30px rgba(0,0,0,0.18));
    animation: jmRollerPaint 5s ease-in-out infinite;
    transform-origin: top right;
}
@keyframes jmRollerPaint {
    0%, 100% { transform: rotate(-6deg) translateX(0); }
    50%      { transform: rotate(6deg) translateX(-14px); }
}
.jm-roller__trace {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: jmTraceDraw 4s ease-out infinite;
    opacity: 0.85;
}
@keyframes jmTraceDraw {
    0%   { stroke-dashoffset: 200; opacity: 0; }
    20%  { opacity: 1; }
    70%  { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
.jm-roller__drip {
    animation: jmDripFall 2.5s ease-in infinite;
    opacity: 0;
}
.jm-roller__drip--2 { animation-delay: 1.2s; }
@keyframes jmDripFall {
    0%   { opacity: 0; transform: translateY(-15px); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(45px); }
}

/* Coup de pinceau qui se dessine autour */
.jm-stroke-around {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}
.jm-stroke-around__path {
    animation: jmStrokeDraw 3.5s 1.2s ease-out forwards;
}
@keyframes jmStrokeDraw { to { stroke-dashoffset: 0; } }

/* Badge étoiles */
.jm-hero__badge-stars {
    position: absolute;
    bottom: 2%;
    left: -2%;
    background: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 20px 40px rgba(10, 42, 124, 0.18);
    border: 1px solid var(--jm-grey-100);
    z-index: 5;
    animation: jmFadeUp 1s 1.4s both, jmFloatCard 5s ease-in-out infinite 3s;
}
.jm-hero__stars {
    color: var(--jm-yellow);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
}
.jm-hero__badge-stars small {
    color: var(--jm-grey-700);
    font-family: var(--jm-font-display);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Badge "Devis gratuit" flottant */
.jm-hero__badge-devis {
    position: absolute;
    top: 14%;
    right: -6%;
    background: var(--jm-black);
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(15, 18, 23, 0.25);
    z-index: 5;
    animation: jmFadeUp 1s 1.5s both, jmFloatCard 6s ease-in-out infinite 3.5s reverse;
}
.jm-hero__badge-devis-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--jm-yellow);
    color: var(--jm-black);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.jm-hero__badge-devis strong {
    display: block;
    font-family: var(--jm-font-display);
    font-size: 0.92rem;
    line-height: 1.1;
}
.jm-hero__badge-devis small {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
}

/* === Indicateur scroll === */
.jm-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 4;
    color: var(--jm-grey-500);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--jm-font-display);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}
.jm-hero__scroll:hover { color: var(--jm-red); }
.jm-hero__mouse {
    width: 22px; height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}
.jm-hero__mouse::before {
    content: '';
    position: absolute;
    left: 50%; top: 5px;
    transform: translateX(-50%);
    width: 3px; height: 7px;
    background: currentColor;
    border-radius: 2px;
    animation: jmScrollDot 1.6s ease-in-out infinite;
}
@keyframes jmScrollDot {
    0%   { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}
