/* G3F Photos : feuille de style commune (accueil, galerie des parents, administration).
   Marque G3F Digital, thème clair uniquement (même si l'appareil est en mode sombre).
   Polices hébergées sur le site : aucune ressource externe. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f5f7fc;
  --bg-soft: #edf1f9;
  --surface: #ffffff;
  --surface-soft: #f9fafe;
  --ink: #0f1a3a;
  --ink-soft: #3a4566;
  --muted: #66718d;
  --line: rgba(15, 26, 58, 0.09);
  --line-strong: rgba(15, 26, 58, 0.17);
  --brand: #2f5fe0;
  --brand-strong: #2340b3;
  --brand-soft: rgba(47, 95, 224, 0.09);
  --violet: #6d5cf6;
  --cyan: #1fb6e8;
  --grad: linear-gradient(115deg, #1fb6e8 0%, #2f6ae0 52%, #6d5cf6 100%);
  --night: #0b1331;
  --ok: #0e8a61;
  --ok-bg: rgba(14, 138, 97, 0.1);
  --warn: #a86400;
  --warn-bg: rgba(214, 140, 20, 0.12);
  --bad: #c2263e;
  --bad-bg: rgba(194, 38, 62, 0.09);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 58, 0.05), 0 2px 8px rgba(15, 26, 58, 0.04);
  --shadow: 0 1px 2px rgba(15, 26, 58, 0.04), 0 14px 34px -14px rgba(15, 26, 58, 0.18);
  --shadow-lg: 0 2px 4px rgba(15, 26, 58, 0.05), 0 30px 60px -24px rgba(15, 26, 58, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Marque ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px -10px rgba(11, 19, 49, 0.6);
}

.brand strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Boutons et champs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(47, 95, 224, 0.85);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.btn-quiet:hover {
  background: var(--bg-soft);
  color: var(--ink);
  transform: none;
}

.btn-danger {
  background: var(--surface);
  color: var(--bad);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent);
}

.btn-danger:hover {
  background: var(--bad-bg);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.btn-icon {
  width: 44px;
  padding: 0;
}

.btn-sm.btn-icon {
  width: 34px;
}

.ico {
  flex: none;
  width: 18px;
  height: 18px;
}

.input {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea.input {
  min-height: 84px;
  line-height: 1.55;
  resize: vertical;
}

.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- Pied de page ---------- */
.site-foot {
  padding: 28px 16px 36px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.site-foot p {
  margin: 4px 0;
}

.site-foot img {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
  border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
