/*
 * Page publique "Sport en entreprise" (/entreprises — cahier des charges
 * §7). Chargé uniquement sur cette page (voir la condition sur
 * $cheminCourant dans app/Views/layouts/main.php), sur le même principe
 * que home.css pour l'accueil.
 *
 * Fichier 100% ADDITIF : aucune règle existante d'app.css n'est modifiée
 * ni supprimée ; toutes les classes ci-dessous sont nouvelles (préfixe
 * "ent-" pour éviter toute collision).
 *
 * Respecte la charte graphique (docs/charte-graphique.md) : uniquement
 * les tokens --smo-* définis dans app.css, aucune couleur en dur.
 */

/* --- Astuce "plein écran" (identique à .home-bleed, cf. home.css) : les
 * sections vivent dans <main class="container"> (max-width 1080px,
 * padding latéral) — cette classe leur permet de s'étendre bord à bord. */
.ent-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ent-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Boutons (mêmes couleurs que .btn-hero de home.css, dupliqués ici
 * pour que ce fichier reste autonome puisqu'il est chargé seul). --- */
.ent-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.ent-btn--primary {
    background: var(--smo-yellow);
    color: var(--smo-black);
    border-color: var(--smo-yellow);
}
.ent-btn--primary:hover, .ent-btn--primary:focus-visible {
    background: var(--smo-yellow-dark);
    border-color: var(--smo-yellow-dark);
    transform: translateY(-1px);
}
.ent-btn--dark {
    background: var(--smo-black);
    color: var(--smo-white);
    border-color: var(--smo-black);
}
.ent-btn--dark:hover, .ent-btn--dark:focus-visible {
    background: #000;
    transform: translateY(-1px);
}
.ent-btn--outline {
    background: transparent;
    color: var(--smo-black);
    border-color: var(--smo-black);
}
.ent-btn--outline:hover, .ent-btn--outline:focus-visible {
    background: var(--smo-black);
    color: var(--smo-white);
}
.ent-btn--outline-light {
    background: transparent;
    color: var(--smo-white);
    border-color: rgba(255, 255, 255, 0.5);
}
.ent-btn--outline-light:hover, .ent-btn--outline-light:focus-visible {
    border-color: var(--smo-yellow);
    color: var(--smo-yellow);
}

/* --- Hero -------------------------------------------------------------- */
.ent-hero {
    background: linear-gradient(155deg, var(--smo-black) 0%, var(--smo-black) 55%, #3a3235 100%);
    color: var(--smo-white);
    padding: 4.5rem 1.25rem 4rem;
    position: relative;
    overflow: hidden;
}
.ent-hero::after {
    /* touche de jaune en diagonale, dans l'esprit "signalétique de stade" —
       purement décoratif : ne doit jamais intercepter les clics sur le
       contenu du hero (sinon les boutons sous la bande deviennent inertes). */
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 55%;
    height: 220%;
    background: var(--smo-yellow);
    opacity: 0.12;
    transform: rotate(18deg);
    pointer-events: none;
}
.ent-hero-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.ent-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--smo-yellow);
    margin: 0 0 0.75rem;
}
.ent-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.08;
}
.ent-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}
.ent-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    color: var(--smo-gray-light);
}
.ent-hero p.ent-lede {
    color: var(--smo-gray-light);
    font-size: 1.08rem;
    margin: 0 auto;
    max-width: 52ch;
}
.ent-hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

