/* ===================================================
   TYCHE — Design system
   Palette: navy (autorite/finance), or (rarete/succes), ivoire (clarte)
=================================================== */

:root{
  --navy-950: #0a1f38;
  --navy-900: #0d2a49;
  --navy-800: #123657;
  --navy-700: #1a4570;
  --gold-600: #a9782f;
  --gold-500: #c69a4a;
  --gold-100: #f3e6cc;
  --ivory-50: #faf8f4;
  --ivory-100: #f2ede3;
  --ink-900: #1b1c1e;
  --ink-600: #4b4f56;
  --ink-400: #7c828c;
  --line: #e4ddce;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 12px 30px -14px rgba(10,31,56,0.25);
  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:var(--ink-900);
  background:var(--ivory-50);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:"Playfair Display", Georgia, "Times New Roman", serif;
  color:var(--navy-950);
  line-height:1.18;
  margin:0 0 .55em;
  font-weight:700;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.1rem, 3.6vw, 3.2rem); }
h2{ font-size:clamp(1.6rem, 2.6vw, 2.25rem); }
h3{ font-size:1.28rem; }
p{ margin:0 0 1em; color:var(--ink-600); }
a{ color:var(--navy-800); text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:88px 0; }
.section-tight{ padding:56px 0; }
.section-alt{ background:var(--ivory-100); }
.section-navy{ background:var(--navy-950); color:var(--ivory-50); }
.section-navy h1, .section-navy h2, .section-navy h3{ color:var(--white); }
.section-navy p{ color:#c7d2df; }

.eyebrow{
  display:inline-block;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-600);
  font-weight:700;
  margin-bottom:14px;
}
.section-navy .eyebrow{ color:var(--gold-500); }

.lede{ font-size:1.15rem; max-width:640px; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 26px;
  border-radius:var(--radius);
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .18s ease;
}
.btn-primary{ background:var(--gold-600); color:var(--white); }
.btn-primary:hover{ background:#8f6425; }
.btn-outline{ border-color:var(--navy-900); color:var(--navy-900); background:transparent; }
.btn-outline:hover{ background:var(--navy-900); color:var(--white); }
.btn-outline-light{ border-color:rgba(255,255,255,.55); color:var(--white); }
.btn-outline-light:hover{ background:var(--white); color:var(--navy-950); }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; }

/* Header / nav */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,248,244,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.logo{
  font-family:"Playfair Display", Georgia, serif;
  font-size:1.5rem;
  font-weight:700;
  color:var(--navy-950);
  letter-spacing:.02em;
  display:flex;
  flex-direction:column;
  line-height:1;
  flex:none;
}
.logo span{
  font-family:"Inter", sans-serif;
  font-size:.58rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold-600);
  font-weight:600;
  margin-top:5px;
}
nav.main-nav{ display:flex; align-items:center; gap:4px; }
nav.main-nav a{
  font-size:.88rem; font-weight:600; color:var(--ink-900);
  padding:9px 16px;
  border-radius:999px;
  transition: background .15s ease, color .15s ease;
}
nav.main-nav a:hover{ background:var(--ivory-100); }
nav.main-nav a.active{ background:var(--gold-100); color:var(--gold-600); }
.nav-actions{ display:flex; align-items:center; gap:14px; flex:none; }
.lang-switch{
  display:flex; gap:2px; font-size:.76rem; font-weight:700;
  background:var(--ivory-100);
  border-radius:999px;
  padding:3px;
}
.lang-switch a{ padding:5px 12px; border-radius:999px; color:var(--ink-400); }
.lang-switch a.active{ background:var(--navy-950); color:var(--white); }
.nav-actions > a.btn{ border-radius:999px; }
.menu-toggle{
  display:none;
  background:var(--ivory-100);
  border:none;
  width:40px; height:40px;
  border-radius:50%;
  font-size:1.15rem;
  cursor:pointer;
  color:var(--navy-950);
  flex:none;
  align-items:center;
  justify-content:center;
}
.mobile-nav-extra{ display:none; }

