/* Marketing – gris foncé, boutons jaunes (Leadnist / Hive Learning) */
:root {
    --marketing-bg: #1a1a1e;
    --marketing-bg-card: #25252b;
    --marketing-border: #3a3a42;
    --marketing-text: #f0f0f0;
    --marketing-muted: #9ca3af;
    --marketing-accent: #eab308;
    --marketing-accent-hover: #ca9a06;
    --marketing-radius: 12px;
}

body.marketing {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--marketing-text);
    background: var(--marketing-bg);
    min-height: 100vh;
}

.marketing .marketing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 30, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--marketing-border);
}

.marketing .marketing-header .btn-connexion,
.marketing .marketing-header .btn-tarifs {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--marketing-radius);
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.marketing .marketing-header .btn-connexion {
    background: var(--marketing-accent);
    color: #1a1a1e;
}

.marketing .marketing-header .btn-connexion:hover {
    background: var(--marketing-accent-hover);
    color: #1a1a1e;
}

.marketing .marketing-header .btn-tarifs {
    background: transparent;
    color: var(--marketing-accent);
    border: 2px solid var(--marketing-accent);
}

.marketing .marketing-header .btn-tarifs:hover {
    background: var(--marketing-accent);
    color: #1a1a1e;
}

.marketing .marketing-cover {
    position: relative;
    width: 100%;
    background: #000;
    /* Hauteur de bandeau */
    height: clamp(290px, 32vw, 460px);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* Zoom léger pour réduire les marges noires dans l'image source */
    --cover-scale: 1.28;
}

/* Zone “Facebook cover” centrée, avec bords noirs à gauche/droite */
.marketing .marketing-cover .marketing-cover-inner {
    position: relative;
    height: 100%;
    aspect-ratio: 820 / 312;
    max-width: min(92vw, 1400px);
    overflow: hidden;
}
.marketing .marketing-cover .cover-img {
    /* Image entière dans la zone centrale */
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: scale(var(--cover-scale));
    transform-origin: center;
}
.marketing .marketing-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234,179,8,.18), rgba(26,26,30,.9));
}

.marketing .marketing-hero-copy {
    padding: 2rem 1.5rem 1rem;
}

.marketing .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.marketing .hero-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
}

.marketing .hero-title {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.0rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.marketing .hero-tagline {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,.86);
    font-weight: 500;
}

.marketing .hero-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

/* Zone drop cover (visible admin uniquement) */
.marketing .cover-drop-zone {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    border: 2px dashed var(--marketing-accent);
    border-radius: 0;
    cursor: pointer;
}

.marketing .cover-drop-zone.is-visible {
    display: flex;
}

.marketing .cover-drop-zone .drop-label {
    color: var(--marketing-accent);
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: rgba(26,26,30,.9);
    border-radius: var(--marketing-radius);
}

.marketing .marketing-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.marketing .marketing-section {
    margin-bottom: 2.5rem;
}

.marketing .marketing-section h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--marketing-text);
}

.marketing .marketing-section h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--marketing-text);
}

.marketing .marketing-section p {
    margin: 0;
    color: var(--marketing-muted);
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.feature {
    background: var(--marketing-bg-card);
    border: 1px solid var(--marketing-border);
    border-radius: var(--marketing-radius);
    padding: 1.25rem;
}
.feature p {
    font-size: 0.98rem;
    color: var(--marketing-muted);
}

.marketing-bullets {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: var(--marketing-muted);
}
.marketing-bullets li { margin: 0.35rem 0; }

.cta-footnote {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,.65);
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
    .marketing .marketing-header { padding: 0.85rem 1rem; }
    .marketing .marketing-cover { height: clamp(220px, 55vw, 320px); }
    /* Sur mobile, pas de bords noirs: on remplit la largeur */
    .marketing .marketing-cover .marketing-cover-inner { width: 100%; aspect-ratio: auto; }
    .marketing .marketing-cover { --cover-scale: 1.12; }
}

.marketing .marketing-cta {
    margin-top: 2rem;
}

.marketing .btn-primary-marketing {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--marketing-accent);
    color: #1a1a1e;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--marketing-radius);
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.marketing .btn-primary-marketing:hover {
    background: var(--marketing-accent-hover);
    color: #1a1a1e;
}

/* Page compte – carte Connexion / Créer un profil */
.marketing .compte-card {
    max-width: 420px;
    margin: 4rem auto 2rem;
    padding: 2rem;
    background: var(--marketing-bg-card);
    border: 1px solid var(--marketing-border);
    border-radius: var(--marketing-radius);
}

.marketing .compte-card .compte-title {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--marketing-text);
}

.marketing .compte-card .compte-text {
    margin: 0 0 1.5rem;
    color: var(--marketing-muted);
    font-size: 0.95rem;
}

.marketing .compte-card .compte-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marketing .compte-card .compte-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--marketing-accent);
    color: #1a1a1e;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--marketing-radius);
    transition: background .2s;
}

.marketing .compte-card .compte-buttons a:hover {
    background: var(--marketing-accent-hover);
    color: #1a1a1e;
}

/* Bouton Facebook */
.marketing .btn-facebook {
    background: #1877F2;
    color: #fff;
    font-weight: 700;
}
.marketing .btn-facebook:hover {
    background: #166FE5;
    color: #fff;
}
.marketing .btn-facebook .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* Formulaires login / creer-profil en style marketing */
.marketing .form-row label,
.marketing .form-control-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--marketing-text);
}

.marketing input[type="email"],
.marketing input[type="password"],
.marketing input[type="text"],
.marketing input[type="tel"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid var(--marketing-border);
    border-radius: 8px;
    background: var(--marketing-bg);
    color: var(--marketing-text);
    box-sizing: border-box;
}

.marketing input:focus {
    outline: none;
    border-color: var(--marketing-accent);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

.marketing .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.marketing .alert-danger { background: rgba(220, 38, 38, 0.2); color: #fca5a5; border: 1px solid #dc2626; }
.marketing .alert-success { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid #22c55e; }

.marketing .card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--marketing-bg-card);
    border: 1px solid var(--marketing-border);
    border-radius: var(--marketing-radius);
}

.marketing .card .btn-primary { background: var(--marketing-accent); color: #1a1a1e; }
.marketing .card .btn-primary:hover { background: var(--marketing-accent-hover); color: #1a1a1e; }
.marketing .card a:not(.btn) { color: var(--marketing-accent); }
.marketing .card a:not(.btn):hover { color: var(--marketing-accent-hover); }

.marketing-flash-success { background: rgba(34, 197, 94, 0.95); color: #fff; }
.marketing-flash-error { background: rgba(220, 38, 38, 0.95); color: #fff; }
