*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #0a0a0a;
    --card-bg: #111111;
    --border: #222222;
    --border2: #2a2a2a;
    --fg: #f0f0f0;
    --muted: #666666;
    --muted2: #888888;
    --accent: #a855f7;
    --input-bg: #0d0d0d;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--safe-bottom);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── GRID BG ── */
.grid-bg {
    pointer-events: none;
    position: fixed; inset: 0; z-index: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, #1a1a1a 1px, transparent 1px),
        linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
}

.grid-fade {
    pointer-events: none;
    position: fixed; inset: 0; z-index: 1;
    background: var(--bg);
    mask-image: radial-gradient(ellipse at center, transparent 20%, black);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black);
}

.streaks { pointer-events: none; position: fixed; inset: 0; z-index: 2; overflow: hidden; }

.streak {
    position: absolute; width: 2px; border-radius: 999px;
    opacity: 0; animation: streak-fall linear infinite;
    transform-origin: top center; will-change: transform, opacity;
}

@keyframes streak-fall {
    0%   { opacity: 0; transform: translateY(-120%) rotate(var(--angle)); }
    10%  { opacity: var(--op); }
    80%  { opacity: var(--op); }
    100% { opacity: 0; transform: translateY(220%) rotate(var(--angle)); }
}

/* ── LAYOUT ── */
.main-container {
    position: relative; z-index: 10;
    width: 100%; max-width: 1300px; margin: 0 auto;
    padding: 0 max(1rem, var(--safe-left)) max(2rem, var(--safe-bottom));
    padding-right: max(1rem, var(--safe-right));
}

/* ── HERO ── */
.hero {
    text-align: center;
    padding: clamp(1rem, 4vw, 2rem) 0 clamp(0.75rem, 2.5vw, 1.25rem);
}

.hero-icon {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 1rem;
    color: rgba(255,255,255,0.35);
}

.hero-icon svg:first-child,
.hero-icon svg:last-child { color: rgba(168,85,247,0.65); }

.hero h1 {
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #22d3ee 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 3s linear infinite;
    background-size: 200% auto; line-height: 1.15;
}

@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    color: rgba(255,255,255,0.5);
    margin-top: 0.4rem;
    font-size: clamp(0.75rem, 2vw, 0.88rem);
}

/* ── CARDS GRID ── */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.5rem, 2vw, 0.85rem);
    margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
}

@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: clamp(0.75rem, 3vw, 1.2rem) clamp(0.5rem, 2vw, 0.9rem);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer; -webkit-user-select: none; user-select: none;
    touch-action: manipulation;
    transition: transform 0.25s cubic-bezier(0.2,0.9,0.4,1.1), border-color 0.25s, box-shadow 0.25s;
    will-change: transform;
}

.card:active { transform: scale(0.96); border-color: rgba(168,85,247,0.3); }

@media (hover: hover) {
    .card:hover {
        transform: translateY(-6px) scale(1.02);
        border-color: rgba(168,85,247,0.4);
        box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    }
    .card:hover .icon { transform: scale(1.08); }
}

.icon {
    width: clamp(44px, 10vw, 65px); height: clamp(44px, 10vw, 65px);
    margin: 0 auto 0.55rem;
    background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s;
}

.card-icon {
    width: clamp(26px, 5.5vw, 38px); height: clamp(26px, 5.5vw, 38px);
    object-fit: contain; display: block;
}

.card h3 { font-size: clamp(0.8rem, 3vw, 1.1rem); font-weight: 700; margin-bottom: 0.15rem; line-height: 1.2; }
.card p  { font-size: clamp(0.65rem, 1.8vw, 0.78rem); color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; line-height: 1.3; }