/* Hero */
.hero{
  padding:100px 0 92px;
  background:linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; right:-120px; top:-160px;
  width:480px; height:480px; border-radius:50%;
  background:radial-gradient(circle, rgba(198,154,74,.22), transparent 70%);
}
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; position:relative; }
.hero h1{ color:var(--white); }
.hero p.lede{ color:#cfd8e3; }
.hero-badges{ display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; }
.hero-badge b{ display:block; font-family:"Playfair Display", serif; font-size:1.5rem; color:var(--gold-500); }
.hero-badge small{ color:#a9b6c7; font-size:.78rem; letter-spacing:.04em; }
.hero-panel{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  padding:30px;
}
.hero-panel h3{ color:var(--white); font-size:1.05rem; margin-bottom:16px;}
.hero-panel ul li{ display:flex; gap:10px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.1); color:#dbe2ea; font-size:.94rem;}
.hero-panel ul li:last-child{ border-bottom:none; }
.hero-panel ul li::before{ content:"—"; color:var(--gold-500); font-weight:700; }

/* Cards / grids */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:32px 28px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }
.card .num{
  font-family:"Playfair Display", serif;
  font-size:.85rem;
  color:var(--gold-600);
  font-weight:700;
  margin-bottom:10px;
  letter-spacing:.08em;
}
.card h3{ margin-bottom:10px; }
.card a.more{ font-size:.86rem; font-weight:700; color:var(--navy-800); }

/* Pricing cards: label and price used to be crammed into a single h3
   ("Intervention active — 800 à 1 000 € / jour"), which wrapped onto a
   second line on narrower cards and buried the actual number. Splitting
   them into a small label + a large, bold, colored price line keeps the
   figure legible and prominent regardless of card width. */
.price-label{
  display:block; font-size:.8rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.05em; color:var(--ink-400); margin-bottom:8px;
}
.price-value{
  font-family:"Playfair Display", serif; font-size:1.65rem; font-weight:700;
  color:var(--gold-600); line-height:1.2; margin-bottom:12px;
}

.icon-tile{
  width:46px; height:46px; border-radius:50%;
  background:var(--gold-100); color:var(--gold-600);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; margin-bottom:16px; font-family:"Playfair Display",serif;
}

/* Two column section */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.two-col.reverse .col-media{ order:2; }
.stat-row{ display:flex; gap:40px; margin-top:26px; flex-wrap:wrap; }
.stat b{ display:block; font-family:"Playfair Display",serif; font-size:2rem; color:var(--navy-950); }
.stat small{ color:var(--ink-400); font-size:.78rem; letter-spacing:.03em; }

/* Timeline */
.timeline{ border-left:2px solid var(--line); margin-left:8px; }
.timeline-item{ position:relative; padding:0 0 34px 30px; }
.timeline-item::before{
  content:""; position:absolute; left:-7px; top:2px;
  width:12px; height:12px; border-radius:50%;
  background:var(--gold-600); border:3px solid var(--ivory-50);
}
.timeline-item .date{ font-size:.78rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-600); }

/* Team */
.team-card{ text-align:left; }
.team-photo{
  width:100%; aspect-ratio:1/1; border-radius:6px;
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  display:flex; align-items:center; justify-content:center;
  color:var(--gold-500); font-family:"Playfair Display",serif; font-size:2.4rem; font-weight:700;
  margin-bottom:18px;
}
.team-role{ color:var(--gold-600); font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px;}

/* FAQ */
details.faq{ border-bottom:1px solid var(--line); padding:18px 0; }
details.faq summary{ cursor:pointer; font-weight:700; color:var(--navy-950); list-style:none; display:flex; justify-content:space-between; gap:20px; }
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{ content:"+"; color:var(--gold-600); font-size:1.3rem; flex:none; }
details.faq[open] summary::after{ content:"–"; }
details.faq p{ margin-top:12px; }

/* Process steps */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
/* step-no used to be absolutely positioned top-right, which floated it
   out of the normal flow and let it land directly on top of the h3 title
   underneath it (the box only reserved height for the title+paragraph,
   not for the number). Keeping it in-flow, stacked above the title,
   guarantees it can never overlap the text at any screen width. */
.step{ padding-top:0; }
.step .step-no{
  display:block;
  font-family:"Playfair Display",serif; font-size:1.9rem; color:var(--gold-600);
  font-weight:700; line-height:1; margin-bottom:10px;
}

/* CTA band */
.cta-band{
  background:var(--navy-950);
  color:var(--white);
  border-radius:8px;
  padding:52px 48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}
.cta-band h2{ color:var(--white); margin-bottom:6px; }
.cta-band p{ color:#c7d2df; margin:0; }

/* Form */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .full{ grid-column:1/-1; }
label{ display:block; font-size:.82rem; font-weight:700; margin-bottom:6px; color:var(--navy-950); }
input, select, textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:4px;
  font-family:inherit; font-size:.95rem; background:var(--white); color:var(--ink-900);
}
textarea{ resize:vertical; min-height:120px; }
.contact-info-list{ display:flex; flex-direction:column; gap:20px; }
.contact-info-item{ display:flex; gap:14px; align-items:flex-start; }
.contact-info-item .icon-tile{ margin-bottom:0; flex:none; }
.contact-info-item b{ display:block; color:var(--navy-950); }

/* Footer */
footer.site-footer{ background:var(--navy-950); color:#aab7c6; padding:64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-grid h4{ color:var(--white); font-family:"Inter",sans-serif; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:16px; }
.footer-grid a, .footer-grid p{ color:#aab7c6; font-size:.92rem; }
.footer-grid ul li{ padding:6px 0; }
.footer-grid ul li a:hover{ color:var(--gold-500); }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:22px; font-size:.8rem; flex-wrap:wrap; gap:10px; }
.footer-logo{ font-family:"Playfair Display",serif; color:var(--white); font-size:1.3rem; margin-bottom:10px; }

/* Badge pill */
.pill{ display:inline-block; background:var(--gold-100); color:var(--gold-600); font-size:.72rem; font-weight:700; padding:4px 12px; border-radius:20px; letter-spacing:.03em; }
.section-navy .pill{ background:rgba(255,255,255,.12); color:var(--gold-500); }

/* Responsive */
@media (max-width:960px){
  .hero-grid, .two-col{ grid-template-columns:1fr; }
  .two-col.reverse .col-media{ order:0; }
  .grid-3{ grid-template-columns:1fr 1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:680px){
  .section{ padding:60px 0; }
  /* backdrop-filter on .site-header turns it into a "containing block" for
     any position:fixed descendant (same rule as filter/transform). That
     silently trapped the mobile drawer (nav.main-nav, position:fixed)
     inside the header's own small box instead of the full viewport, so it
     rendered squashed near the top and behind the page content instead of
     as a full-screen overlay on top of it. Dropping the blur only on
     mobile (where the drawer is used) removes that containing block so
     "fixed" resolves against the viewport again, as intended. */
  .site-header{ backdrop-filter:none; background:rgba(250,248,244,.98); }
  /* Keep only the logo + hamburger in the top bar; everything else
     (nav links, language switch, contact button) lives in the slide-in
     drawer so nothing gets cramped or hidden on a phone screen. */
  .nav-actions > .lang-switch,
  .nav-actions > a.btn{ display:none; }
  .menu-toggle{ display:flex; }
  nav.main-nav{
    position:fixed; inset:var(--header-h, 64px) 0 0 0; background:var(--ivory-50);
    flex-direction:column; align-items:stretch; padding:22px 24px; gap:2px;
    transform:translateX(100%); transition:transform .25s ease; overflow-y:auto;
    z-index:60;
  }
  nav.main-nav.open{ transform:translateX(0); }
  nav.main-nav a{
    width:100%; padding:14px 16px; border-radius:14px;
    font-size:1rem;
  }
  nav.main-nav a:hover{ background:var(--ivory-100); }
  nav.main-nav a.active{ background:var(--gold-100); }
  .mobile-nav-extra{
    display:block;
    margin-top:16px;
    padding-top:18px;
    border-top:1px solid var(--line);
  }
  .mobile-nav-extra .lang-switch{
    display:flex; justify-content:center;
    background:var(--ivory-100); border-radius:999px; padding:4px;
    max-width:160px; margin:0 auto 14px;
  }
  .mobile-nav-extra .lang-switch a{ flex:1; text-align:center; padding:8px 0; border-radius:999px; }
  .mobile-nav-extra a.btn{
    width:100%; justify-content:center; border-radius:999px;
  }
  .grid-3, .grid-2, .steps, .form-grid, .footer-grid{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
}

/* Inline SVG maps should scale responsively within their container */
.card svg{ width:100%; height:auto; display:block; }

/* Clickable countries on the Europe presence map */
.card svg a.map-country{ cursor:pointer; }
.card svg a.map-country path{ transition: opacity .15s ease; }
.card svg a.map-country:hover path{ opacity:.8; }

/* Floating tooltip shown on hover over a country on the Europe map */
.map-tooltip{
  display:none;
  position:fixed;
  z-index:200;
  pointer-events:none;
  background:var(--navy-950);
  color:#fff;
  font-family:"Inter",sans-serif;
  font-size:.82rem;
  font-weight:600;
  padding:6px 12px;
  border-radius:4px;
  box-shadow:var(--shadow);
  white-space:nowrap;
}

/* Europe map: constrain height so the whole map is visible without
   scrolling, and support click-drag panning + wheel/pinch zooming. */
.map-frame{
  display:flex;
  justify-content:center;
  background:var(--ivory-100);
  border-radius:6px;
  padding:8px;
}
.map-stage{
  position:relative;
  width:100%;
  max-width:760px;
}
.map-zoom-wrap{
  overflow:hidden;
  border-radius:4px;
  cursor:grab;
  touch-action:none;
  background:var(--ivory-100);
}
.map-zoom-wrap.grabbing{ cursor:grabbing; }
.map-zoom-wrap svg{
  width:100%;
  height:auto;
  max-height:58vh;
  display:block;
  margin:0 auto;
}
.map-zoom-controls{
  position:absolute;
  top:14px;
  right:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:5;
}
.map-zoom-controls button{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--navy-950);
  font-size:1.05rem;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.map-zoom-controls button:hover{ background:var(--ivory-100); }
.map-hint{
  text-align:center;
  font-size:.78rem;
  color:var(--ink-400);
  margin-top:10px;
}

/* Clickable country index on the Europe presence page */
.country-link-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px,1fr));
  gap:10px;
  margin-top:22px;
}
.country-link{
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 14px;
  border-radius:10px;
  background:var(--ivory-100);
  color:var(--ink-900);
  font-size:.88rem;
  font-weight:600;
  text-decoration:none;
  border:1px solid var(--line);
  transition:background .15s, border-color .15s, transform .1s;
}
.country-link:hover{
  background:var(--gold-100);
  border-color:var(--gold-500);
  transform:translateY(-1px);
}
.country-link .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--navy-700);
  flex:0 0 auto;
}
.country-link.present .dot{
  background:var(--gold-500);
}

/* Country page tabs: Administratif & fiscal / Bancaire / Retail */
.country-tabs{
  margin-top:56px;
}
.country-tabs .tab-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  border-bottom:1px solid var(--line);
  margin-bottom:32px;
}
.country-tabs .tab-btn{
  appearance:none;
  border:none;
  background:transparent;
  font-family:"Inter", sans-serif;
  font-size:.92rem;
  font-weight:700;
  color:var(--ink-400);
  padding:12px 18px;
  cursor:pointer;
  border-bottom:3px solid transparent;
  margin-bottom:-1px;
  transition:color .15s, border-color .15s;
}
.country-tabs .tab-btn:hover{
  color:var(--navy-700);
}
.country-tabs .tab-btn.active{
  color:var(--navy-900);
  border-bottom-color:var(--gold-500);
}
.country-tabs .tab-panel{
  display:none;
}
.country-tabs .tab-panel.active{
  display:block;
}
.rate-table{
  width:100%;
  border-collapse:collapse;
  margin-top:18px;
  font-size:.92rem;
}
.rate-table th, .rate-table td{
  text-align:left;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
}
.rate-table th{
  color:var(--ink-400);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:700;
}
.rate-table td.rate{
  font-weight:700;
  color:var(--navy-900);
  white-space:nowrap;
}

/* Supplier lists inside cards (retail tab) */
.card ul{
  margin:0;
  padding-left:20px;
}
.card ul li{
  font-size:.92rem;
  line-height:1.6;
  color:var(--ink-600);
}