/* --- Bandeau des 3 promesses -------------------------------------------- */
.ent-promise {
    padding: 3rem 0;
    border-bottom: 1px solid var(--smo-border);
}
.ent-promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.ent-promise-item .ent-icon { font-size: 2rem; line-height: 1; }
.ent-promise-item h3 { margin: 0.6rem 0 0.3rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.ent-promise-item p { margin: 0; color: var(--smo-gray); font-size: 0.92rem; }
.ent-promise-foot {
    text-align: center;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--smo-border);
    max-width: 60ch;
    font-size: 1.05rem;
    font-weight: 600;
}
@media (max-width: 700px) {
    .ent-promise-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Quel est votre objectif ? ------------------------------------------ */
.ent-section { padding: 3.5rem 0; }
.ent-section-head { max-width: 620px; margin: 0 auto 2rem; text-align: center; }
.ent-section-head h2 { margin: 0.4rem 0 0; font-size: clamp(1.6rem, 3.5vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.02em; }
.ent-section-head p { margin: 0.75rem 0 0; color: var(--smo-gray); }

.ent-objectifs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .ent-objectifs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ent-objectifs { grid-template-columns: 1fr; } }

.ent-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--smo-white);
    border: 1px solid var(--smo-border);
    border-radius: 10px;
    padding: 1.5rem 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ent-card:hover, .ent-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--smo-yellow);
    box-shadow: 0 12px 24px -14px rgba(35, 31, 32, 0.3);
}
.ent-card .ent-icon { font-size: 1.9rem; }
.ent-card h3 { margin: 0; font-size: 1.15rem; }
.ent-card p { margin: 0; color: var(--smo-gray); font-size: 0.9rem; flex: 1; }
.ent-card .ent-card-link { font-weight: 700; font-size: 0.85rem; }
.ent-card--featured {
    background: var(--smo-black);
    border-color: var(--smo-black);
    color: var(--smo-white);
}
.ent-card--featured p { color: var(--smo-gray-light); }
.ent-card--featured .ent-card-link { color: var(--smo-yellow); }

/* --- L'expérience Stade Montois ----------------------------------------- */
.ent-experience { background: var(--smo-gray-light); }
.ent-experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 780px) { .ent-experience-grid { grid-template-columns: 1fr; } }
.ent-experience-grid h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    text-transform: uppercase;
    line-height: 1.15;
}
.ent-experience-grid h2 em { font-style: normal; color: var(--smo-yellow-dark); }
.ent-experience-grid p { color: var(--smo-gray); font-size: 1.02rem; }
.ent-experience-grid p + p { margin-top: 0.9rem; }

/* --- Défi Stade Montois (fond noir) -------------------------------------- */
.ent-defi { background: var(--smo-black); color: var(--smo-white); }
.ent-defi .ent-eyebrow { color: var(--smo-yellow); }
.ent-defi h2 { color: var(--smo-white); }
.ent-defi p.ent-lede { color: var(--smo-gray-light); max-width: 56ch; margin: 0.9rem auto 0; text-align: center; }
.ent-epreuves {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 2rem 0;
}
@media (max-width: 700px) { .ent-epreuves { grid-template-columns: repeat(2, 1fr); } }
.ent-epreuve {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.ent-epreuve .ent-icon { font-size: 1.4rem; }
.ent-defi-foot { text-align: center; }
.ent-defi-foot .ent-fine { display: block; margin-top: 0.75rem; color: var(--smo-gray-light); font-size: 0.85rem; }

/* --- LÜ (fond noir) ------------------------------------------------------ */
.ent-lu { background: var(--smo-black); color: var(--smo-white); }
.ent-lu-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .ent-lu-grid { grid-template-columns: 1fr; } }
.ent-lu .ent-eyebrow { color: var(--smo-yellow); }
.ent-lu h2 { color: var(--smo-white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.4rem 0 0; text-transform: uppercase; }
.ent-lu p.ent-lede { color: var(--smo-gray-light); margin-top: 0.9rem; max-width: 46ch; }
.ent-lu-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1.5rem; }
.ent-lu-feat {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-weight: 700;
    font-size: 0.88rem;
}
.ent-lu-panel {
    background: linear-gradient(155deg, #3a3235, var(--smo-black) 65%);
    border: 1px solid rgba(255, 210, 3, 0.3);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}
.ent-lu-panel .ent-lu-emoji { font-size: 3.5rem; }
.ent-lu-panel p { margin: 1rem 0 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smo-gray-light); font-weight: 700; }

/* --- Toute l'année (timeline) -------------------------------------------- */
.ent-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 780px) { .ent-timeline { grid-template-columns: 1fr; } }
.ent-tl-step { text-align: center; }
.ent-tl-num {
    width: 46px; height: 46px; margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--smo-black);
    color: var(--smo-yellow);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.15rem;
}
.ent-tl-step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.ent-tl-step p { margin: 0; color: var(--smo-gray); font-size: 0.88rem; }

