/*
Theme Name: Digestif Toulouse v3 v3
Theme URI: https://nitpit3d.com
Description: Thème sur mesure v2 — digestif-toulouse.fr
Author: NitPit3D — Vincent Tordeux
Author URI: https://nitpit3d.com
Version: 3.0.0
License: Proprietary
Text Domain: digestif
*/

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --teal-900:  #0d4f4f;
  --teal-800:  #126060;
  --teal-700:  #1a7474;
  --teal-600:  #1e8a8a;
  --teal-500:  #22a0a0;
  --teal-100:  #e8f5f5;
  --teal-50:   #f2fafa;

  --slate-900: #0f1c2e;
  --slate-800: #1a2d44;
  --slate-600: #3d5166;
  --slate-400: #6b7c93;
  --slate-200: #d4dde8;
  --slate-100: #f0f4f8;

  --white: #ffffff;
  --gold:  #c9a84c;

  --font-head: 'Raleway', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 12px rgba(13,79,79,.08);
  --shadow-md: 0 6px 28px rgba(13,79,79,.13);
  --shadow-lg: 0 12px 48px rgba(13,79,79,.18);

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .22s;

  --max-w: 1320px;
  --gap:   clamp(16px, 3vw, 32px);
  --sec:   clamp(56px, 8vw, 96px);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { margin-bottom: 1rem; color: var(--slate-600); }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.8; color: var(--slate-600); }
strong { color: var(--slate-800); }

/* =============================================
   LAYOUT
   ============================================= */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.section        { padding: var(--sec) 0; }
.section--light { background: var(--teal-50); }
.section--dark  { background: var(--slate-900); }
.section--teal  { background: var(--teal-900); }

.sec-head       { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head p     { max-width: 700px; margin: 14px auto 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section--dark .eyebrow,
.section--teal .eyebrow {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
}
.section--dark h2, .section--teal h2,
.section--dark h3, .section--teal h3,
.section--dark p,  .section--teal p { color: rgba(255,255,255,.85); }
.section--dark h2, .section--teal h2 { color: var(--white); }

/* Grid helpers */
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.gauto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: var(--gap); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 30px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  border-radius: 50px; border: 2px solid transparent;
  transition: all var(--t) var(--ease); cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

.btn-teal  { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }
.btn-teal:hover { background: var(--teal-900); border-color: var(--teal-900); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,79,79,.3); }

.btn-white { background: var(--white); color: var(--teal-800); border-color: var(--white); }
.btn-white:hover { background: var(--teal-100); transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-outline-teal { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline-teal:hover { background: var(--teal-100); }

/* =============================================
   HEADER
   ============================================= */
#masthead {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--t);
}
#masthead.scrolled { box-shadow: var(--shadow-md); }

.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 20px;
}
.hdr-logo { flex-shrink: 0; }
.hdr-logo img { height: 50px; width: auto; }

/* Nav desktop */
.hdr-nav { display: flex; align-items: center; gap: 2px; }
.hdr-nav > li { position: relative; }
.hdr-nav > li > a {
  display: block; padding: 8px 13px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  color: var(--slate-800); border-radius: var(--r-sm);
  transition: all var(--t); white-space: nowrap;
}
.hdr-nav > li > a:hover,
.hdr-nav > li.current > a { color: var(--teal-700); background: var(--teal-100); }

/* Dropdown */
.hdr-nav .drop {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  min-width: 270px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--t); z-index: 200; pointer-events: none;
}
.hdr-nav > li:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.drop li a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: .86rem; color: var(--slate-800);
  transition: all var(--t); border-bottom: 1px solid var(--slate-100);
}
.drop li:last-child a { border-bottom: none; }
.drop li a:hover { background: var(--teal-50); color: var(--teal-700); padding-left: 24px; }

