/* ========================================
   PERMIS EXPRESS EU – Hero Section
   Exact maquette – image TOUJOURS à droite
   (même sur mobile)
   ======================================== */

:root {
    --blue-900: #1E3A8A;
    --blue-800: #1E40AF;
    --blue-700: #1D4ED8;
    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --blue-100: #DBEAFE;
    --blue-50: #EFF6FF;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-600: #475569;
    --slate-500: #64748B;
    --white: #FFFFFF;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(30, 64, 175, 0.08);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

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

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

/* ========== HERO ========== */
.hero {
    position: relative;
    background: linear-gradient(165deg, #F0F7FF 0%, #F8FBFF 45%, #FFFFFF 100%);
    padding: 40px 0 50px;
    overflow: hidden;
    min-height: auto;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* LEFT CONTENT */
.hero-content {
    max-width: 540px;
    padding-top: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid #E0E7FF;
    color: var(--blue-800);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--slate-900);
    letter-spacing: -0.8px;
    margin-bottom: 24px;
}

.hero-title .text-blue {
    color: var(--blue-600);
}

.hero-desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--slate-600);
    margin-bottom: 36px;
    max-width: 380px;
    position: relative;
    padding-left: 18px;
}

.hero-desc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #BFDBFE;
    border-radius: 2px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    border-color: var(--blue-600);
}

.btn-primary:hover {
    background: var(--blue-700);
    border-color: var(--blue-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border-color: var(--blue-500);
}

.btn-outline:hover {
    background: var(--blue-50);
    border-color: var(--blue-600);
}

/* Bottom stats */
.hero-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px 36px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E0E7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-800);
    line-height: 1.2;
}

.stat-text span {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}

/* RIGHT VISUAL – TOUJOURS À DROITE */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 480px;
}

.hero-image-wrapper {
    position: relative;
    width: 480px;
    height: 520px;
    border-radius: 50% 50% 48% 52% / 42% 42% 58% 58%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.image-curve {
    position: absolute;
    bottom: -2px;
    left: -10%;
    right: -10%;
    height: 80px;
    background: linear-gradient(to top, #F8FBFF 20%, transparent);
    pointer-events: none;
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    z-index: 10;
}

.card-stars {
    top: 30px;
    right: 10px;
    width: 170px;
}

.card-satisfaction {
    bottom: 90px;
    right: 0;
    width: 160px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.card-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-badge.heart {
    background: #FEF3C7;
}

.card-badge.check {
    background: #D1FAE5;
}

.card-label {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}

.card-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-800);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.card-sub {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
    margin-top: 2px;
}

.medal-icon {
    color: var(--blue-800);
}

/* Decorative elements */
.hero-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-decor-dots-left {
    top: 80px;
    left: 40px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #BFDBFE 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.7;
}

.hero-decor-dots-bottom {
    bottom: 60px;
    left: 80px;
    width: 100px;
    height: 60px;
    background-image: radial-gradient(circle, #BFDBFE 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.6;
}

.hero-decor-curve {
    position: absolute;
    bottom: -80px;
    right: -100px;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(191, 219, 254, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Scroll down */
.scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-down a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.scroll-down a:hover {
    transform: translateY(3px);
    box-shadow: 0 6px 24px rgba(30, 64, 175, 0.15);
}

/* ========== RESPONSIVE – image TOUJOURS à droite ========== */

@media (max-width: 1100px) {
    .hero-title {
        font-size: 40px;
    }
    .hero-image-wrapper {
        width: 420px;
        height: 460px;
    }
    .hero-visual {
        height: auto; min-height: 320px;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }
    .hero-inner {
        grid-template-columns: 1fr 0.95fr;
        gap: 20px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }
    .hero-buttons {
        margin-bottom: 32px;
        gap: 10px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .hero-image-wrapper {
        width: 320px;
        height: 360px;
    }
    .hero-visual {
        height: auto; min-height: 320px;
    }
    .card-stars {
        width: 140px;
        top: 8px;
        right: -8px;
        padding: 14px 16px;
    }
    .card-satisfaction {
        width: 130px;
        bottom: 50px;
        right: -12px;
        padding: 14px 16px;
    }
    .card-number {
        font-size: 24px;
    }
    .stat-icon {
        width: 38px;
        height: 38px;
    }
    .stat-text strong {
        font-size: 14px;
    }
    .stat-text span {
        font-size: 12px;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 30px 0 40px;
        min-height: auto;
    }
    .hero-inner {
        grid-template-columns: 1fr 0.9fr;
        gap: 12px;
        align-items: start;
    }
    .hero-content {
        max-width: 100%;
        padding-top: 0;
    }
    .badge {
        font-size: 10px;
        padding: 6px 12px;
        margin-bottom: 18px;
    }
    .hero-title {
        font-size: 24px;
        margin-bottom: 16px;
        letter-spacing: -0.4px;
    }
    .hero-desc {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 20px;
        padding-left: 12px;
        max-width: 100%;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }
    .btn {
        width: 100%;
        padding: 11px 16px;
        font-size: 13px;
    }
    .hero-stats {
        flex-wrap: nowrap;
        gap: 8px 12px;
        justify-content: flex-start;
    }
    .stat-item {
        gap: 6px;
    }
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    .stat-text strong {
        font-size: 12px;
    }
    .stat-text span {
        font-size: 10px;
    }
    .hero-visual {
        height: auto; min-height: 320px;
        position: sticky;
        top: 20px;
    }
    .hero-image-wrapper {
        width: 240px;
        height: 280px;
    }
    .floating-card {
        padding: 10px 12px;
    }
    .card-stars {
        width: 115px;
        top: 0;
        right: -15px;
    }
    .card-satisfaction {
        width: 110px;
        bottom: 30px;
        right: -18px;
    }
    .card-number {
        font-size: 20px;
    }
    .card-label,
    .card-sub {
        font-size: 11px;
    }
    .stars svg {
        width: 12px;
        height: 12px;
    }
    .scroll-down {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 8px;
    }
    .hero-title {
        font-size: 20px;
    }
    .hero-desc {
        font-size: 12px;
        padding-left: 10px;
    }
    .btn {
        font-size: 12px;
        padding: 10px 12px;
    }
    .hero-image-wrapper {
        width: 180px;
        height: 220px;
    }
    .hero-visual {
        height: auto; min-height: 320px;
    }
    .card-stars,
    .card-satisfaction {
        display: none; /* trop petit, on cache les cards sur très petit écran */
    }
    .hero-stats {
        gap: 6px 8px;
    }
    .stat-icon {
        width: 28px;
        height: 28px;
    }
    .stat-icon svg {
        width: 14px;
        height: 14px;
    }
    .stat-text strong {
        font-size: 11px;
    }
    .stat-text span {
        font-size: 9px;
    }
}
