/* ══════════════════════════════════════════════════
   Cabinet Infirmier Trébeurden — Feuille de styles
   ══════════════════════════════════════════════════ */

/* ── Polices système (aucune dépendance externe) ────
   Serif  : Georgia → titres & noms (h1, .ville, .nurse-name)
   Sans   : system-ui → corps de texte, labels
   ───────────────────────────────────────────────── */


/* ── 1. Variables ────────────────────────────────── */
:root {
  --ink:          #385067;
  --sage:         #7a9e8e;
  --sage-light:   #a8c5b6;
  --cream:        #f6f3ee;
  --cream-dark:   #ece7df;
  --pink-pastel:        #f6eef3;
  --pink-pastel-dark:   #edd9e5;
  --white:        #ffffff;
  --accent:       #4a7c6b;
  --accent-warm:  #c9a96e;
}


/* ── 2. Reset & base ─────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ── 3. Arrière-plan décoratif ───────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(122,158,142,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}


/* ── 4. Mise en page ─────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 60px 32px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ── 5. Mise en page deux colonnes ───────────────── */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.sidebar {
  flex-shrink: 0;
}

.logo {
  width: auto;
  height: auto;
  display: block;
  animation: fadeDown 1s ease both;
}

.content {
  flex: 1;
  min-width: 0; /* empêche le débordement flex */
}


/* ── 6. En-tête ──────────────────────────────────── */
.cabinet-label {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
  animation: fadeDown 1s 0.15s ease both;
}

h1 {
  font-family: Georgia, Garamond, "Palatino Linotype", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
  animation: fadeDown 1s 0.3s ease both;
}

.ville-group {
  display: inline-block;
  margin-bottom: 48px;
}

.ville {
  font-family: Georgia, Garamond, "Palatino Linotype", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--sage);
  animation: fadeDown 1s 0.45s ease both;
}


/* ── 7. Séparateur ───────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--sage-light);
  animation: growRight 0.8s 0.6s ease both;
}


/* ── 8. Section équipe ───────────────────────────── */
.nurses {
  margin-bottom: 48px;
  animation: fadeUp 1s 0.7s ease both;
}

.nurse-name {
  font-family: Georgia, Garamond, "Palatino Linotype", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ink);
}

.credential {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}


/* ── 9. Carte contact ────────────────────────────── */
.contact {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow:
    0 1px 3px rgba(56,80,103,0.04),
    0 8px 32px rgba(56,80,103,0.06);
  animation: fadeUp 1s 0.9s ease both;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}
.contact-row + .contact-row {
  border-top: 1px solid var(--cream);
}

.contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 10px;
  color: var(--accent);
}
.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-text {
  padding-top: 6px;
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
  font-weight: 400;
}
.contact-value {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}
.contact-value a[href^="tel"] {
  font-size: 2.1rem;
}
.contact-value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-dark);
  transition: border-color 0.3s;
}
.contact-value a:hover {
  border-color: var(--accent);
}


/* ── 10. Pied de page ────────────────────────────── */
.footer {
  margin-top: 56px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--sage-light);
  letter-spacing: 0.05em;
  animation: fadeUp 1s 1.1s ease both;
}


/* ── 11. Animations ──────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes growRight {
  from { width: 0; }
  to   { width: 100%; }
}


/* ── 12. Responsive ──────────────────────────────── */

/* Tablette & grand mobile */
@media (max-width: 600px) {
  .page { justify-content: flex-start; padding-top: 48px; }
}

/* Mobile standard (≤480px) : empilement vertical */
@media (max-width: 480px) {
  .page    { padding: 36px 20px 32px; }
  .contact { padding: 24px 16px; }

  .layout  { flex-direction: column; gap: 24px; }
  .logo    { width: 33%; height: auto; }

  .ville-group { margin-bottom: 32px; }
  .nurses  { margin-bottom: 32px; }
  .footer  { margin-top: 40px; }
}

/* Très petit mobile (≤360px) */
@media (max-width: 360px) {
  .page { padding: 28px 16px 24px; }

  .nurse-name    { font-size: 1.3rem; }
  .contact-value { font-size: 0.95rem; }
}


/* ── 13. Accessibilité — contenu masqué visuellement */
.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;
}
