/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0b0f19;
    --background-light: #111827;
    --primary: #4f8cff;
    --primary-hover: #76a5ff;
    --text: #ffffff;
    --text-secondary: #a7b0c0;
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}


/* =========================
   HEADER
========================= */

.header {
    height: 80px;
    padding: 0 1%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
}

.navbar {
    display: flex;
    gap: 25px;
}

.navbar a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--primary);
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}


/* =========================
   PHOTO ET PRESENTATION
========================= */

.photo-profil {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 20px auto;
}

.presentation {
    display: grid;
    grid-template-columns: 200px minmax(350px, 1fr) 200px;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 30px auto 0;
}

.presentation-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-text {
    width: 100%;
}

.presentation-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
}

.presentation-buttons .button {
    text-align: center;
    width: 100%;
}

.texte-presentation {
    max-width: 450px;
}


/* =========================
   SECTIONS
========================= */

.hero,
.slide {
    min-height: calc(100vh - 80px);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    text-align: center;
    background: radial-gradient(
        circle at center,
        rgba(79, 140, 255, 0.12),
        transparent 40%
    );
}

.hero-content {
    max-width: 850px;
    text-align: center;
}

.hello {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
}

h1 span {
    color: var(--primary);
}

.description {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.intro {
    max-width: 650px;
    margin: 0 auto 30px;
}


/* =========================
   BOUTONS
========================= */

.button {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--text);
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}


/* =========================
   SECTIONS ET CARTES
========================= */

.section {
    padding: 80px 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    color: var(--text);
    position: relative;
}

.section-title::before {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 15px;
    border-radius: 10px;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 10px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    padding: 25px;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
}

.card h3 {
    text-align: center;
    color: var(--primary);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.projects-grid .card p {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

/* =========================
   PARCOURS
========================= */

.parcours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.parcours-colonne {
    width: 100%;
}

.parcours-colonne > h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 10px;
}

.parcours-colonne .timeline {
    max-width: 100%;
    margin-top: 30px;
}


/* =========================
   FRISE VERTICALE
========================= */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding-left: 60px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -51px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--background);
}

.timeline-date {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    padding: 25px;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.timeline-content h3 {
    color: var(--primary);
}


/* =========================
   MODALES
========================= */

.modale,
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modale {
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
}

.image-modal {
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
}

.modale-contenu {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
    background: var(--background-light);
    border: 1px solid var(--primary);
    border-radius: 15px;
}

.modale-contenu h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.3rem;
    margin-bottom: 40px;
    position: relative;
}

.modale-contenu h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 6px;
    margin: 12px auto 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        var(--primary) 0%,
        var(--primary) 35%,
        transparent 100%
    );
}

.modale-contenu h3 {
    text-align: center;
    color: var(--text);
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 20px;
    position: relative;
}

.titre-avec-icone {
    position: relative;
    display: inline-block;
}

.titre-avec-icone i {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.modale-contenu h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        var(--primary) 0%,
        var(--primary) 35%,
        transparent 100%
    );
}

.modale-contenu p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 25px;
}

.fermer,
.fermer-image {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.fermer {
    font-size: 2rem;
}

.fermer-image {
    top: 20px;
    right: 30px;
    color: white;
    font-size: 45px;
}

.fermer-image:hover {
    color: var(--primary);
}

.fermer:hover {
    color: var(--primary);
}

.modale-fermer {
    color: var(--text-secondary);
    font-size: 2rem;
    transition: 0.3s ease;
}

.modale-fermer:hover {
    color: var(--primary);
    transform: scale(1.15);
}
/* =========================
   CAROUSEL
========================= */

.modale-contenu .carousel {
    width: 100%;
    max-width: 1000px;
    margin: 25px auto;
}

.modale-contenu .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next,
.fleche-image {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.fleche-image:hover {
    background: var(--primary-hover);
}

.carousel-control-prev {
    left: 1px;
}

.carousel-control-next {
    right: 1px;
}

.modale-contenu .carousel.slide {
    min-height: auto;
    padding: 0;
    display: block;
}

/* =========================
   IMAGE AGRANDIE
========================= */

.image-modal img {
    max-width: 85%;
    max-height: 90vh;
    object-fit: contain;
}

.fleche-image {
    z-index: 2001;
    font-size: 28px;
}

.fleche-image.precedente {
    left: 25px;
}

.fleche-image.suivante {
    right: 25px;
}

.card,
.image-cliquable {
    cursor: pointer;
}

/* Effet au survol des compétences techniques */

.projects-grid .card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.15);
}

