:root {
    --accent-1: #7b3cff;
    --accent-2: #ff6b6b;
    --muted: #6b7280;
    --card-radius: 18px;
}

* { box-sizing: border-box; margin:0; padding:0; }
body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: #0b1220;
    background: #f7fafc;
    line-height: 1.5;
}

/* NAVIGATION */
header { background: #fff; border-bottom: 1px solid rgba(11,17,32,0.04); }
.nav {
    max-width: 1200px; margin: 0 auto;
    padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.logo img { width: 100px; height: 80px; object-fit: contain; }
nav ul { display: flex; gap: 18px; list-style: none; }
nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}
.cta {
    background: linear-gradient(90deg,var(--accent-1),#ff8a3d);
    color: #fff; padding: 10px 16px;
    border-radius: 12px; text-decoration: none; font-weight: 700;
    white-space: nowrap;
}

/* HERO */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,7,18,0.7) 10%, rgba(6,7,18,0.35) 45%, rgba(6,7,18,0.0) 100%);
    z-index: 1;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('../img/shared image.jpg'); /* ✅ image locale */
    background-size: cover;
    background-position: center;
    filter: contrast(0.95) saturate(0.9);
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    padding: 80px 20px;
    display: flex; gap: 40px; align-items: center;
}
.hero-left { flex: 1; color: #fff; max-width: 680px; }
.kicker { color: #ff9a3c; font-weight: 700; margin-bottom: 8px; display:block; }
h1 { font-size: 56px; line-height: 1.1; margin-bottom: 18px; font-weight: 800; }
p.lead { color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }

/* CARDS */
.cards-wrap {
    max-width: 1200px;
    margin: -60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 26px 22px;
    box-shadow: 0 18px 40px rgba(12,18,44,0.08);
    border: 1px solid rgba(12,18,44,0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.card .badge {
    position: absolute; top: -30px; left: 22px;
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 18px;
    box-shadow: 0 10px 20px rgba(11,17,32,0.12);
    border: 6px solid #fff;
}
.card:nth-child(1) .badge { background: linear-gradient(90deg,#7b3cff,#ff5fa3); }
.card:nth-child(2) .badge { background: linear-gradient(90deg,#3b82f6,#7c3cff); }
.card:nth-child(3) .badge { background: linear-gradient(90deg,#06b6d4,#3b82f6); }
.card:nth-child(4) .badge { background: linear-gradient(90deg,#ff8a3d,#ff5fa3); }
.card:nth-child(5) .badge { background: linear-gradient(90deg,#ff8a3d,#7b3cff); }

.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ESPACEMENT */
.spacer { height: 100px; }

/* HOVER liens */
a::before, a::after {
    content: "";
    position: absolute;
    background: linear-gradient(90deg,#7b3cff,#ff5fa3);
    width: 100%; height: 2px;
    transform: scaleX(0);
    transition: transform 0.4s;
}
a::before { top: 0; left: 0; transform-origin: left; }
a::after { bottom: 0; right: 0; transform-origin: right; }
a:hover::before, a:hover::after { transform: scaleX(1); }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width:1100px) {
    .hero-inner { padding: 60px 18px; }
    h1 { font-size: 44px; }
}
@media (max-width:820px) {
    .hero { min-height: 520px; }
    .hero-inner { flex-direction: column; align-items: flex-start; text-align: left; }
    h1 { font-size: 36px; }
}
@media (max-width:480px) {
    h1 { font-size: 28px; }
    p.lead { font-size: 15px; }
    .nav { flex-direction: column; gap: 12px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
}


/* ESPACEMENT */
.spacer { height: 120px; }

/* nav hover */
a { text-decoration: none; position: relative; overflow: hidden; z-index: 1; }
a::before, a::after {
    content: ""; position: absolute; background: linear-gradient(90deg,#7b3cff,#ff5fa3);
    width: 100%; height: 2px; transform: scaleX(0); transition: transform 0.4s;
}
a::before { top: 0; left: 0; transform-origin: left; }
a::after { bottom: 0; right: 0; transform-origin: right; }
a:hover::before, a:hover::after { transform: scaleX(1); }


/** FORMS **/

.contact-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.contact-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-cards .card {
    flex: 1 1 300px;
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 2rem;
    background: #fff;
    transition: transform 0.2s;
}

.contact-cards .card:hover {
    transform: translateY(-4px);
}

.contact-cards .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-cards h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-cards p {
    color: #555;
    font-size: 0.95rem;
}

.contact-form .subtitle {
    color: #f97316; /* orange */
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-form form {
    text-align: left;
}

.contact-form .row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    background: #f6f8ff;
    border-radius: 2rem;
    font-size: 0.95rem;
}

.contact-form textarea {
    border-radius: 1rem;
    width: 100%;
    resize: none;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-footer label {
    font-size: 0.9rem;
    color: #666;
}

.btn {
    align-self: flex-start;
    border: 1px solid #f97316;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.btn .dot {
    width: 10px;
    height: 10px;
    background: #f97316;
    border-radius: 50%;
    display: inline-block;
}

.btn:hover {
    background: #f97316;
    color: #fff;
}


/*ALERT*/

/* === NEW ALERT CARDS === */
:root {
    --alert-muted: #9aa3ae;
    --alert-radius: 22px;
}

.alert-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--alert-radius);
    box-shadow: 0 12px 30px rgba(18, 30, 50, 0.15);
    padding: 48px 28px;
    text-align: center;
    z-index: 9999;
    width: 90%;
    max-width: 360px;
    display: none; /* par défaut caché */
    flex-direction: column;
    align-items: center;
}

/* badge rond */
.alert-card .badge {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -70px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.alert-card .badge svg {
    width: 44px;
    height: 44px;
}

/* SUCCESS */
.alert-card.success .badge {
    background: linear-gradient(180deg,#18c16a,#0fb04f);
}
.alert-card.success h2 { color: #0fb04f; }

/* ERROR */
.alert-card.error .badge {
    background: linear-gradient(180deg,#ff7a00,#ff5a00);
}
.alert-card.error h2 { color: #ff5a00; }

.alert-card h2 {
    margin: 30px 0 12px;
    font-size: 24px;
    font-weight: 700;
}
.alert-card p {
    color: var(--alert-muted);
    font-size: 16px;
    margin-bottom: 20px;
}
.alert-card button {
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.alert-card.success button { color: #16c65c; }
.alert-card.error button { color: #ff6a00; }

/* Structure des cards */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* HEADER uniforme */
.card-header {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    font-weight: bold;
    line-height: 1.3;
}

/* BODY flexible */
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Texte */
.card-text {
    flex-grow: 1;
}

/* ========================= */
/* 📱 MOBILE (par défaut) */
/* ========================= */
.card-header {
    height: 70px;
    -webkit-line-clamp: 5;
    font-size: 0.9rem;
}

/* ========================= */
/* 📲 TABLETTE */
/* ========================= */
@media (min-width: 920px) {
    .card-header {
        height: 110px;
        -webkit-line-clamp: 7;
        font-size: 1rem;
    }
}

/* ========================= */
/* 💻 DESKTOP */
/* ========================= */
@media (min-width: 1024px) {
    .card-header {
        height: 100px;
        -webkit-line-clamp: 4;
        font-size: 1.0rem;
    }
}
.card-header:hover {
    overflow: visible;
}