/* Header actions */
.hdr-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hdr-phone { font-size: .83rem; font-weight: 600; color: var(--slate-400); white-space: nowrap; }
.hdr-phone a { color: var(--teal-700); }
.hdr-phone a:hover { text-decoration: underline; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 23px; height: 2px; background: var(--slate-800); border-radius: 2px; transition: all var(--t); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mob-nav {
  display: none; position: fixed; inset: 78px 0 0 0;
  background: var(--white); z-index: 999; overflow-y: auto;
  padding: 20px 24px 40px; flex-direction: column; gap: 2px;
  border-top: 2px solid var(--teal-700);
}
.mob-nav.open { display: flex; }
.mob-nav a { display: block; padding: 11px 14px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; color: var(--slate-800); transition: all var(--t); }
.mob-nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.mob-nav .mob-sub { padding-left: 16px; }
.mob-nav .mob-sub a { font-size: .88rem; font-weight: 500; }
.mob-nav .mob-sep { height: 1px; background: var(--slate-200); margin: 8px 0; }
.mob-cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--slate-200); }
.mob-cta .btn { width: 100%; justify-content: center; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--teal-900);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .22;
}
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,79,79,.95) 0%, rgba(26,116,116,.75) 55%, rgba(13,79,79,.4) 100%);
}
.hero-body { position: relative; z-index: 2; max-width: 680px; padding: 80px 0; }
.hero-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); padding: 5px 16px; border-radius: 50px; margin-bottom: 22px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.15); }
.hstat { display: flex; align-items: center; gap: 12px; }
.hstat-icon { width: 44px; height: 44px; background: rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hstat-icon svg { width: 22px; height: 22px; color: var(--white); }
.hstat strong { display: block; color: var(--white); font-size: 1.15rem; font-family: var(--font-head); }
.hstat span { color: rgba(255,255,255,.7); font-size: .85rem; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-500); }
.card-img  { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-tag  { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.card h3   { font-size: 1.1rem; color: var(--slate-900); margin: 0; }
.card p    { font-size: .9rem; color: var(--slate-400); flex: 1; margin: 0; }
.card-foot { padding: 16px 26px; border-top: 1px solid var(--slate-100); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--teal-700); transition: gap var(--t); }
.card-link:hover { gap: 10px; }
.card-link svg { width: 16px; height: 16px; }

/* =============================================
   DOCTOR CARDS
   ============================================= */
.doc-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow var(--t);
}
.doc-card:hover { box-shadow: var(--shadow-lg); }
.doc-photo { width: 100%; height: 320px; object-fit: cover; object-position: top center; }
.doc-photo-placeholder {
  width: 100%; height: 320px;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.6);
}
.doc-body { padding: 28px; }
.doc-body .eyebrow { margin-bottom: 8px; }
.doc-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.doc-specialty { color: var(--teal-700); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.doc-body p { font-size: .92rem; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.doc-tag-item { font-size: .75rem; font-weight: 600; padding: 4px 12px; background: var(--teal-100); color: var(--teal-800); border-radius: 50px; }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* =============================================
   CONTENT + SIDEBAR
   ============================================= */
.layout-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.content-area h2 { color: var(--teal-900); margin: 36px 0 12px; font-size: 1.5rem; }
.content-area h3 { margin: 24px 0 8px; color: var(--slate-900); }
.content-area p  { font-size: .97rem; }
.content-area ul { margin: 0 0 1.2rem; }
.content-area ul li {
  position: relative; padding: 7px 0 7px 26px; font-size: .95rem; color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
}
.content-area ul li:last-child { border-bottom: none; }
.content-area ul li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 9px; height: 9px; background: var(--teal-600); border-radius: 50%;
}
.content-area .info-box {
  background: var(--teal-50); border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 24px 0;
}
.content-area .info-box p { color: var(--slate-700); font-size: .93rem; }
.content-area .warn-box {
  background: #fff8e1; border-left: 4px solid #f5a623;
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 24px 0;
}
.content-area .warn-box p { color: #5d4200; font-size: .93rem; }

/* Sidebar */
.sidebar { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 18px; }
.sb-card { border-radius: var(--r-lg); padding: 28px; }
.sb-card--teal { background: var(--teal-800); color: var(--white); }
.sb-card--teal h4 { color: var(--white); margin-bottom: 8px; }
.sb-card--teal p  { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 20px; }
.sb-card--teal .btn { width: 100%; justify-content: center; }
.sb-card--light { background: var(--slate-100); border: 1px solid var(--slate-200); }
.sb-card--light h4 { margin-bottom: 12px; font-size: .95rem; }
.sb-card--light p  { font-size: .88rem; color: var(--slate-400); }
.sb-card--light a  { color: var(--teal-700); font-weight: 600; }
.sb-card--light ul li { padding: 5px 0; border: none; }
.sb-card--light ul li::before { top: 13px; width: 7px; height: 7px; }

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
  background: linear-gradient(120deg, var(--teal-900) 0%, var(--teal-700) 100%);
  padding: 60px 0 52px; color: var(--white);
}
.page-hero .bc { font-size: .8rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.page-hero .bc a { color: rgba(255,255,255,.65); transition: color var(--t); }
.page-hero .bc a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,.8); }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testi { background: var(--white); border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); position: relative; }
.testi::before { content: '\201C'; position: absolute; top: 16px; right: 22px; font-size: 5rem; color: var(--teal-100); font-family: Georgia, serif; line-height: 1; }
.stars { color: #f5a623; letter-spacing: 3px; font-size: .95rem; margin-bottom: 14px; }
.testi p { font-size: .93rem; color: var(--slate-600); font-style: italic; margin-bottom: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-700); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: .9rem; color: var(--slate-900); }
.testi-op   { font-size: .8rem; color: var(--slate-400); }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band { background: linear-gradient(110deg, var(--teal-900), var(--teal-700)); padding: 72px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 36px; }
.cta-band .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   ACCORDION
   ============================================= */
