/* APY FINANCE — feuille de style issue de DESIGN.md (tirage 53090990200039) */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/newsreader-latin-700-normal.woff2") format("woff2");
}

:root {
  --fond: #ece9f1;
  --surface: #e1dde8;
  --texte: #4a4653;
  --primaire: #6e1fd6;
  --accent: #4e2fe9;
  --filet: #bbb6c9;
  --titres: "Familjen Grotesk", Arial, sans-serif;
  --corps: "Newsreader", Georgia, serif;
  --trame: radial-gradient(var(--filet) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
img.photo { filter: saturate(1.15); }

h1, h2, h3 {
  font-family: var(--titres);
  font-weight: 700;
  margin: 0;
}
h1 { font-size: 64px; line-height: 1.02; color: var(--accent); text-align: center; letter-spacing: -0.01em; }
h2 { font-size: 48px; line-height: 1.05; color: var(--primaire); text-align: center; letter-spacing: -0.01em; }
h3 { font-size: 24px; line-height: 1.2; color: var(--texte); margin-bottom: 12px; }

p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

a { color: var(--primaire); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--primaire); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Boutons : contour 2 px, angles droits, aucune ombre */
.btn {
  display: inline-block;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 28px;
  border: 2px solid var(--primaire);
  color: var(--primaire);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 120ms, color 120ms;
}
.btn:hover, .btn:focus-visible { background: var(--primaire); color: var(--fond); }
.btn-inverse { border-color: var(--fond); color: var(--fond); }
.btn-inverse:hover, .btn-inverse:focus-visible { background: var(--fond); color: var(--primaire); }

/* Élément signature : rond accent qui déborde du coin supérieur gauche du bloc porteur */
.porte-rond { position: relative; }
.porte-rond::before {
  content: "";
  position: absolute;
  top: -90px; left: -90px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  pointer-events: none;
}

/* En-tête */
.entete {
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid var(--filet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fond);
  position: relative;
  z-index: 3;
}
.entete .logo { display: block; }
.entete .logo img { height: 36px; width: auto; }
.entete-droite { display: flex; align-items: center; gap: 32px; }
.entete-droite .lien-nav {
  font-family: var(--titres); font-weight: 700; font-size: 16px;
  color: var(--texte); text-decoration: none;
}
.entete-droite .lien-nav:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.btn-menu {
  font-family: var(--titres); font-weight: 700; font-size: 16px;
  color: var(--primaire); background: none; border: 0; border-bottom: 1px solid var(--primaire);
  padding: 0 0 2px; cursor: pointer; border-radius: 0;
}
.cta-court { display: none; }

/* Panneau Menu plein écran */
.panneau-menu {
  position: fixed; inset: 0;
  background: var(--primaire);
  color: var(--fond);
  padding: 96px 48px;
  z-index: 50;
  overflow-y: auto;
}
.panneau-menu[hidden] { display: none; }
.panneau-menu .fermer { position: absolute; top: 20px; right: 48px; }
.panneau-menu ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fond); }
.panneau-menu li { border-bottom: 1px solid var(--fond); }
.panneau-menu a {
  display: block;
  font-family: var(--titres); font-weight: 700;
  font-size: 72px; line-height: 1;
  padding: 24px 0;
  color: var(--fond); text-decoration: none;
}
.panneau-menu a:hover, .panneau-menu a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; outline-color: var(--fond); }
body.menu-ouvert { overflow: hidden; }

/* Hero : écran partagé texte / photo recadrée verticalement */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.hero-texte {
  background-image: var(--trame);
  background-size: 22px 22px;
  padding: 96px 64px;
  border-right: 1px solid var(--filet);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.hero-texte h1 { margin-bottom: 32px; }
.hero-texte .chapeau { font-size: 22px; line-height: 1.45; max-width: 36rem; margin-bottom: 40px; }
.hero-texte .precision { font-size: 15px; line-height: 1.45; margin: 0; max-width: 36rem; }
.hero-photo { position: relative; overflow: visible; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* Sections : écran partagé 50/50, colonne gauche sticky */
.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--filet);
}
.section-titre {
  position: sticky; top: 0;
  height: 100vh;
  align-self: start;
  background-image: var(--trame);
  background-size: 22px 22px;
  border-right: 1px solid var(--filet);
  padding: 48px;
  display: flex; align-items: center; justify-content: center;
}
.section-contenu { padding: 160px 64px; min-width: 0; }