/* ================================
   Outils et logiciels
   ================================ */

.outil-card {
    padding: 30px;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.3s ease;
}

.outil-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.15);
}

.outils-descriptions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.outil-card h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.outil-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* ================================
   Bandeau des logos
   ================================ */

.outils-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 25px 30px;
}

.outils-logos img {
    width: 140px;
    height: 100px;
    object-fit: contain;
    transition: 0.3s ease;
}

.outils-logos img:hover {
    transform: scale(1.15);
}

/* ================================
   Compétences professionnelles
   ================================ */

.competences-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.competence-pro-card {
    padding: 30px 25px;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
}

.competence-pro-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.15);
}

.competence-pro-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.competence-pro-card h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.competence-pro-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Version mobile */
@media (max-width: 800px) {

    .outils-logos {
        gap: 20px;
        padding: 20px 10px;
    }

    .outils-logos img {
        width: 110px;
        height: 80px;
    }

    .outils-descriptions {
        grid-template-columns: 1fr;
    }

    .outil-card {
        padding: 25px;
    }

    .competences-pro {
    grid-template-columns: 1fr;
}

}

/* =========================
   FOOTER
========================= */

footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}


/* =========================
   VERSION MOBILE
========================= */

@media (max-width: 800px) {

    .header {
        height: 70px;
        padding: 0 20px;
    }

    .navbar {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--background-light);
        transform: translateY(-150%);
        transition: transform 0.3s;
        z-index: 100;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-menu a {
        padding: 18px 25px;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }


    /* =========================
       PRESENTATION MOBILE
    ========================= */

    .presentation {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
        text-align: center;
    }

    .presentation-photo {
        order: 1;
    }

    .presentation-text {
        order: 2;
    }

    .presentation-buttons {
        order: 3;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }


    /* =========================
       SECTIONS MOBILE
    ========================= */

    .hero,
    .slide {
        min-height: auto;
        padding: 90px 20px 60px;
    }

    .section {
        padding: 60px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }

    .description {
        font-size: 1.1rem;
    }


    /* =========================
       PARCOURS MOBILE
    ========================= */

    .parcours {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .parcours-colonne {
        width: 100%;
    }

    .parcours-colonne .timeline {
        margin-top: 25px;
    }


    /* =========================
       FRISE MOBILE
    ========================= */

    .timeline {
        padding-left: 45px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item::before {
        left: -40px;
    }
}


/* =========================
   BTS & ENTREPRISE
========================= */

.etablissement {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: 70px;
    max-width: 1100px;
    margin: 0 auto;
}

.etablissement-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.etablissement-logo img {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.etablissement-contenu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.etablissement-contenu .card {
    width: 100%;
}

.etablissement-contenu .card h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.liste-competences {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* =========================
   BTS & ENTREPRISE MOBILE
========================= */

@media (max-width: 800px) {

    .etablissement {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .etablissement-logo img {
        width: 160px;
    }

    .etablissement-contenu {
        text-align: left;
    }

}

/* ================================
   VEILLE TECHNOLOGIQUE
   ================================ */

/* Cartes de veille */

.veille-card p {
    text-align: left;
}

/* Boutons des articles et outils */

.button-secondary {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: bold;
    transition: 0.3s ease;
}

.button-secondary:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-3px);
}

/* ================================
   TABLEAU DE SYNTHÈSE
   ================================ */

.tableau-pdf {
    width: 100%;
    height: 80vh;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    background: var(--background-light);
}

.tableau-pdf iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tableau-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 50px 40px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-column p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.footer-column a {

    color: var(--text-secondary);

    transition: 0.3s ease;

    width: fit-content;

    overflow-wrap: anywhere;

}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.footer-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.footer-nav-links div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-content h1 {

    font-size: clamp(32px, 8vw, 60px);

    line-height: 1.2;

    overflow-wrap: break-word;

}

.hero-content h1 span {

    display: inline-block;

}

/* ================================
   FOOTER - MOBILE
   ================================ */

@media (max-width: 800px) {

    .footer {
        padding: 40px 25px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-column a {
        width: auto;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-nav-links {
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
    text-align: left;
}

.hero-content h1 {

    font-size: clamp(32px, 10vw, 42px);

    line-height: 1.2;

    overflow-wrap: break-word;

}

.section-title {

    font-size: 2rem;

    line-height: 1.3;

}

}