/* ---------------------------
    Ambition+ — style.css
    Couleurs, typographie, layout
    --------------------------- */

/* — Reset & variables — */
:root {
    --orange: #ff7a00;
    --green: #0a7b39;
    --ivory: #fff8f0;
    --dark: #222222;
    --muted: #6b6b6b;
    --card: #ffffff;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --max-width: 1100px;
    --container-padding: 1.25rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    background: var(--ivory);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: 16px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.site-header {
    background: linear-gradient(90deg, var(--orange), var(--green));
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow)
}

.brand-text .site-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.4px
}

.site-tag {
    display: flex;
    font-size: 1.0rem;
    opacity: 1.0;
    color: rgba(255, 255, 255, 0.8);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px
}

.main-nav .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all .18s
}

.main-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08)
}

.btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700
}

.btn-primary {
    background: white;
    color: var(--orange)
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.18);
    color: white;
    padding: 0.4rem 0.8rem
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.06)
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: white;
    font-size: 1.3rem;
    padding: 6px
}

/* Hero */
.section {
    padding: 3.2rem 0
}

.hero {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.95) 0%, rgba(10, 123, 57, 0.95) 100%);
    color: white;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 0
}

.hero-title {
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.8rem
}

.hero-title .accent {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.08rem 0.4rem;
    border-radius: 6px;
    color: white
}

.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem
}

/* CTA area inside hero */
.hero-ctas {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1rem
}

.highlight-quote {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.8rem;
    display: inline-block;
}

.highlight-quote cite {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.6rem
}

.highlight cite {
    display: block;
    font-size: 0.85rem;
    color: rgba(190, 8, 8, 0.85);
    margin-top: 0.6rem
}

/* Hero image */
.device-mock {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto
}

/* Sections titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.4rem
}

.section-sub {
    color: var(--muted);
    margin-bottom: 1.2rem
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

.card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12)
}

.card-title {
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.35rem
}

/* Accent section (Puce) */
.accent-section {
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.95));
    border-top: 4px solid rgba(10, 123, 57, 0.06)
}

/* Two-column grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.2rem;
    align-items: center
}

.feature-illustration {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: var(--shadow)
}

/* Check list style */
.check-list {
    list-style: none;
    padding-left: 0
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.6rem;
    color: var(--dark)
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    font-weight: 700
}

/* Apps cards */
.apps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem
}

.app-card {
    padding: 1rem;
    background: linear-gradient(180deg, #fff, #fff);
    border-radius: 12px;
    box-shadow: var(--shadow)
}

.app-card h4 {
    font-size: 1.02rem;
    color: var(--green);
    margin-bottom: 0.45rem
}

.app-card p {
    color: var(--muted);
    margin-bottom: 0.8rem
}

/* Contact form */
.contact-form {
    background: var(--card);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow)
}

.contact-form .form-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.9rem
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    font-size: 0.98rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.6rem
}

.mailto {
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none
}

/* Footer */
.site-footer {
    background: var(--orange);
    color: rgb(194, 180, 180);
    padding: 1rem 0;
    margin-top: 1.8rem
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap
}

.site-footer a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600
}

/* Typography helpers */
h1,
h2,
h3,
h4,
h5 {
    line-height: 1.15
}

small {
    font-size: 0.85rem;
    color: var(--muted)
}

p {
    margin: 0 0 0.8rem 0;
    color: var(--dark)
}

/* Citation style (important) */
blockquote {
    border-left: 4px solid var(--orange);
    padding: 0.6rem 0.9rem;
    margin: 0.6rem 0;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01))
}

blockquote cite {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted)
}

/* Small title / label */
.small-title {
    font-weight: 700;
    color: var(--green);
    font-size: 0.95rem;
    margin-bottom: 0.35rem
}

/* Utilities */
.text-center {
    text-align: center
}

.mt-1 {
    margin-top: 1rem
}

.mb-1 {
    margin-bottom: 1rem
}

/* Responsive */
@media (max-width:1000px) {
    .hero-grid {
        grid-template-columns: 1fr 320px
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .hero-title {
        font-size: 1.85rem
    }
}

@media (max-width:780px) {

    /* Correction 2 : Utiliser le padding du container pour l'en-tête */
    .header-inner {
        padding: 0.6rem var(--container-padding)
    }

    /* Correction 3B : Préparation au centrage du titre */
    .brand-text {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 150px;
        z-index: 1;
        /* S'assure qu'il est sous le logo et le menu toggle */
    }

    .main-nav {
        position: fixed;
        right: 12px;
        top: 72px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff);
        padding: 12px;
        border-radius: 12px;
        flex-direction: column;
        box-shadow: var(--shadow);
        display: none
    }

    .main-nav.open {
        display: flex
    }

    /* Correction 1 : Contraste du menu ouvert (Texte noir sur fond blanc) */
    .main-nav.open .nav-link {
        color: var(--dark) !important;
    }

    .main-nav.open .nav-link:hover {
        background: rgba(0, 0, 0, 0.08);
    }

    .main-nav.open .btn-outline {
        color: var(--dark) !important;
        border-color: rgba(0, 0, 0, 0.18) !important;
    }

    .nav-toggle {
        display: block
    }

    /* Correction 2 : Ajouter du padding à la grille Hero pour éviter le débordement */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2.4rem var(--container-padding);
    }

    .device-mock {
        max-width: 280px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .hero-title {
        font-size: 1.55rem
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    /* Répétition de la règle pour le `grid-2` */
}

@media (max-width:420px) {
    body {
        font-size: 15px
    }

    /* Correction 3B : Centrage final du titre et masquage du slogan */
    .brand-text .site-title {
        font-size: 1.2rem;
    }

    .site-tag {
        display: none;
    }

    .logo {
        width: 42px;
        height: 42px
    }
}

/* Style de base des boutons de plateforme */
.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    list-style: none;
    margin-top: 15px;
}

.platform-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
    border: 2px solid transparent;
    text-align: center;
    min-width: 120px;
}

.platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-concours {
    background-color: #FF8C00;
    color: white !important;
}

.btn-bac {
    background-color: white;
    color: #333 !important;
    border-color: #ddd;
}

.btn-bepc {
    background-color: #074220;
    color: white !important;
}