/* 1 — deux colonnes texte / image */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.deux-colonnes img { border: 1px solid var(--filet); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.deux-colonnes.avec-formulaire { grid-template-columns: 2fr 3fr; }

/* 2 — questions / réponses en deux colonnes */
.qr { margin: 0; border-top: 1px solid var(--filet); }
.qr > div { display: grid; grid-template-columns: 2fr 3fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--filet); }
.qr dt { font-family: var(--titres); font-weight: 700; font-size: 21px; line-height: 1.25; }
.qr dd { margin: 0; }

/* 3 — image pleine largeur avec légende */
.section-contenu.pleine-image { padding-top: 0; }
.pleine-image figure { margin: 0 0 40px; }
.pleine-image figcaption { font-size: 15px; line-height: 1.45; padding: 12px 0; border-bottom: 1px solid var(--filet); }

/* 4 — frise chronologique verticale */
.frise { list-style: none; margin: 0; padding: 0 0 0 48px; border-left: 1px solid var(--filet); }
.frise li { position: relative; padding-bottom: 48px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { content: ""; position: absolute; left: -48px; top: 18px; width: 32px; height: 1px; background: var(--filet); }
.frise .periode {
  display: inline-block;
  font-family: var(--titres); font-weight: 700; font-size: 16px; line-height: 1;
  color: var(--primaire); background: var(--surface);
  padding: 8px 10px; margin-bottom: 12px;
}

/* 5 — bande de couleur avec appel à l'action (pleine largeur, touche les deux bords) */
.bande {
  grid-column: 1 / -1;
  background: var(--primaire);
  color: var(--fond);
  padding: 96px 64px;
  text-align: center;
}
.bande h2 { color: var(--fond); margin-bottom: 24px; }
.bande p { max-width: 40rem; margin: 0 auto 32px; text-align: left; }

/* 6 — texte + note de marge */
.note-marge { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.note-marge aside { font-size: 15px; line-height: 1.45; border-left: 1px solid var(--filet); padding-left: 16px; }
.note-marge aside p { margin-bottom: 12px; }
.note-marge + .note-marge { margin-top: 64px; }

/* 7 — citation en très grand corps */
.citation {
  margin: 0;
  padding: 48px 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
  font-size: 40px; line-height: 1.2;
  color: var(--accent);
}
.citation + p { margin-top: 40px; }

/* Listes dans le texte */
.section-contenu ul { padding-left: 1.2em; margin: 0 0 24px; }
.section-contenu li { margin-bottom: 8px; }

/* Formulaires */
.formulaire { display: grid; gap: 20px; }
.champ label { display: block; font-family: var(--titres); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.champ input, .champ textarea {
  display: block; width: 100%;
  font-family: var(--corps); font-size: 17px; color: var(--texte);
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 0;
  padding: 12px 14px;
}
.champ input:focus, .champ textarea:focus { outline: 0; border: 2px solid var(--primaire); padding: 11px 13px; }
.champ textarea { min-height: 160px; resize: vertical; }
.champ-consentement { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; }
.champ-consentement input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primaire); }
.champ-cache { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-formulaire { border: 1px solid var(--filet); padding: 16px 20px; margin-bottom: 24px; }
.message-formulaire[hidden] { display: none; }
.erreur-champ { font-size: 15px; color: var(--primaire); margin: 6px 0 0; }
.champ input:user-invalid, .champ textarea:user-invalid { border: 2px solid var(--accent); padding: 11px 13px; }

/* Carte Google à la demande */
.carte { border: 1px solid var(--filet); background: var(--surface); min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 32px; }
.carte iframe { width: 100%; height: 420px; border: 0; display: block; }
.carte-chargee { padding: 0; }

/* Pied de page : aplat couleur texte, texte en couleur de fond, liens en deux colonnes */
.pied {
  background: var(--texte);
  color: var(--fond);
  border-top: 1px solid var(--filet);
  padding: 96px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.pied-identite { font-size: 15px; line-height: 1.5; }
.pied-identite p { margin: 0 0 8px; }
.pied-identite a { color: var(--fond); }
.pied-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pied-liens ul { list-style: none; margin: 0; padding: 0; }
.pied-liens li { margin-bottom: 14px; }
.pied-liens a, .pied-liens button {
  font-family: var(--titres); font-weight: 700; font-size: 16px;
  color: var(--fond); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0;
}
.pied-liens a:hover, .pied-liens button:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pied-mention { grid-column: 1 / -1; font-size: 15px; border-top: 1px solid var(--filet); padding-top: 24px; margin: 0; }

/* Bandeau cookies */
.bandeau-cookies {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--filet);
  padding: 20px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  z-index: 40;
  font-size: 15px; line-height: 1.45;
}
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { margin: 0; }
.bandeau-cookies .choix { display: flex; gap: 12px; }
.bandeau-cookies .choix .btn { min-width: 140px; text-align: center; }

/* Pages simples (légales, 404, merci) */
.page-titre {
  background-image: var(--trame);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--filet);
  padding: 120px 64px;
  display: flex; flex-direction: column; align-items: center;
}
.page-titre p { max-width: 40rem; margin: 24px 0 0; font-size: 22px; line-height: 1.45; }
.page-titre .btn { margin-top: 40px; }
.page-corps { max-width: 48rem; padding: 96px 64px 160px; }
.page-corps h2 { text-align: left; font-size: 32px; margin: 56px 0 20px; }
.page-corps h2:first-child { margin-top: 0; }
.page-corps ul { padding-left: 1.2em; }
.page-corps .qr > div { grid-template-columns: 1fr 2fr; }
.page-corps .note-marge { grid-template-columns: 2fr 1fr; }

/* Landing : en-tête réduit, formulaire dans le hero */
.hero-formulaire { padding: 48px 64px; display: flex; align-items: center; justify-content: center; }
.bloc-formulaire { background: var(--surface); border: 1px solid var(--filet); padding: 40px; width: 100%; max-width: 520px; position: relative; }
.bloc-formulaire h2 { font-size: 28px; text-align: left; margin-bottom: 20px; color: var(--texte); }
.bloc-formulaire .formulaire { gap: 14px; }
.bloc-formulaire .champ input { background: var(--fond); }
.bloc-formulaire.porte-rond::before { top: auto; left: auto; bottom: -150px; right: -150px; }
.hero-landing { overflow: hidden; }
.formulaire-bas { background: var(--surface); border: 1px solid var(--filet); padding: 40px; }
.formulaire-bas .champ input { background: var(--fond); }
.hero-landing { min-height: 0; }
.hero-landing .hero-texte { padding: 64px 64px; }
.hero-landing .hero-texte h1 { font-size: 52px; }
.deux-colonnes .formulaire-bas { margin-top: 0; }

/* Responsive */
@media (max-width: 1100px) {
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .section-contenu { padding: 120px 40px; }
  .hero-texte { padding: 72px 40px; }
  .panneau-menu a { font-size: 56px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  h1 { font-size: 40px; line-height: 1.05; }
  h2 { font-size: 34px; line-height: 1.1; }
  h3 { font-size: 21px; }
  .entete { height: 64px; padding: 0 20px; }
  .entete .logo img { height: 30px; }
  .entete-droite { gap: 20px; }
  .entete-droite .lien-nav { display: none; }
  .cta-long { display: none; }
  .cta-court { display: inline-block; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .panneau-menu { padding: 80px 20px; }
  .panneau-menu .fermer { right: 20px; }
  .panneau-menu a { font-size: 44px; line-height: 1.05; padding: 18px 0; }
  .porte-rond::before { top: -50px; left: -50px; width: 140px; height: 140px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-texte { border-right: 0; border-bottom: 1px solid var(--filet); padding: 56px 20px; }
  .hero-texte .chapeau { font-size: 18px; line-height: 1.5; }
  .hero-photo { height: 460px; }
  .hero-landing .hero-texte h1 { font-size: 36px; }
  .hero-formulaire { padding: 32px 20px; }
  .bloc-formulaire { padding: 24px 20px; max-width: none; }
  .bloc-formulaire.porte-rond::before { bottom: -90px; right: -90px; }
  .section { grid-template-columns: 1fr; }
  .section-titre { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--filet); padding: 56px 20px; }
  .section-contenu { padding: 96px 20px; }
  .deux-colonnes { grid-template-columns: 1fr; gap: 32px; }
  .qr > div { grid-template-columns: 1fr; gap: 10px; }
  .frise { padding-left: 32px; }
  .frise li::before { left: -32px; width: 20px; }
  .bande { padding: 64px 20px; }
  .note-marge { grid-template-columns: 1fr; gap: 20px; }
  .note-marge aside { border-left: 1px solid var(--filet); }
  .citation { font-size: 28px; line-height: 1.25; padding: 32px 0; }
  .pied { grid-template-columns: 1fr; gap: 40px; padding: 64px 20px; }
  .page-titre { padding: 96px 20px 72px; }
  .page-titre p { font-size: 18px; }
  .page-corps { padding: 56px 20px 96px; }
  .page-corps h2 { font-size: 26px; }
  .page-corps .qr > div, .page-corps .note-marge { grid-template-columns: 1fr; }
  .bandeau-cookies { grid-template-columns: 1fr; gap: 12px; padding: 12px 20px; font-size: 14px; line-height: 1.35; }
  .bandeau-cookies .choix .btn { min-width: 0; flex: 1; }
  .formulaire-bas { padding: 24px 20px; }
}