.badge {
    display: inline-block;
    background: linear-gradient(115deg, #a855f7, #ec4899);
    padding: 0.2rem 0.65rem; border-radius: 40px;
    font-size: clamp(0.58rem, 1.5vw, 0.66rem); font-weight: 700; letter-spacing: 0.01em;
}

/* ── REVIEWS ── */
.reviews { margin-bottom: clamp(2rem, 6vw, 4rem); }

.reviews-title {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: clamp(1.25rem, 4vw, 2rem);
    color: rgba(168,85,247,0.6);
}

.reviews-title h2 {
    font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 700;
    background: linear-gradient(135deg, #fff, #a855f7);
    -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0;
}

.reviews-stats {
    display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08); border-radius: 1.25rem;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    flex-wrap: wrap; justify-content: center;
}

.stats-average { text-align: center; flex-shrink: 0; }

.stats-big {
    font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px;
}

.stats-stars-row { margin-bottom: 4px; }
.stats-count { font-size: 0.72rem; color: rgba(255,255,255,0.4); }

.stats-bars { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; }

.stats-bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; }
.stats-bar-label { width: 22px; color: rgba(255,255,255,0.5); flex-shrink: 0; text-align: right; }
.stats-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.stats-bar-fill  { height: 100%; border-radius: 99px; transition: width 1s ease; }
.stats-bar-pct   { width: 28px; color: rgba(255,255,255,0.35); font-size: 0.65rem; flex-shrink: 0; }

.reviews-carousel-wrap { position: relative; overflow: hidden; }

.reviews-carousel-fade {
    pointer-events: none; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}

.reviews-carousel-fade-left  { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.reviews-carousel-fade-right { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.reviews-grid {
    display: flex; gap: clamp(0.75rem, 2vw, 1rem);
    width: max-content;
    animation: carouselScroll 55s linear infinite;
    will-change: transform;
}

.reviews-grid:hover { animation-play-state: paused; }

@keyframes carouselScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 1.25rem; padding: clamp(1rem, 3.5vw, 1.2rem);
    border: 1px solid rgba(255,255,255,0.08);
    width: 260px; flex-shrink: 0; transition: border-color 0.25s;
}

.reviews-grid:hover .review-card:hover { border-color: rgba(168,85,247,0.3); }

.review-text { font-size: 0.83rem; line-height: 1.65; color: rgba(255,255,255,0.78); margin-bottom: 0.9rem; font-style: italic; }

.review-author { display: flex; align-items: center; gap: 0.7rem; }

.review-avatar {
    width: 34px; height: 34px; min-width: 34px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.78rem; color: #fff;
}

.review-name {
    font-size: 0.8rem; font-weight: 600; line-height: 1.3;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.review-offer {
    font-size: 0.62rem; font-weight: 500; color: rgba(168,85,247,0.8);
    background: rgba(168,85,247,0.1); padding: 1px 6px;
    border-radius: 20px; border: 1px solid rgba(168,85,247,0.2);
}

.review-date { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
.stars { display: flex; gap: 2px; margin-bottom: 0.55rem; }

/* ── ADMIN BTN ── */
.admin-btn {
    position: fixed;
    bottom: calc(16px + var(--safe-bottom));
    right: calc(16px + var(--safe-right));
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 9px 16px; border-radius: 60px;
    font-size: 12px; font-weight: 500; cursor: pointer;
    z-index: 100; border: 1px solid rgba(255,255,255,0.15);
    color: var(--fg); width: auto; height: auto; margin: 0;
    touch-action: manipulation; transition: background 0.2s;
    font-family: inherit;
}

.admin-btn:hover { background: rgba(168,85,247,0.3); }
.admin-btn:active { transform: scale(0.97); }

/* ── MODAL ── */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 200; align-items: flex-end; justify-content: center;
    padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.modal-card {
    background: var(--card-bg);
    width: 100%; max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: clamp(1.25rem, 5vw, 1.75rem);
    padding-bottom: calc(clamp(1.25rem, 5vw, 1.75rem) + var(--safe-bottom));
    border: 1px solid var(--border); border-bottom: none;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
    animation: modalUp 0.28s cubic-bezier(0.16,1,0.3,1) both;
    margin-top: auto;
}

.modal-card::before {
    content: ''; display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.15); border-radius: 2px;
    margin: 0 auto 1.25rem;
}

@keyframes modalUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(100%); }
}

@media (min-width: 600px) {
    .modal { align-items: center; padding: 1rem; }
    .modal-card {
        border-radius: 16px; border-bottom: 1px solid var(--border);
        margin-top: 0; padding-bottom: clamp(1.25rem, 5vw, 1.75rem);
    }
    .modal-card::before { display: none; }
    @keyframes modalUp {
        from { opacity: 0; transform: scale(0.97) translateY(-10px); }
        to   { opacity: 1; transform: scale(1) translateY(0); }
    }
}

/* ── FORM ELEMENTS dans modal ── */
.modal-card input,
.modal-card select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    margin: 0 0 10px;
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: 10px;
    color: var(--fg);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    display: block;
    -webkit-appearance: none; appearance: none;
    transition: border-color 0.15s, background 0.15s;
}

.modal-card input::placeholder { color: var(--muted); opacity: 0.6; }
.modal-card input:focus,
.modal-card select:focus { border-color: #505050; background: #161616; }

.modal-card select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.modal-card select option { background: #1a1a1a; color: var(--fg); }

.modal-card button {
    width: 100%; height: 50px; padding: 0 20px;
    background: var(--fg); color: var(--bg);
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; margin-top: 6px;
    transition: opacity 0.15s, transform 0.1s;
    touch-action: manipulation;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.modal-card button:active { transform: scale(0.975); opacity: 0.9; }
@media (hover: hover) { .modal-card button:hover { opacity: 0.87; } }

.modal-card button + button {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2);
    color: var(--muted2);
    font-size: 13px;
}

/* ── INPUT +33 PREFIX ── */
.phone-prefix-wrap {
    display: flex; align-items: stretch;
    border: 1px solid var(--border2);
    border-radius: 10px; overflow: hidden;
    background: var(--input-bg);
    margin: 0 0 10px; height: 50px;
    transition: border-color 0.15s;
}

.phone-prefix-wrap:focus-within { border-color: #505050; background: #161616; }

.phone-prefix-wrap .prefix {
    padding: 0 13px;
    font-size: 15px; font-weight: 600;
    color: var(--fg);
    background: rgba(168,85,247,0.13);
    border-right: 1px solid var(--border2);
    display: flex; align-items: center; flex-shrink: 0;
    user-select: none; letter-spacing: 0.02em;
    font-family: inherit;
}

.phone-prefix-wrap input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1; height: 100%;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 16px;
    outline: none;
    color: var(--fg);
    font-family: inherit;
    -webkit-appearance: none;
    min-width: 0;
}

.phone-prefix-wrap input::placeholder { color: var(--muted); opacity: 0.6; }
.phone-prefix-wrap input:focus { background: transparent !important; border-color: transparent !important; }

/* ── FIELD ERROR ── */
.field-error {
    display: flex; align-items: center; gap: 5px;
    color: #e05555; font-size: 12px;
    margin-top: -6px; margin-bottom: 8px;
    animation: fadeInUp 0.2s ease both;
}

.field-error svg { flex-shrink: 0; }

/* ── ANIMATIONS ── */
.spin-svg { animation: spin 0.85s linear infinite; display: inline-block; }

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/* ── NOTIFICATION PERSISTANTE ── */
.persistent-notification {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 12px; padding: 12px 20px;
    max-width: 90%; width: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    animation: slideUp 0.3s ease;
}

.notification-content {
    display: flex; align-items: center; gap: 12px;
    color: #ffd700; font-size: 13px;
    flex-wrap: wrap; justify-content: center;
}

.notification-content svg { flex-shrink: 0; color: #ffd700; }
.notification-content span { color: rgba(255,255,255,0.85); }

.notification-close {
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; padding: 0; margin: 0;
    font-family: inherit; transition: background 0.2s;
}

.notification-close:hover { background: rgba(255,255,255,0.2); }

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 600px) {
    .persistent-notification { bottom: 70px; padding: 10px 16px; }
    .notification-content { font-size: 11px; gap: 8px; }
}

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