/* =========================================================
   Ridialass-Networking-Jobs — Clean style.css (Bootstrap-first)
   Objectif :
   - Bootstrap gère la navbar, la grille, les forms, les modals
   - Ce fichier ne stylise que tes composants custom (hero/cards/sections)
   - Typo harmonisée sur tout le site
   - Anchors fiables avec navbar fixed-top (scroll-margin-top)
   ========================================================= */

/* ---------- Base / Tokens ---------- */

:root {
    --container: 1100px;
    --primary: #1f4f8d;
    --primary-dark: #163b68;
    --primary-light: #e7f0ff;
    --text: #222;
    --muted: #666;
    --bg: #f7f7fa;
    --white: #fff;
    --border: #ddd;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
    /* hauteur approximative navbar fixed-top (à ajuster si besoin) */
    --nav-offset: 88px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    /* utile si tu as une navbar fixed-top Bootstrap */
    padding-top: var(--nav-offset);
}

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Les sections ancrées doivent scroller sous la navbar fixed-top */
section[id] {
    scroll-margin-top: calc(var(--nav-offset) + 12px);
}

/* ---------- Layout global ---------- */

main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

section {
    margin-bottom: 2.5rem;
}

    section h2 {
        font-size: 1.6rem;
        font-weight: 800;
        margin: 0 0 0.5rem;
        letter-spacing: -0.02em;
    }

.section-sub {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

/* ---------- Boutons custom (tu peux garder Bootstrap btn si tu veux) ---------- */

.btn-linkedin {
    background: #0A66C2;
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

    .btn-linkedin:hover {
        background: #084d92;
    }

/* ---------- Lang switch (Bootstrap buttons) ---------- */

.lang-switch {
    display: flex;
    gap: 0.35rem;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* (optionnel) amélioration visuelle lien actif navbar bootstrap */
.navbar-nav .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13,110,253,0.10);
    border-radius: 6px;
}

/* ---------- Hero ---------- */

.hero {
    background: radial-gradient(circle at top left, var(--primary-light), var(--bg));
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.25rem 3.5rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 0.75rem;
    color: #111;
    letter-spacing: -0.03em;
}

.hero-highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 34rem;
    margin: 0;
}

.hero-tags {
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-side {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.hero-side h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
}

.hero-contact-line {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

    .hero-contact-line span {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        justify-content: center;
    }

.hero-side-text {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-badge {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

/* ---------- Services (attention: .card existe aussi dans Bootstrap)
   On SCOPE pour éviter de casser d'autres cards Bootstrap
---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

    .services-grid > .service-card {
        background: var(--white);
        border-radius: 0.9rem;
        padding: 1rem;
        border: 1px solid var(--border);
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        display: flex;
        flex-direction: column;
        min-height: 350px;
    }

       /* .services-grid > .service-card h3 {
            margin: 8px 0 10px;
            font-size: 1.35rem;
            font-weight: 900;
            letter-spacing: -0.02em;
        }*/

    .services-grid > .service-card p {
        font-size: 0.95rem;
        color: var(--muted);
        margin: 0;
        flex: 1;
    }

    .services-grid > .service-card ul {
        margin: 0.75rem 0 0;
        padding-left: 1.1rem;
        font-size: 0.95rem;
        flex: 1;
    }

        .services-grid > .service-card ul li {
            margin-bottom: 0.25rem;
        }

    .services-grid > .service-card .btn {
        margin-top: auto;
    }

/* ---------- Projects / Réalisations ---------- */

.projects-section {
    max-width: var(--container);
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* ton bloc final (projects-*) */
.projects-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 560px;
}

.projects-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex: 0 0 160px;
}

    .projects-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: grayscale(100%);
        transition: filter .25s ease;
    }

.projects-card:hover .projects-image img {
    filter: grayscale(0%);
}

.projects-badge {
    margin: 18px 18px 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0d6efd; /* Bootstrap primary */
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.projects-body {
    padding: 14px 18px 0 18px;
}

/*.projects-title {
    margin: 8px 0 10px;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}*/

.projects-intro {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.6;
}

.projects-list {
    margin-top: auto;
    padding: 18px 18px 18px 36px;
}

.projects-footer {
    padding: 0 18px 18px 18px;
}

.projects-link {
    display: inline-block;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 700;
}

/* ---------- About ---------- */


/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    border-radius: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--border);
}

    .contact-card p {
        font-size: 0.95rem;
    }

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

/* Tu peux laisser Bootstrap gérer inputs,
   mais on garde un style "safe" si certains champs ne sont pas bootstrapés */
/*label {
    font-size: 0.88rem;
    font-weight: 800;
}

input, textarea {
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 120px;
}*/

.form-select {
    width: 100%;
    padding: 0.50rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    background: white;
}

/* Map responsive */
/*.map-responsive {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    padding-top: 56.25%;*/ /* 16:9 par défaut */
/*}

    .map-responsive iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }*/

/* Variante fill pour la map dans une card */
.contact-card--map {
    padding: 0;
    overflow: hidden;
}

/* ---------- Toast / Popup succès ---------- */

#toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#toast-success {
    background: #2e7d32;
    color: #fff;
    padding: 18px 26px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    #toast-success.fade-out {
        opacity: 0;
        transform: scale(0.96);
    }

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--border);
    background: var(--white);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
    body {
        /* si la navbar est plus haute sur mobile, ajuste ici */
        padding-top: 78px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 2.5rem;
    }

    .hero-side {
        order: -1;
    }

    .about-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .projects-title {
        font-size: 1.4rem;
    }
}
