/* ==================================================
   VARIABLES
================================================== */

:root {
    --bg: #f7f8fa;
    --body-text: #1f2937;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --muted2: #4b5563;
    --border: #e5e7eb;
    --border-hover: #cbd5e1;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #60a5fa;
    --white: #ffffff;
    --footer-text: #9ca3af;
}

/* ==================================================
   RESET
================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--body-text); line-height: 1.5; }
ul { color: var(--muted); list-style-type: none; }

/* ==================================================
   NAVBAR
================================================== */

header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); }
nav { max-width: 1150px; height: 65px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
nav h2 { font-size: 21px; color: var(--dark); }
nav ul { display: flex; align-items: center; gap: 20px; }
nav ul li a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
nav ul li a:hover { color: var(--blue); }

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

section { width: 100%; max-width: 1150px; margin: auto; padding: 25px 20px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 17px; }
.section-title::after { content: ""; display: block; width: 42px; height: 3px; background: var(--blue); margin-top: 5px; }

/* ==================================================
   ACCUEIL
================================================== */

.hero { display: flex; align-items: center; padding: 30px 0 20px; }
.hero > div { max-width: 720px; }
.small-title { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; }
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1; color: var(--dark); margin-bottom: 10px; }
.hero h1 span { color: var(--blue); }
.hero h3 { font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.hero p:not(.small-title) { max-width: 680px; color: var(--muted); font-size: 16px; margin-bottom: 16px; }

/* ==================================================
   BOUTON
================================================== */

.button { display: inline-block; padding: 10px 20px; background: var(--blue); color: var(--white); border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 600; transition: background 0.2s ease; }
.button:hover { background: var(--blue-dark); }

/* ==================================================
   FORMATION + EXPERIENCE
================================================== */

.formation-experience { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 10px 0 20px; }
.column { min-width: 0; }

/* ==================================================
   CARTES
================================================== */

.card { background: var(--white); padding: 18px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; transition: border-color 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.card h3 { font-size: 19px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.card p { color: var(--muted); font-size: 15px; }
.date { color: var(--blue) !important; font-size: 14px !important; font-weight: 600; margin-bottom: 6px; }
.card ul { margin: 8px 0 0 19px; color: var(--muted2); font-size: 15px; }
.card li { margin-bottom: 2px; }

/* ==================================================
   COMPETENCES
================================================== */

#competences { padding: 18px 0; }
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skill { background: var(--white); padding: 17px; border: 1px solid var(--border); border-radius: 8px; }
.skill h3 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.skill p { color: var(--muted); font-size: 14px; }

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

/* ==================================================
   CERTIFICATIONS
================================================== */

#certifications { padding: 18px 0; }
#certifications .card { display: inline-block; width: calc(50% - 7px); vertical-align: top; margin-right: 7px; }
#certifications .card:nth-child(3) { margin-right: 0; }

/* ==================================================
   PROJETS
================================================== */

#projets { padding: 18px 0 25px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project { background: var(--white); padding: 18px; border: 1px solid var(--border); border-radius: 8px; }
.project h3 { font-size: 19px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.project p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.project span { color: var(--blue); font-size: 13px; font-weight: 600; }

#procedures { padding: 18px 0 25px; }

#veille { padding: 18px 0 25px; }


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

footer { background: var(--dark); color: var(--footer-text); text-align: center; padding: 20px; font-size: 14px; }
footer p { margin-bottom: 4px; }
footer p:last-child { margin-bottom: 0; }
footer a { color: var(--white); text-decoration: none; }
footer a:hover { color: var(--blue-light); }

/* ==================================================
   TABLETTE (≤850px)
================================================== */

@media (max-width: 850px) {
    nav { height: auto; padding: 13px 20px; flex-direction: column; gap: 10px; }
    nav ul { gap: 13px; flex-wrap: wrap; justify-content: center; }
    nav ul li a { font-size: 14px; }
    .hero { padding-top: 25px; }
    .hero h1 { font-size: 48px; }
    .formation-experience { grid-template-columns: 1fr; gap: 10px; }
    .skills, .projects { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================================
   MOBILE (≤550px)
================================================== */

@media (max-width: 550px) {
    section { padding-left: 15px; padding-right: 15px; }
    nav h2 { font-size: 20px; }
    nav ul { gap: 9px; }
    nav ul li a { font-size: 13px; }
    .hero { padding: 20px 0 15px; }
    .small-title { font-size: 13px; }
    .hero h1 { font-size: 40px; }
    .hero h3 { font-size: 19px; }
    .hero p:not(.small-title) { font-size: 15px; }
    .section-title { font-size: 25px; }
    .skills, .projects { grid-template-columns: 1fr; }
    #certifications .card { width: 100%; margin-right: 0; }
    .card h3 { font-size: 18px; }
    .card p, .card ul { font-size: 14px; }
}