/* --- Ils nous font confiance --------------------------------------------- */
.ent-confiance { background: var(--smo-gray-light); text-align: center; }
.ent-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    margin-top: 1.75rem;
}
.ent-logos img { max-height: 44px; width: auto; object-fit: contain; }

/* --- CTA final ------------------------------------------------------------ */
.ent-final { background: var(--smo-yellow); color: var(--smo-black); }
.ent-final-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .ent-final-grid { grid-template-columns: 1fr; } }
.ent-final h2 { margin: 0.4rem 0 0; font-size: clamp(1.8rem, 4vw, 2.5rem); text-transform: uppercase; }
.ent-final p.ent-lede { color: #4a4142; font-weight: 600; margin-top: 0.75rem; max-width: 46ch; }
.ent-final .ent-eyebrow { color: rgba(35, 31, 32, 0.7); }
.ent-final-cta { margin-top: 1.75rem; }
.ent-contacts { display: flex; flex-direction: column; gap: 0.85rem; }
.ent-contact-card {
    background: var(--smo-black);
    color: var(--smo-white);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ent-contact-card .ent-name { font-weight: 800; }
.ent-contact-card .ent-role { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--smo-gray-light); margin-top: 0.15rem; }
.ent-contact-card a { color: var(--smo-yellow); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ent-contact-card a:hover { text-decoration: underline; }

/* --- Modale du formulaire "Construire mon projet" ------------------------ */
.ent-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(35, 31, 32, 0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    z-index: 1000;
}
/* L'attribut hidden doit rester prioritaire sur le display:flex ci-dessus
   (sinon la modale s'affiche seule à l'ouverture de la page). */
.ent-modal-backdrop[hidden] {
    display: none;
}
.ent-modal {
    background: var(--smo-white);
    color: var(--smo-text);
    border-radius: 12px;
    max-width: 540px; width: 100%;
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.4);
}
.ent-modal-head {
    padding: 1.5rem 1.5rem 0;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.ent-modal-head h2 { margin: 0; font-size: 1.4rem; }
.ent-modal-close {
    background: var(--smo-gray-light);
    border: none; border-radius: 8px;
    width: 32px; height: 32px;
    font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.ent-progress { display: flex; gap: 5px; padding: 1.1rem 1.5rem 0; }
.ent-progress i { flex: 1; height: 4px; border-radius: 999px; background: var(--smo-border); font-style: normal; }
.ent-progress i.done { background: var(--smo-yellow); }
.ent-modal-body { padding: 1.35rem 1.5rem 1.5rem; }
.ent-step-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smo-gray); margin: 0 0 0.9rem; }
.ent-field { margin-bottom: 0.9rem; }
.ent-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.ent-field input, .ent-field textarea {
    width: 100%; padding: 0.65rem 0.75rem;
    border-radius: 6px; border: 1.5px solid var(--smo-border);
    font-family: inherit; font-size: 0.94rem;
}
.ent-field input:focus, .ent-field textarea:focus { border-color: var(--smo-yellow-dark); outline: none; }
.ent-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 460px) { .ent-row2 { grid-template-columns: 1fr; } }
.ent-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 460px) { .ent-choices { grid-template-columns: 1fr; } }
.ent-choice {
    border: 1.5px solid var(--smo-border); border-radius: 8px;
    padding: 0.7rem 0.85rem; cursor: pointer;
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; font-weight: 600;
}
.ent-choice input { width: auto; }
.ent-recap { background: var(--smo-gray-light); border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.86rem; color: var(--smo-gray); line-height: 1.7; }
.ent-recap b { color: var(--smo-text); }
.ent-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; }
.ent-step-count { font-size: 0.8rem; color: var(--smo-gray); font-weight: 600; }
.ent-field-error { border-color: #c0392b !important; }

.ent-form-error {
    background: #fbeaea;
    border: 1px solid #e0b4b4;
    color: #a33a3a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.ent-form-success { text-align: center; padding: 1.5rem 0.5rem; }
.ent-form-success .ent-success-icon { font-size: 2.5rem; }
.ent-form-success h3 { margin: 0.75rem 0 0.35rem; font-size: 1.25rem; }
.ent-form-success p { margin: 0 0 1.25rem; color: var(--smo-gray); }

.ent-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }
