/*
Theme Name: Cabinet Infirmier d'Arcambal
Theme URI: https://arcambal.infirmier.pro
Author: Cabinet Infirmier d'Arcambal
Author URI: https://arcambal.infirmier.pro
Description: Thème sur mesure pour le Cabinet Infirmier d'Arcambal. Soins infirmiers à domicile, Lot (46).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: cabinet-infirmier
*/

/* ════════════════════════════════════════
   VARIABLES & RESET
════════════════════════════════════════ */
:root {
  --blue:       #1e4d7b;
  --blue-mid:   #2d6ba8;
  --blue-light: #e8f1fa;
  --sky:        #f0f6ff;
  --white:      #fafbfd;
  --card:       #ffffff;
  --stone:      #f4f2ee;
  --text:       #1a2332;
  --muted:      #5a6a7e;
  --line:       #e2e8f0;
  --gold:       #c8924a;
  --gold-pale:  #fdf5eb;
  --ribbon-h:   38px;
  --max-w:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

/* ════════════════════════════════════════
   RIBBON
════════════════════════════════════════ */
.site-ribbon {
  background: var(--blue);
  height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  will-change: height, opacity;
  position: relative;
  z-index: 110;
}
.site-ribbon.hidden {
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.ribbon-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ribbon-dot {
  width: 7px; height: 7px;
  background: #6ee4b8;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.ribbon-sep {
  display: inline-block;
  width: 1px; height: 14px;
  background: rgba(255,255,255,.25);
  margin: 0 14px;
  vertical-align: middle;
}
.ribbon-avail { font-size: 0.78rem; color: rgba(255,255,255,.65); }

/* ════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
  position: relative;
}
.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(30,77,123,.09);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  height: 44px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-mark-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blue);
  font-weight: 700;
}
.nav-logo-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.nav-logo-text small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Menu principal */
.nav-menu {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  text-decoration: none;
  font-size: 0.87rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a { color: var(--blue); font-weight: 600; }

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--blue-mid); transform: translateY(-1px); color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--blue); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30,77,123,.1);
  z-index: 99;
  list-style: none;
  margin: 0; padding: 0;
}
.mobile-menu.open { display: block; }
.mobile-menu li a {
  display: block;
  padding: 15px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background .15s, color .15s;
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a:hover { background: var(--sky); color: var(--blue); }

/* ════════════════════════════════════════
   SECTIONS COMMUNES
════════════════════════════════════════ */
.s-inner { max-width: var(--max-w); margin: 0 auto; }
.s-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
}
.s-lead {
  color: var(--muted);
  max-width: 560px;
  font-size: 0.97rem;
  line-height: 1.75;
}
.s-head { margin-bottom: 52px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.5);
  padding: 36px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner strong { color: rgba(255,255,255,.85); }
.footer-copy { font-size: 0.82rem; }
.footer-copy a { color: #6ab0e0; text-decoration: none; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #6ab0e0; text-decoration: none; font-size: 0.83rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-deon {
  font-size: 0.75rem;
  opacity: .7;
  margin-top: 6px;
  display: block;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-menu-wrap, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .ribbon-avail, .ribbon-sep { display: none; }
  .nav-inner { padding: 12px 14px; gap: 8px; }
}
