/* Anna Camplan, avocate — feuille de style commune */

/* Polices hébergées sur le site (aucun appel à un service tiers) */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-400-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-500.woff2") format("woff2"), url("../fonts/dm-sans-400.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.65; color: #0B1533; background: #FFFFFF;
}
img { max-width: 100%; height: auto; }
a { color: #002FA7; }
a:hover { color: #0B1533; }
:focus-visible { outline: 3px solid #A9D4F2; outline-offset: 3px; border-radius: 4px; }

.lien-evitement { position: absolute; left: -9999px; top: 8px; background: #002FA7; color: #FFFFFF; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.lien-evitement:focus { left: 8px; color: #FFFFFF; }

/* En-tête */
.entete { background: #FFFFFF; border-bottom: 1px solid #D5DAEC; position: relative; z-index: 30; }
.entete-int { max-width: 86rem; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.marque { display: flex; align-items: center; gap: 16px; color: #0B1533; text-decoration: none; }
.marque svg { flex: none; }
.marque-texte { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #D5DAEC; padding-left: 16px; line-height: 1.15; }
.marque-nom { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 28px; color: #002FA7; }
.marque-titre { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #4A5170; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; font-weight: 500; }
.nav-lien { color: #0B1533; text-decoration: none; }
.nav-lien:hover { color: #002FA7; }
.nav-rdv { background: #002FA7; color: #FFFFFF; text-decoration: none; padding: 11px 20px; border-radius: 999px; }
.nav-rdv:hover { background: #0B1533; color: #FFFFFF; }
.nav-toggle { display: none; }

.menu { position: relative; }
.menu-bouton { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: #0B1533; cursor: pointer; }
.menu-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-liste { position: absolute; top: calc(100% + 14px); left: -14px; width: 300px; background: #FFFFFF; border: 1px solid #D5DAEC; border-radius: 16px; box-shadow: 0 16px 40px rgba(11, 21, 51, 0.14); padding: 8px; display: flex; flex-direction: column; z-index: 40; }
.menu-liste[hidden] { display: none; }
.menu-lien { display: block; padding: 10px 14px; border-radius: 10px; color: #0B1533; text-decoration: none; font-weight: 400; }
.menu-lien.menu-vue { color: #002FA7; font-weight: 500; }
.menu-lien:hover { background: #EEF5FC; color: #002FA7; }

@media (max-width: 960px) {
  .marque svg { width: 52px; height: 52px; }
  .marque-nom { font-size: 23px; }
  .marque-titre { font-size: 11.5px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #002FA7; background: #FFFFFF; color: #002FA7; font: inherit; font-weight: 500; font-size: 15px; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .nav.ouvert { display: flex; }
  .nav-lien, .menu-bouton { padding: 12px 4px; border-bottom: 1px solid #E3EAF4; width: 100%; justify-content: space-between; }
  .menu-liste { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .nav-rdv { margin-top: 14px; text-align: center; }
}

/* Ajustements pour petits écrans (les styles de mise en page sont écrits dans les pages) */
@media (max-width: 640px) {
  body { font-size: 16px; }
  main section[style*="padding: 88px 0"], main section[style*="padding: 80px 0"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  main h2[style*="font-size: 40px"] { font-size: 30px !important; }
  main h2[style*="font-size: 34px"] { font-size: 28px !important; }
  main h1[style*="font-size: 52px"] { font-size: 38px !important; }
  #accueil > div { padding-top: 64px !important; padding-bottom: 80px !important; }
  iframe { height: 820px !important; }
}

/* Bandeau d’information cookies */
.bandeau { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 46rem; margin: 0 auto; background: #FFFFFF; border: 1px solid #D5DAEC; border-radius: 18px; box-shadow: 0 16px 40px rgba(11, 21, 51, 0.18); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bandeau[hidden] { display: none; }
.bandeau p { flex: 1 1 22rem; margin: 0; font-size: 15px; }
.bandeau-titre { font-weight: 500; color: #002FA7; }
.bandeau button { flex: none; background: #002FA7; color: #FFFFFF; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .entete nav, .nav-toggle, .bandeau { display: none !important; } }
