/* ESA-style – Ravnsson Labs v0.5 (light, performant, fluide) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth; }
html, body { height:100%; }
body {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background:#f7f8fa;
  color:#1b1b1b;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ===== Header (ESA nav) ===== */
.header {
  position:sticky; top:0; z-index:1000;
  background:#fff; border-bottom:1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-container {
  max-width:1200px; margin:0 auto;
  padding:12px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-text { color:#0f2742; font-weight:700; letter-spacing:.02em; }
.logo { height:48px; width:auto; user-select:none; }

.nav { display:flex; align-items:center; gap:20px; }
.nav a {
  color:#0055A4; text-decoration:none; font-weight:500; position:relative;
  padding:10px 0; transition: color .2s ease;
}
.nav a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background:#0055A4;
  transition: width .25s ease;
}
.nav a:hover { color:#003b76; }
.nav a:hover::after { width:100%; }

/* Burger */
.nav-toggle {
  display:none; background:none; border:0; cursor:pointer; padding:8px; border-radius:8px;
}
.nav-toggle:focus-visible { outline:2px solid #0055A4; outline-offset:3px; }
.nav-toggle .bar { display:block; width:22px; height:2px; background:#0f2742; margin:5px 0; border-radius:2px; }

/* ===== Hero ===== */
#hero {
  min-height:72vh; display:flex; align-items:center; justify-content:center; text-align:center; color:#fff;
  background:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55)),
    image-set(
      url("images/ship.webp") type("image/webp"),
      url("images/ship.png") type("image/png")
    ) center/cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from{ background-size:100%; } to{ background-size:108%; } }
#hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing:.12em; text-shadow:0 3px 14px rgba(0,0,0,.45); }
#hero p { margin-top:10px; font-size:clamp(1rem, 1.2vw, 1.25rem); opacity:.95; }

/* ===== Blocks ===== */
.block {
  max-width:1200px; margin:60px auto; padding:70px 6%;
  background:#fff; border-radius:16px; box-shadow: 0 6px 24px rgba(0,0,0,.04);
  opacity:0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease;
}
.block.visible { opacity:1; transform: translateY(0); }
.block h2 { color:#0055A4; text-align:center; margin-bottom:18px; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.block p { color:#2f2f2f; text-align:center; max-width:900px; margin:0 auto; }

/* ===== Projets (cartes larges) ===== */
#projets { background:#f1f3f8; }
#projets .project {
  display:flex; align-items:center; gap:24px; margin:28px auto; padding:26px;
  background:#fff; border:1px solid rgba(0,0,0,0.05); border-radius:16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  max-width:980px; transition: transform .3s ease, box-shadow .3s ease;
}
#projets .project:hover { transform: translateY(-6px); box-shadow:0 10px 24px rgba(0,0,0,.08); }
#projets .project img {
  width:140px; height:140px; object-fit:cover; border-radius:50%;
}
#projets .project h3 { color:#0055A4; margin-bottom:8px; font-size:1.35rem; }
#projets .project p { color:#454545; text-align:left; }

/* ===== Recommandé (grille de cartes) ===== */
.cards {
  display:grid; gap:20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:16px; overflow:hidden;
  box-shadow:0 4px 14px rgba(0,0,0,0.05); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow:0 12px 26px rgba(0,0,0,0.08); }
.card picture, .card img { display:block; width:100%; height:auto; }
.card img { aspect-ratio: 16/9; object-fit:cover; }
.card-body { padding:16px 16px 18px; }
.card-body h3 { color:#0f2742; font-size:1.1rem; margin-bottom:6px; }
.card-body p { color:#4a4a4a; font-size:.98rem; margin-bottom:12px; }
.btn {
  display:inline-block; padding:10px 14px; border-radius:10px; text-decoration:none; font-weight:600;
  background:#0055A4; color:#fff; transition: filter .2s ease, transform .1s ease;
}
.btn:hover { filter: brightness(0.94); }
.btn:active { transform: translateY(1px); }

/* ===== Galerie Images ===== */
.gallery {
  display:grid; gap:18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-item { background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:14px; overflow:hidden; }
.gallery-item img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.gallery-item figcaption { padding:10px 12px; font-size:.95rem; color:#2b2b2b; }

/* ===== Articles ===== */
.articles {
  display:grid; gap:18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article {
  background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:14px; padding:18px 16px;
  box-shadow:0 4px 14px rgba(0,0,0,0.05);
}
.article h3 { color:#0f2742; font-size:1.05rem; margin-bottom:6px; }
.article p { color:#484848; font-size:.98rem; margin-bottom:10px; }
.link { color:#0055A4; text-decoration:none; font-weight:600; }
.link:hover { text-decoration:underline; }

/* ===== Plus ===== */
.more-links {
  display:flex; justify-content:center; gap:18px; flex-wrap:wrap;
  list-style:none; margin-top:8px;
}
.more-links a {
  display:inline-block; padding:10px 14px; border-radius:10px; border:1px solid rgba(0,0,0,0.08);
  background:#fff; text-decoration:none; color:#0f2742; transition: background .2s ease, transform .1s ease;
}
.more-links a:hover { background:#f2f6fc; }
.more-links a:active { transform: translateY(1px); }

/* ===== Contact ===== */
#contact a { color:#0055A4; text-decoration:none; font-weight:500; }
#contact a:hover { color:#003b76; }

/* ===== Footer ESA ===== */
.footer {
  background:#0055A4; color:#fff; margin-top:60px; padding:22px 0 10px;
}
.footer-inner {
  max-width:1200px; margin:0 auto; padding:0 20px;
  display:grid; grid-template-columns: 1fr 2fr 1.6fr; align-items:center; gap:16px;
}
.footer-left img { display:block; }
.footer-links, .footer-social { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.footer-links a, .footer-social a {
  color:#fff; text-decoration:none; opacity:.95; transition: opacity .2s ease, text-decoration-color .2s ease;
}
.footer-links a:hover, .footer-social a:hover { opacity:1; text-decoration:underline; }

/* ===== Styles Font Awesome Réseaux sociaux ===== */
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social i, .footer-social svg {
  font-size: 16px;
  color: white;
  width: 16px;
  height: 16px;
}

.copyright {
  text-align:center; font-size:.92rem; opacity:.9; padding:8px 20px 14px;
}

/* ===== Animations ===== */
.fade-in { opacity:0; transform: translateY(24px); }
.fade-in.visible { opacity:1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards, .gallery, .articles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #projets .project { flex-direction:column; text-align:center; }
}
@media (max-width: 768px) {
  .header-container { padding:12px 14px; }
  .nav-toggle { display:block; }
  .nav { position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid rgba(0,0,0,0.06);
         display:none; flex-direction:column; padding:10px 14px; }
  .nav.open { display:flex; }
  .nav a { padding:10px 6px; }
  .footer-inner { grid-template-columns: 1fr; text-align:center; }
}
@media (max-width: 520px) {
  .cards, .gallery, .articles { grid-template-columns: 1fr; }
  #hero { min-height: 56vh; }
}

/* ===== Accessibilité ===== */
:focus-visible { outline:2px solid #0055A4; outline-offset:3px; }
a { -webkit-tap-highlight-color: transparent; }
