 /* ============ VARIABLES ============ */
  :root {
    --blue-dark: #0b2545;
    --blue: #3a9ad9;
    --gold: #f5c518;
    --black: #121212;
    --white: #ffffff;
    --footer-bg: #0d1b2ef5;

    /* >>> Remplacer ici par vos images <<< */
    --img-bg: url("/wp-content/uploads/2026/11/la-piscine-rochelaise-pisciniste-la-rochelle-Arriere-plan-pre-home-2.webp");        /* ex: url("img/fond.jpg") */
    --img-card-1: url("/wp-content/uploads/2026/11/la-piscine-rochelaise-pisciniste-la-rochelle-Piscinocean-1.webp");    /* ex: url("img/alliance.jpg") */
    --img-card-2: url("/wp-content/uploads/2026/11/la-piscine-rochelaise-pisciniste-la-rochelle-La-Piscine-Rochelaise-1.webp");    /* ex: url("img/rochelaise.jpg") */

    --radius: 10px;
    --gap: clamp(16px, 2.5vw, 36px);
  }

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

  body {
    font-family: "Montserrat", Sans-serif;
    color: var(--white);
    background: var(--footer-bg);
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; text-decoration: none; }

  /* ============ CONTAINER PLEIN ÉCRAN ============ */
  .prehome {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
      var(--img-bg) center / cover no-repeat,
      linear-gradient(180deg, #2a5f8f 0%, #4d8fbf 45%, #2f8fc4 100%);
  }
  /* voile sombre en haut pour la lisibilité */
  .prehome::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,30,60,.75) 0%, rgba(8,30,60,.35) 45%, rgba(8,30,60,.15) 100%);
    pointer-events: none;
  }
  .prehome > * { position: relative; z-index: 1; }

  /* ============ EN-TÊTE ============ */
  .head {
    text-align: center;
    padding: clamp(20px, 4vh, 48px) 20px clamp(16px, 3vh, 32px);
  }
  .logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.5vw, 32px);
    margin-bottom: clamp(12px, 2vh, 22px);
  }
  .logos__sep { width: 1px; height: clamp(50px, 8vh, 85px); background: rgba(255,255,255,.35); }
  .logos__x   { font-size: 1.8rem; font-weight: 200; opacity: .85; }

  /* Placeholders logos : remplacer par <img> */
  .logo-ph {
    display: grid; place-items: center;
    /*border: 1px dashed rgba(255,255,255,.6);*/
    border-radius: 8px;
    font-size: .75rem; letter-spacing: .1em;
    color: rgba(255,255,255,.8);
   /*background: rgba(255,255,255,.06);*/
  }
  .logo-ph--1 { width: clamp(150px, 20vw, 270px); height: clamp(44px, 6vh, 64px); }
  .logo-ph--2 { width: clamp(70px, 8vw, 122px); aspect-ratio: 1; border-radius: 50%; }

  .head__kicker {
    font-size: clamp(.62rem, .9vw, .78rem);
    letter-spacing: .5em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 6px;
	  font-weight: 800;
  }
  .head__title {
    font-weight: 100;
    font-size: clamp(1.15rem, 2.2vw, 2rem);
    letter-spacing: .05em;
	font-family: "Barlow Semi Condensed", Sans-serif !important;
}
  .head__title::after {
    content: "";
    display: block;
    width: 150px; height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--blue) 50%, var(--gold) 50%);
  }

  /* ============ CARTES ============ */
  .cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    width: min(100% - 2 * clamp(16px, 4vw, 60px), 1100px);
    margin: 0 auto;
    padding-bottom: clamp(20px, 4vh, 40px);
    align-items: stretch;
  }

  .card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.60);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    background: var(--blue-dark);
  }
  .card--alliance   { background: linear-gradient(180deg, #0c2a52 0%, #081b38 100%); }
  .card--rochelaise { background: linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%); }

  .card__media {
    position: relative;
    flex: 0 0 clamp(150px, 26vh, 260px);
    background: linear-gradient(135deg, #5aa7d8, #2a6a9a);
    background-size: cover; background-position: center;
  }
  .card--alliance   .card__media { background-image: var(--img-card-1), linear-gradient(135deg,#5aa7d8,#2a6a9a); }
  .card--rochelaise .card__media { background-image: var(--img-card-2), linear-gradient(135deg,#6bb88a,#2d7a6b); }
/*   .card__media::before { 
    content: "IMAGE";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    letter-spacing: .3em; font-size: .8rem;
    color: rgba(255,255,255,.55);
  } */
.card__media {
    display: flex;
    justify-content: center;
    align-items: center;
}
  .card__media::after { /* dégradé vers le bas */
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65) 100%);
  }
  .card--alliance   .card__media::after { background: linear-gradient(180deg, transparent 35%, #0c2a52 100%); }
  .card--rochelaise .card__media::after { background: linear-gradient(180deg, transparent 35%, #1a1a1a 100%); }

  .card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 clamp(18px, 2.2vw, 30px) clamp(18px, 2.2vw, 28px);
    margin-top: -20px;
    position: relative;
  }

  .card__label {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .card__label::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
  .card--rochelaise .card__label::before { background: var(--gold); }

  .card__title {
    font-weight: 400;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .card__text {
    font-size: clamp(.85rem, 1.1vw, .98rem);
    line-height: 1.55;
    color: rgba(255,255,255,.88);
    /*max-width: 38ch;*/
    margin-bottom: 20px;
  }

  /* Pictos */
  .features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 22px;
	padding-left: 0 !important;
  }
  .features li {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center;
    padding: 4px 6px;
    font-size: .72rem;
    line-height: 1.25;
    border-left: 1px solid rgba(255,255,255,.22);
  }
 .card--rochelaise .features li {border-color:#f5c5186e !important}
 .card--alliance .features li {border-color:#3a9ad96e !important}
/*   .features li:first-child { border-left: 0; } */
  .icon { width: 30px; height: 30px; color: #8cc7ef; }
  .card--rochelaise .icon { color: var(--gold); }
.card--rochelaise .features svg {
    fill: #f5c518 !important;
    stroke: #f5c518 !important;
}
  /* Boutons */
  .btn {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
    min-width: min(100%, 310px);
    padding: 14px 26px;
    border-radius: 999px;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .2s, box-shadow .2s, background .2s;
	line-height: normal; 
  }
  .btn svg { width: 18px; height: 18px; flex: none; }
  .btn--light,.card a.btn--light:visited,.card a.btn--light:focus { background: #f1f5fb; color: var(--blue-dark); }
  .btn--outline,.card a.btn--outline:visited,.card a.btn--outline:focus { border: 2px solid var(--gold); color: var(--white); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
  .btn--outline:hover { background: transparent; color: var(--black); }
  .btn:focus-visible, .card a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
   a.btn.btn--light:after {background: #34bcee !important;}
   a.btn.btn--outline:after {background: var(--gold) !important;}
  /* ============ PIED ============ */
  .foot {
    background: var(--footer-bg);
    padding: clamp(14px, 2.5vh, 24px) 20px;
  }
  .foot__inner {
    width: min(100%, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .foot__item {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 0 16px;
    border-left: 1px solid rgba(255,255,255,.18);
    font-size: .72rem; line-height: 1.4;
    color: rgba(255,255,255,.75);
  }
  .foot__item:first-child { border-left: 0; }
  .foot__item strong { display: block; font-size: .8rem; color: var(--white); font-weight: 600; }
  .foot__item .icon { color: #cfd9e6; width: 28px; height: 28px; flex: none; }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1000px) {
    .features li { font-size: .68rem; }
    .foot__item { flex-direction: column; text-align: center; gap: 6px; }
  }

  /* 800px : les deux blocs l'un au-dessus de l'autre */
  @media (max-width: 800px) {
    .cards {
      grid-template-columns: 1fr;
      width: min(100% - 32px, 560px);
    }
    .card__media { flex-basis: clamp(150px, 28vw, 220px); }
    .foot__inner { grid-template-columns: 1fr; gap: 14px; }
    .foot__item {
      border-left: 0;
      flex-direction: row;
      justify-content: flex-start;
      text-align: left;
    }
  }

  @media (max-width: 480px) {
    .head__kicker { letter-spacing: .3em; }
    .features { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
    .features li:nth-child(odd) { border-left: 0; }
    .btn { width: 100%; min-width: 0; }
	   .card__label{font-size:13px;}
  }

  @media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    .btn:hover { transform: none; }
  }