/* ============================================================
   magalievae.fr — refonte 2026
   Système de design partagé pour toutes les pages
   ============================================================ */

:root {
  --bg-light: #cfdef0;
  --bg: #a8c5e7;
  --bg-deep: #7a9fcb;
  --ink: #1f3a52;
  --ink-soft: #4a6580;
  --ink-dim: #7a91a8;
  --accent: #2d5279;
  --accent-light: #5a8fb8;
  --line: #c8d5df;
  --white: #ffffff;
  --warn-bg: #fef4e2;
  --warn-line: #b88838;
  --warn-text: #6a4810;
  --ok: #2e7a5a;
  --ok-bg: #e3f5ec;
  --err: #a4444f;
  --err-bg: #fbe9eb;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) var(--bg-light);
  min-height: 100vh;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== PROTECTION DROITS D'AUTEUR ===== */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
.protect-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(31, 58, 82, 0.96);
  color: white;
  padding: 14px 24px 14px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  font-weight: 300;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
  max-width: 92vw;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.45;
}
.protect-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.protect-toast::before {
  content: '©';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-light);
  flex-shrink: 0;
}
.protect-toast strong { color: white; font-weight: 500; }
@media (max-width: 600px) {
  .protect-toast { font-size: 0.8rem; padding: 12px 18px; }
}

/* ===== NAVIGATION ===== */
.site-nav {
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(31, 58, 82, 0.10);
  border-radius: 60px;
  position: sticky;
  top: 14px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 1180px;
  margin: 16px auto 0;
  box-shadow: 0 6px 28px rgba(31, 58, 82, 0.10), 0 2px 6px rgba(31, 58, 82, 0.04);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.site-logo img {
  height: 185px;
  width: auto;
  display: block;
  transition: height 0.8s ease, transform 0.25s;
}
.site-logo:hover img { transform: scale(1.04); }
/* Après 20s, ajout de .compact sur .site-nav par JS → logo réduit */
.site-nav.compact .site-logo img { height: 80px; }

.site-nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.site-nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  text-transform: lowercase;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-weight: 300;
}
.site-nav-links a:hover { color: var(--ink); }
.site-nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
}

/* ===== PAGE HEADER (titre de page) ===== */
.page-header {
  padding: 80px 40px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 38%;
  background-image: url('photos/magalie-portrait-bg.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(to left, black 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 0%, black 50%, transparent 100%);
}
.page-header > * {
  position: relative;
  z-index: 1;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 18px;
}
.page-eyebrow::before, .page-eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.page-title {
  font-size: 3.6rem;
  font-weight: 200;
  color: var(--ink);
  text-transform: lowercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-title em { font-style: italic; color: var(--accent-light); }
.page-subtitle {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-subtitle strong { color: var(--ink); font-weight: 500; }

/* ===== CTA BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: white; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(31,58,82,0.35);
}
.btn-outline:hover { background: var(--ink); color: white; border-color: var(--ink); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 40px 40px;
  margin-top: 80px;
  font-size: 0.88rem;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 1;
}
.footer-brand .logo img {
  height: 150px;
  width: auto;
  display: block;
  opacity: 0.98;
}
.footer-brand p { line-height: 1.7; font-weight: 300; }
.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.agency-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.25s, opacity 0.25s;
  opacity: 0.7;
}
.agency-credit:hover { color: rgba(255, 255, 255, 0.85); opacity: 1; }
.agency-credit img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.7) brightness(1.1);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.agency-credit:hover img {
  filter: none;
  opacity: 1;
  transform: rotate(-8deg);
}

/* ===== SHARED COMPONENTS ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 30px; }
.section { padding: 80px 40px; }
.section-eyebrow {
  text-align: center;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 10px;
}
.section h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 200;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 40px;
}
.section h2 em { font-style: italic; color: var(--accent-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-nav { padding: 8px 22px; margin: 12px 16px 0; border-radius: 40px; }
  .site-nav-links { gap: 16px; font-size: 0.85rem; }
  .nav-toggle { display: block; }
  .site-nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    background: white;
    flex-direction: column;
    padding: 22px 30px;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(31, 58, 82, 0.12);
    display: none;
    min-width: 200px;
  }
  .site-nav-links.open { display: flex; }
  .site-logo img { height: 110px; }
  .site-nav.compact .site-logo img { height: 56px; }
  .page-header { padding: 50px 22px 40px; }
  .page-header::after { width: 50%; opacity: 0.18; }
  .page-title { font-size: 2.4rem; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand .logo img { height: 110px; }
}

@media (max-width: 600px) {
  .site-logo img { height: 88px; }
  .site-nav.compact .site-logo img { height: 48px; }
  .site-nav { padding: 8px 18px; margin: 10px 10px 0; }
  .page-title { font-size: 2rem; }
  .section { padding: 50px 22px; }
}

/* Utilitaire accessibilité — masque visuellement mais garde le texte
   accessible aux lecteurs d'écran et aux moteurs de recherche */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