.acc { border: 1px solid var(--slate-200); border-radius: var(--r-lg); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--slate-200); }
.acc-item:last-child { border-bottom: none; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--white); border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .97rem;
  color: var(--slate-900); text-align: left; gap: 12px;
  transition: background var(--t);
}
.acc-btn:hover { background: var(--teal-50); }
.acc-btn.open  { background: var(--teal-50); color: var(--teal-800); }
.acc-icon { flex-shrink: 0; transition: transform var(--t); }
.acc-btn.open .acc-icon { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 24px 24px; }
.acc-body.show { display: block; }
.acc-body p, .acc-body li { font-size: .93rem; }

/* =============================================
   FEATURES / STATS
   ============================================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.stat-item { text-align: center; padding: 32px 20px; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--slate-200); }
.stat-icon { width: 64px; height: 64px; margin: 0 auto 14px; background: var(--teal-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 30px; height: 30px; color: var(--teal-700); }
.stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--teal-700); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: .88rem; color: var(--slate-400); }

/* =============================================
   FOOTER
   ============================================= */
#colophon { background: var(--slate-900); color: rgba(255,255,255,.65); }
.ftr-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.ftr-brand img { height: 44px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 18px; }
.ftr-brand p { font-size: .88rem; max-width: 340px; line-height: 1.8; }
.ftr-brand address { font-style: normal; font-size: .85rem; margin-top: 20px; line-height: 2; }
.ftr-brand address a { color: var(--teal-500); }
.ftr-col h5 { font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.ftr-col ul li { margin-bottom: 8px; }
.ftr-col ul li a { font-size: .86rem; color: rgba(255,255,255,.55); transition: color var(--t); }
.ftr-col ul li a:hover { color: var(--white); }
.ftr-col .ftr-rdv-link { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--teal-500); font-weight: 600; margin-bottom: 10px; transition: color var(--t); }
.ftr-col .ftr-rdv-link:hover { color: var(--white); }
.ftr-bot { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
.ftr-bot a { color: rgba(255,255,255,.4); transition: color var(--t); }
.ftr-bot a:hover { color: var(--white); }
.ftr-credit a { color: var(--teal-500); font-weight: 700; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sb-card { flex: 1 1 280px; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hdr-nav, .hdr-actions .btn, .hdr-phone { display: none; }
  .burger { display: flex; }
  :root { --sec: 48px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .hero-grad { background: linear-gradient(180deg, rgba(13,79,79,.93) 0%, rgba(26,116,116,.85) 100%); }
  .hero-stats { gap: 18px; }
  .ftr-top { grid-template-columns: 1fr; padding: 40px 0 32px; }
  .ftr-bot { flex-direction: column; text-align: center; }
  .cta-band .cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   UTILS
   ============================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: var(--r-lg); overflow: hidden; }
.shadow { box-shadow: var(--shadow-md); }
