/* ============================================================
   EVAN BENOIT — PORTFOLIO
   Feuille de style partagée
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy:         #1a1a2e;
  --navy-light:   #16213e;
  --accent:       #00adb5;
  --accent-hover: #009aa1;
  --bg:           #f8f9fb;
  --white:        #ffffff;
  --text:         #2d3748;
  --text-muted:   #718096;
  --border:       #e2e8f0;
  --nav-h:        70px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --transition:   0.3s ease;
  --max-w:        1100px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 90px 0; }
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p  { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.accent { color: var(--accent); }
.tag {
  display: inline-block;
  background: rgba(0,173,181,0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,173,181,0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: .02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(0,173,181,0.18);
}
.nav-links a.active { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Page Hero (small top banner) ─────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 50px) 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0,173,181,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 50px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-col h4 {
  color: var(--white);
  font-family: 'Syne', sans-serif;
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ── Carrousel ────────────────────────────────────────────── */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.9;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 10;
}
.carousel-btn:hover { background: var(--accent); color: white; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.carousel-dot.active { background: var(--white); width: 24px; border-radius: 4px; }
.carousel-caption {
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,173,181,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links.open { transform: scaleY(1); }
  .nav-links a { padding: 10px 16px; border-radius: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
}
