/* =========================================================
   PLONGÉE LA TEAM — BASE THEME (dark / premium — deep ocean)
   Fichier commun importé par les autres pages via @import.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* --------- Design tokens --------- */
:root {
  --bg-0:  #04080f;
  --bg-1:  #070e1c;
  --bg-2:  #0d1a33;
  --bg-3:  #132544;
  --surface: rgba(18, 32, 60, 0.72);
  --surface-strong: rgba(22, 40, 72, 0.92);

  --border:        rgba(96, 165, 205, 0.14);
  --border-strong: rgba(96, 165, 205, 0.28);

  --text:       #e8eef9;
  --text-muted: #9db0cf;
  --text-dim:   #6a7d9c;

  --accent:     #22d3ee;   /* cyan électrique */
  --accent-2:   #5eead4;   /* turquoise pâle */
  --accent-warm:#f4b860;   /* or chaud */
  --danger:     #ef4444;
  --success:    #10b981;

  --radius-lg: 18px;
  --radius:    12px;
  --radius-sm: 8px;

  --shadow-1: 0 2px 8px rgba(0,0,0,.35);
  --shadow-2: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 1px var(--border);
  --glow:     0 0 0 1px rgba(34,211,238,.35), 0 10px 40px -10px rgba(34,211,238,.35);

  --ease: cubic-bezier(.2,.8,.2,1);
}

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

html, body { height: 100%; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Arrière-plan profond : dégradés doux + grain */
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(94,234,212,0.06), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(244,184,96,0.05), transparent 60%),
    linear-gradient(180deg, #04080f 0%, #060d1a 100%);
  background-attachment: fixed;
}

/* grain subtil */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: -1;
}

/* --------- Typographie --------- */
h1, h2, h3 {
  font-family: 'Syne', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); }
h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 2rem 0;
}

/* --------- Header (navigation) --------- */
header {
  position: sticky; top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 28px;
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

header a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
header a:hover { color: #fff; background: rgba(34,211,238,0.08); }
header a strong {
  color: var(--accent);
  font-weight: 700;
}
header a:has(strong) {
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(94,234,212,0.08));
  border: 1px solid var(--border-strong);
}

/* --------- Main --------- */
main {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 60px auto 80px;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
}

/* Sections : wrapper glassy optionnel via <section> */
main > section {
  margin-bottom: 3rem;
}

/* --------- Footer --------- */
footer {
  display: flex;
  justify-content: center;
  padding: 22px 28px;
  background: rgba(7, 14, 28, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
footer p {
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* --------- Liens génériques (hors header) --------- */
main a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s var(--ease);
}
main a:hover { color: var(--accent-2); }

/* =========================================================
   PAGE — ACCUEIL
   ========================================================= */

main > section:first-of-type {
  text-align: center;
  padding: 2rem 0;
}

main > section h1 {
  background: linear-gradient(135deg, #fff 0%, #8fd6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  animation: rise .7s var(--ease) both;
}

main > section h2 {
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  animation: rise .7s .1s var(--ease) both;
}

/* Liste des offres (cards) */
main ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0 auto 3rem;
  text-align: left;
}

main ul li {
  position: relative;
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  animation: rise .6s .2s var(--ease) both;
}
main ul li::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(34,211,238,0.14), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
main ul li:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
main ul li:hover::before { opacity: 1; }

main ul li::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.8;
}

/* Boutons CTA "EN SAVOIR PLUS" (liens dans le main) */
main > section > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04131a !important;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin: 0.5rem 0 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(34,211,238,0.5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
main > section > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(34,211,238,0.7);
  filter: brightness(1.05);
}

main > section > p {
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
  font-size: 0.95rem;
}
main > section > br { display: none; }

/* --------- Animations --------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------- Scrollbar --------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-radius: 10px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --------- Sélection texte --------- */
::selection { background: rgba(34,211,238,0.35); color: #fff; }

/* --------- Responsive --------- */
@media (max-width: 600px) {
  header { padding: 10px 12px; gap: 2px; }
  header a { padding: 6px 12px; font-size: 0.8rem; }
  main { margin: 30px auto 40px; }
}
