/* ============================================================
   style.css — Portfolio BTS SIO · Antoine CHEFDEVILLE
   ============================================================ */

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

@media (max-width: 768px) {
  .nav-burger { display: flex; }
}

:root {
  --navy:   #1a3557;
  --blue:   #2d6a9f;
  --light:  #e8f0f7;
  --white:  #ffffff;
  --gray:   #555e6a;
  --border: #c8d6e5;
  --accent: #d4811a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: #222;
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAVBAR ─────────────────────────────────────────────── */


nav {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1100px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 62px;
}
.nav-logo {
  font-family: 'Merriweather', serif;
  color: var(--white); font-size: 1.15rem; font-weight: 700;
  letter-spacing: .5px; text-decoration: none;
}
.nav-logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 4px; }
nav a {
  color: #c5d8ec; text-decoration: none;
  padding: 6px 14px; border-radius: 3px;
  font-size: .95rem; transition: background .2s, color .2s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,.13); color: var(--white);
}
nav a.active {
  border-bottom: 2px solid var(--accent);
  border-radius: 3px 3px 0 0;
}

/* ── PAGE HEADER (banner sous la nav) ──────────────────── */
.page-header {
  background: var(--navy); color: var(--white);
  padding: 52px 24px 48px; text-align: center;
  border-bottom: 4px solid var(--border);
}
.page-header .badge {
  display: inline-block;
  background: var(--accent); color: var(--white);
  font-size: .75rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 2px; margin-bottom: 18px;
}
.page-header h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.25; margin-bottom: 12px;
}
.page-header p { font-size: 1.05rem; color: #aac4dc; max-width: 520px; margin: auto; }

/* ── SECTION LAYOUT ─────────────────────────────────────── */
section { padding: 62px 24px; }
section.alt { background: var(--light); }
.container { max-width: 1000px; margin: auto; }
.section-title {
  font-family: 'Merriweather', serif;
  font-size: 1.65rem; color: var(--navy); margin-bottom: 10px;
}
.section-title::after {
  content: ''; display: block;
  width: 48px; height: 3px;
  background: var(--accent); margin-top: 10px;
}
.section-intro { color: var(--gray); margin-bottom: 36px; max-width: 620px; }

/* ── BOUTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none;
  padding: 11px 26px; border-radius: 3px;
  font-weight: 600; font-size: .95rem;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary  { background: var(--accent); color: var(--white); }
.btn-outline  { border: 2px solid #aac4dc; color: #aac4dc; }
.btn-navy     { background: var(--navy); color: var(--white); }
.btn-group    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── CARDS GÉNÉRIQUES ────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  padding: 28px; border-radius: 2px;
}
.card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem; color: var(--navy); margin-bottom: 12px;
}
.card p { color: var(--gray); font-size: .96rem; }

/* ── LISTE INFOS ─────────────────────────────────────────── */
.info-list { list-style: none; }
.info-list li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; font-size: .95rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list strong { color: var(--navy); min-width: 110px; display: inline-block; }

/* ── SKILL BARS ──────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.skill-box {
  background: var(--white); border: 1px solid var(--border);
  padding: 22px 20px; border-radius: 2px;
}
.skill-box h4 {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--blue); margin-bottom: 14px;
}
.skill-item { margin-bottom: 12px; }
.skill-item span { font-size: .9rem; color: #333; display: flex; justify-content: space-between; }
.bar-track  { background: var(--border); height: 7px; border-radius: 4px; margin-top: 5px; }
.bar-fill   { height: 100%; border-radius: 4px; background: var(--blue); }

/* ── PROJETS ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover {
  box-shadow: 0 6px 22px rgba(26,53,87,.12);
  transform: translateY(-3px);
}
.project-card-header {
  background: var(--navy); color: var(--white); padding: 18px 20px;
}
.project-card-header .tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .9px; color: var(--accent); margin-bottom: 6px;
}
.project-card-header h3 { font-family: 'Merriweather', serif; font-size: 1rem; }
.project-card-body { padding: 18px 20px; flex: 1; }
.project-card-body p { color: var(--gray); font-size: .93rem; }
.tech-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag {
  background: var(--light); border: 1px solid var(--border);
  color: var(--navy); font-size: .78rem; padding: 3px 10px; border-radius: 2px;
}
.project-card-footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
.project-card-footer a {
  font-size: .85rem; font-weight: 600; color: var(--blue);
  text-decoration: none;
}
.project-card-footer a:hover { text-decoration: underline; }

/* ── FILTRES PROJETS ─────────────────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--white); color: var(--gray); cursor: pointer;
  font-family: 'Source Sans 3', sans-serif; font-size: .88rem;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { margin-bottom: 32px; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--accent); margin-bottom: 4px;
}
.timeline-item h3 {
  font-family: 'Merriweather', serif; color: var(--navy);
  font-size: 1rem; margin-bottom: 4px;
}
.timeline-item p { color: var(--gray); font-size: .93rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media(max-width:680px){ .contact-wrap { grid-template-columns: 1fr; } }
.contact-info p { color: var(--gray); margin-bottom: 24px; }
.contact-info ul { list-style: none; }
.contact-info li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.contact-info li:last-child { border: none; }
.contact-icon {
  width: 34px; height: 34px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--white); flex-shrink: 0;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--navy); margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif; font-size: .95rem;
  color: #222; background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,106,159,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  background: var(--navy); color: var(--white);
  border: none; cursor: pointer; width: 100%;
  padding: 12px; border-radius: 3px; font-size: 1rem;
  font-weight: 600; font-family: inherit;
  transition: background .2s;
}
.btn-submit:hover { background: var(--blue); }

/* ── GRILLE GÉNÉRIQUE ────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media(max-width:680px){ .two-col { grid-template-columns: 1fr; } }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #111d2b; color: #7a97b3;
  text-align: center; padding: 28px 24px;
  font-size: .88rem; border-top: 3px solid var(--accent);
}
footer strong { color: #aac4dc; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  background: var(--light); border-bottom: 1px solid var(--border);
  padding: 9px 24px; font-size: .85rem;
}
.breadcrumb .container { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray); }

/* ── RESPONSIVE NAV ──────────────────────────────────────── */
@media(max-width: 600px){
  nav ul { gap: 2px; }
  nav a  { padding: 5px 9px; font-size: .82rem; }
  .nav-logo { font-size: 1rem; }
}


/* MOBILE */

/* Styles mobile en premier (mobile-first) */
.container { width: 100%; padding: 0 16px; }

/* Tablette */
@media (min-width: 768px) {
  .container { max-width: 960px; margin: 0 auto; }
}

/* Desktop */
@media (min-width: 1024px) {
  .container { max-width: 1200px; }
}


img { max-width: 100%; height: auto; }


html { font-size: 16px; }

@media (max-width: 768px) {
  html { font-size: 14px; }
  h1 { font-size: 1.8rem; }
}



.nav-menu { display: flex; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: block; }
}



.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

