/* natation-ax — CSS */
:root {
  --c-primary: #1a5276;
  --c-accent: #2980b9;
  --c-bg: #ffffff;
  --c-text: #2c3e50;
  --c-muted: #5d6d7e;
  --c-border: #d5dbdb;
  --c-quote-bg: #eaf2f8;
  --c-highlight: #f9e79f;
  --c-punch-bg: #1a1a2e;
  --c-punch-text: #f9e79f;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --max-w: 860px;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVIGATION (plus gros, plus visible) ─── */
nav {
  background: var(--c-primary);
  color: #fff;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav .logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.nav-links a.active {
  background: var(--c-accent);
  color: #fff;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0c2340;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(10,20,40,0.2) 0%, rgba(10,20,40,0.7) 100%);
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  max-width: 700px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-sub strong { color: var(--c-highlight); }

/* ─── CALLOUT PUNCH ─── */
.callout-punch {
  background: var(--c-punch-bg);
  color: var(--c-punch-text);
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: bold;
  line-height: 1.5;
  padding: 2rem 1.5rem;
  margin: 0;
  text-align: center;
  border-bottom: 4px solid var(--c-highlight);
}

.callout-punch p {
  margin: 0.3rem 0;
}

.callout-punch strong {
  color: #fff;
  font-size: 1.2em;
}

/* ─── CONTAINER ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-head); color: var(--c-primary); line-height: 1.3; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin: 0.8rem 0; }

ul { margin: 0.8rem 0; padding-left: 1.5rem; }
li { margin: 0.4rem 0; }

a { color: var(--c-accent); }

strong { font-weight: 700; }

/* ─── BLOCKQUOTE ─── */
blockquote {
  background: var(--c-quote-bg);
  border-left: 4px solid var(--c-accent);
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  font-style: italic;
  color: var(--c-primary);
}

blockquote .src {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--c-muted);
  font-style: normal;
}

/* ─── TABLES ─── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--c-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

th { background: var(--c-primary); color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: #f8f9fa; }

/* ─── CHIFFRES GRID ─── */
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.chiffre-box {
  background: var(--c-quote-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
}

.chiffre-box .num {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--c-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.chiffre-box .lbl {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* ─── JALONS GRID ─── */
.jalons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.jalon {
  background: #f8f9fa;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.2rem;
}

.jalon .num {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.jalon h3 { margin-top: 0; font-size: 1.1rem; }
.jalon p { margin: 0.3rem 0; font-size: 0.95rem; }
.jalon .cout { color: var(--c-muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ─── PHOTOS ─── */
.photo-side {
  float: right;
  width: 300px;
  margin: 0.5rem 0 1rem 1.5rem;
}

.photo-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.photo-side figcaption,
figure figcaption {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-top: 0.4rem;
  text-align: center;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ─── COMMENTS ─── */
.comments {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.5rem 2rem;
}

/* ─── FOOTER ─── */
.footer {
  background: #f4f6f7;
  border-top: 1px solid var(--c-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ─── CALLOUT GACHIS ─── */
.callout-gachis {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.callout-gachis strong {
  color: #856404;
}

/* ─── EMAIL HINT ─── */
.email-hint {
  background: #f8f9fa;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--c-muted);
}

.email-hint strong {
  color: var(--c-text);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .photo-side {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }

  .callout-punch {
    font-size: 1.2rem;
    padding: 1.5rem 1rem;
  }
}

/* ─── DIAGRAMME POULE / ŒUF ─── */
.diagram-poule {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow-x: auto;
}

.poule-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.poule-actor {
  background: #fff;
  border: 2px solid var(--c-primary);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.poule-actor strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--c-primary);
  display: block;
}

.poule-label {
  display: block;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}

.poule-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--c-text);
  margin: 0;
}

.poule-arrows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.arrow {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.arrow-line {
  font-size: 1.4rem;
  color: var(--c-accent);
  font-weight: bold;
}

.arrow-label {
  color: var(--c-muted);
  line-height: 1.4;
}

.poule-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

.poule-egg,
.poule-hen {
  background: #fff;
  border: 2px solid #e67e22;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.poule-hen {
  border-color: #c0392b;
}

.egg-icon,
.hen-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.3rem;
}

.poule-egg p,
.poule-hen p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.poule-factor {
  background: var(--c-quote-bg);
  border-left: 4px solid var(--c-accent);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}

.factor-badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.poule-factor p {
  margin: 0;
  font-size: 0.95rem;
}

.poule-result {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--c-primary);
  letter-spacing: 0.05em;
  padding: 0.8rem;
  background: #fff3cd;
  border-radius: 6px;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .poule-top,
  .poule-arrows,
  .poule-center {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
