:root {
  --marine: #0a3a60;
  --acier: #3b6689;
  --rouge: #b04454;
  --rouge-fonce: #8e3342;
  --fond: #f6f7f9;
  --blanc: #ffffff;
  --texte: #1c2733;
  --gris: #5b6776;
  --trait: #dde2e8;
  --rayon: 10px;
  --largeur: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--acier); }
a:hover { color: var(--marine); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--marine);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* En-tête */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
  position: sticky;
  top: 0;
  z-index: 10;
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--marine);
}
.marque img { height: 64px; width: auto; }
.marque span { font-weight: 700; font-size: 1rem; line-height: 1.15; }
.marque small { display: block; font-weight: 400; color: var(--gris); font-size: .8rem; }

.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu a {
  text-decoration: none;
  color: var(--texte);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .95rem;
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--fond); color: var(--marine); }
.menu a.bouton { color: var(--blanc); margin-left: 6px; }
.menu a.bouton:hover { color: var(--blanc); background: var(--rouge-fonce); }

.bascule { display: none; background: none; border: 1px solid var(--trait); border-radius: 6px; padding: 8px 12px; font: inherit; color: var(--marine); cursor: pointer; }

@media (max-width: 860px) {
  .bascule { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--trait);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
  }
  .menu.ouvert { display: flex; }
  .menu a.bouton { margin: 8px 0 0; text-align: center; }
  .marque span { display: none; }
}

/* Boutons */
.bouton {
  display: inline-block;
  background: var(--rouge);
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bouton:hover { background: var(--rouge-fonce); color: var(--blanc); }
.bouton.secondaire { background: transparent; color: var(--marine); border: 2px solid var(--marine); padding: 10px 20px; }
.bouton.secondaire:hover { background: var(--marine); color: var(--blanc); }
.bouton.clair { background: var(--blanc); color: var(--marine); }
.bouton.clair:hover { background: var(--fond); color: var(--marine); }

/* Bandeau d'accueil */
.bandeau {
  background: linear-gradient(135deg, var(--marine) 0%, #0f4a78 60%, var(--acier) 100%);
  color: var(--blanc);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.bandeau::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%; bottom: 36px;
  height: 6px;
  background: var(--rouge);
  transform: rotate(-2deg);
  opacity: .9;
}
.bandeau .conteneur.avec-logo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.bandeau .logo-grand {
  background: var(--blanc);
  border-radius: 50%;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  position: relative;
  z-index: 1;
}
.bandeau .logo-grand img { height: 210px; width: auto; }
@media (max-width: 860px) {
  .bandeau .conteneur.avec-logo { grid-template-columns: 1fr; }
  .bandeau .logo-grand { width: 180px; height: 180px; order: -1; }
  .bandeau .logo-grand img { height: 135px; }
}
.bandeau h1 { color: var(--blanc); max-width: 760px; }
.bandeau p { font-size: 1.15rem; max-width: 680px; opacity: .95; }
.bandeau .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.bandeau .bouton.secondaire { color: var(--blanc); border-color: var(--blanc); }
.bandeau .bouton.secondaire:hover { background: var(--blanc); color: var(--marine); }

.entete-page { background: var(--fond); padding: 48px 0 36px; border-bottom: 1px solid var(--trait); }
.entete-page p { color: var(--gris); max-width: 720px; margin: 0; font-size: 1.1rem; }

/* Sections */
section { padding: 64px 0; }
section.gris { background: var(--fond); }
.intro { max-width: 720px; color: var(--gris); font-size: 1.08rem; }

.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 24px;
}
.carte h3 { margin-bottom: .4em; }
.carte p { margin: 0; color: var(--gris); }
.carte .chiffre { font-family: Georgia, serif; font-size: 2.4rem; color: var(--rouge); line-height: 1; margin-bottom: 8px; }

.appel {
  background: var(--marine);
  color: var(--blanc);
  border-radius: 14px;
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.appel h2 { color: var(--blanc); margin-bottom: .3em; }
.appel p { margin: 0; opacity: .92; max-width: 620px; }

/* Actualités */
.actu {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 28px;
  align-items: center;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.actu img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.actu .texte { padding: 24px 28px 24px 0; }
.actu:hover h3 { text-decoration: underline; }
.date { color: var(--rouge); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
@media (max-width: 720px) {
  .actu { grid-template-columns: 1fr; }
  .actu .texte { padding: 0 20px 24px; }
}

.article { max-width: 760px; margin: 0 auto; }
.article figure { margin: 0 0 32px; }
.article figcaption { color: var(--gris); font-size: .9rem; margin-top: 8px; }
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--rouge);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--marine);
}
.article .source { color: var(--gris); font-size: .92rem; }

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.etapes li {
  counter-increment: etape;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 20px 20px 20px 72px;
  position: relative;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 20px; top: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--marine);
  color: var(--blanc);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.etapes strong { color: var(--marine); }

.liste-objet { padding-left: 1.2em; }
.liste-objet li { margin-bottom: .5em; }

/* Formulaire */
.formulaire { max-width: 760px; margin: 0 auto; }
fieldset {
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 20px 24px 12px;
  margin: 0 0 20px;
  background: var(--blanc);
}
legend { font-weight: 700; color: var(--marine); padding: 0 8px; font-size: 1.05rem; }
.aide { color: var(--gris); font-size: .92rem; margin: 0 0 12px; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; margin-bottom: 12px; }
.choix label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.choix input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--marine); flex: none; }
.champ { margin-bottom: 14px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #b9c2cd;
  border-radius: 8px;
  background: var(--blanc);
  color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(59, 102, 137, .35); border-color: var(--acier); }
textarea { min-height: 120px; resize: vertical; }
.obligatoire { color: var(--rouge); }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--gris); margin: 8px 0 20px; }
.consentement input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--marine); flex: none; }
.piege { position: absolute; left: -9999px; }
.erreurs { background: #fbeef0; border: 1px solid #e6b8c0; color: var(--rouge-fonce); border-radius: var(--rayon); padding: 14px 20px; margin-bottom: 20px; }
.erreurs ul { margin: 0; padding-left: 1.2em; }
.merci { text-align: center; max-width: 640px; margin: 0 auto; padding: 40px 0; }

/* Pied de page */
.pied { background: var(--marine); color: rgba(255,255,255,.85); padding: 48px 0 28px; font-size: .95rem; }
.pied a { color: var(--blanc); }
.pied .colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.pied h3 { color: var(--blanc); font-family: inherit; font-size: 1rem; margin-bottom: .6em; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 18px; font-size: .85rem; opacity: .8; }
