/* Adjim Consult — feuille de style du site public (portage PHP) */

:root {
  --teal-dark: #061e24;
  --teal: #0a3d47;
  --teal-soft: #e8f4f6;
  --gold: #bb8c3e;
  --gold-light: #fdf6e3;
  --paper: #fbf9f5;
  --ink: #1a1a1a;
  --line-dark: rgba(10, 61, 71, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; }
@media (max-width: 640px) { .section { padding: 56px 20px; } }
.section-wide { padding: 96px 24px; }
@media (min-width: 1024px) { .section-wide { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1280px) { .section-wide { padding-left: 96px; padding-right: 96px; } }

.bg-teal-dark { background: var(--teal-dark); color: #fff; }
.bg-teal-soft { background: var(--teal-soft); }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 2px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal-dark); color: #fff;
  padding: 14px 24px;
}
.site-header .row { max-width: 1152px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo img { height: 36px; width: auto; }
.site-nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a { font-size: 14px; color: rgba(255,255,255,.8); }
.site-nav a:hover { color: var(--gold); }
.site-nav .has-dropdown { position: relative; }
.site-nav .dropdown {
  display: none; position: absolute; left: 0; top: 100%; min-width: 240px;
  background: var(--teal-dark); border: 1px solid rgba(255,255,255,.1); padding: 8px 0;
}
.site-nav .has-dropdown:hover .dropdown { display: block; }
.site-nav .has-dropdown:hover > a { color: var(--gold); }
.site-nav .dropdown a { display: block; padding: 8px 16px; font-size: 14px; }
.site-nav .dropdown a:hover { background: rgba(255,255,255,.05); color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: #fff;
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-kenburns 20s ease-in-out infinite alternate; }
.hero canvas.hero-ripple { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,30,36,.92) 0%, rgba(6,30,36,.55) 42%, rgba(6,30,36,.35) 100%);
}
.hero .hero-content { position: relative; max-width: 1152px; margin: 0 auto; padding: 160px 24px 112px; text-align: center; width: 100%; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; line-height: 1.05; margin: 0; animation: hero-sweep-down 1s cubic-bezier(.16,1,.3,1) both; }
.hero h2 { font-size: clamp(28px, 5vw, 56px); font-weight: 700; color: var(--gold); margin: 8px 0 0; opacity: 0; animation: hero-fade-up .8s ease-out .55s both; }
.hero p { opacity: 0; animation: hero-fade-up .8s ease-out .9s both; }

@keyframes hero-kenburns { 0% { transform: scale(1) translate3d(0,0,0); } 100% { transform: scale(1.12) translate3d(-1.5%,-1.5%,0); } }
@keyframes hero-sweep-down { from { opacity: 0; transform: translateY(-72px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes value-prop-sweep-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.value-props .item { animation: value-prop-sweep-up .7s ease-out both; }

/* ── Icônes animées en permanence (points forts) ───────────── */
@keyframes icon-spin { to { transform: rotate(360deg); } }
@keyframes icon-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(12deg); } }
@keyframes icon-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .7; } }
@keyframes globe-meridian-spin { 0%, 100% { rx: 4px; } 50% { rx: .4px; } }
.icon-spin { animation: icon-spin 7s linear infinite; }
.icon-wave { transform-box: fill-box; transform-origin: 21% 55%; animation: icon-wave 2.2s ease-in-out infinite; }
.icon-pulse { transform-box: fill-box; transform-origin: center; animation: icon-pulse 2.4s ease-in-out infinite; }
.globe-meridian { transform-box: fill-box; transform-origin: center; animation: globe-meridian-spin 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero img.hero-bg, .hero h1, .hero h2, .hero p, .value-props .item,
  .icon-spin, .icon-wave, .icon-pulse, .globe-meridian { animation: none !important; opacity: 1!important; transform: none!important; }
}
.hero p { max-width: 560px; margin: 24px auto 0; font-size: 15px; color: rgba(255,255,255,.8); }
.value-props { position: relative; border-top: 1px solid rgba(255,255,255,.1); background: rgba(10,61,71,.85); padding: 32px 0; }
.value-props .row { display: grid; gap: 0; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .value-props .row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .value-props .row { grid-template-columns: repeat(5, 1fr); } }
.value-props .item { padding: 12px 24px; border-top: 1px solid rgba(255,255,255,.25); }
@media (min-width: 640px) { .value-props .item { border-top: none; border-left: 1px solid rgba(255,255,255,.25); } }
.value-props .item:first-child { border: none; }
.value-props .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.value-props .text { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ── Cards / grids ──────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border-radius: 16px; padding: 32px; }
.card.dark { color: #fff; }
.card h3 { margin: 12px 0 0; font-size: 22px; font-weight: 700; }
.card p { font-size: 14px; }
.card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.card li { display: flex; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }

.section-title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; color: var(--teal-dark); line-height: 1.1; letter-spacing: -.01em; }
.section-title--md { font-size: clamp(26px, 3.4vw, 38px); }
.section-title.on-dark { color: #fff; }
.section-subtitle { margin-top: 16px; max-width: 480px; font-size: 16px; line-height: 1.7; color: rgba(26,26,26,.7); }
.on-dark .section-subtitle { color: rgba(255,255,255,.75); }
.section-title .gold { color: var(--gold); }

/* ── Team ───────────────────────────────────────────────── */
.team-card { border: 2px solid rgba(187,140,62,.7); border-radius: 16px; padding: 28px 20px; text-align: center; }
.team-card img, .team-card .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 33%; margin: 0 auto; }
.team-card .avatar { display: flex; align-items: center; justify-content: center; background: rgba(187,140,62,.15); color: var(--gold); font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.team-card p.name { margin: 14px 0 0; font-weight: 600; }
.team-card p.role { margin: 6px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }
.team-card .link-btn { display: block; margin: 12px auto 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-style: italic; color: var(--gold); background: none; border: none; cursor: pointer; padding: 0; }
.team-card .link-btn:hover { color: #fff; }

/* ── 3D tilt (cartes services/équipe/secteurs) ─────────────── */
.tilt-card { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; --mx: 50%; --my: 50%; }
.tilt-card:hover { box-shadow: 0 28px 55px -16px rgba(6,30,36,.4); }
.tilt-card .card-shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle 220px at var(--mx) var(--my), rgba(255,255,255,.4), transparent 70%);
  transition: opacity .35s ease;
}
.tilt-card:hover .card-shine { opacity: 1; }

/* ── Chiffres clés (tuiles avec compteur en boucle) ────────── */
.stat-box { border: 2px solid rgba(6,30,36,.3); border-radius: 12px; background: #fff; padding: 20px; }
.stat-box .value { margin: 0; font-size: 24px; font-weight: 600; color: var(--teal-dark); }
.stat-box .label { margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: rgba(26,26,26,.5); }

/* ── Signature / points forts ──────────────────────────────── */
.signature-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .signature-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }

/* ── Quand nous appeler (situations) ───────────────────────── */
.situations-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .situations-grid { grid-template-columns: 0.65fr 1fr; gap: 48px; } }
.situation-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line-dark); padding: 24px 0; transition: transform .3s; }
.situation-row:first-child { border-top: none; }
.situation-row:last-child { border-bottom: 1px solid var(--line-dark); }
.situation-row:hover { transform: translateX(12px); }
.situation-row .arrow { display: none; flex-shrink: 0; color: var(--gold); transition: color .3s; }
.situation-row:hover .arrow { color: var(--teal-dark); }
@media (min-width: 640px) { .situation-row .arrow { display: block; } }

/* ── Pages de service ───────────────────────────────────────── */
.service-intro-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .service-intro-grid { grid-template-columns: 1fr 0.85fr; } }
.service-cta { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 640px) { .service-cta { flex-direction: row; } }

/* ── Widget de chat visiteur ────────────────────────────────── */
#chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 300; font-family: 'IBM Plex Sans', Arial, sans-serif; }
#chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: var(--teal-dark); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(6,30,36,.35); transition: transform .2s;
}
#chat-toggle:hover { transform: translateY(-2px); }
#chat-panel {
  position: absolute; right: 0; bottom: 72px; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(6,30,36,.35); overflow: hidden;
  display: flex; flex-direction: column; max-height: 70vh;
}
#chat-panel[hidden] { display: none; }
#chat-panel-header { background: var(--teal-dark); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; }
#chat-panel-header button { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 16px; }
#chat-panel-header button:hover { color: #fff; }
#chat-categories { padding: 16px; overflow-y: auto; }
#chat-categories p { font-size: 13px; color: rgba(26,26,26,.7); margin: 0 0 12px; }
.chat-category-btn { display: block; width: 100%; text-align: left; background: var(--teal-soft); border: none; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; color: var(--teal-dark); cursor: pointer; transition: background .2s; }
.chat-category-btn:hover { background: var(--gold-light); }
#chat-thread-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#chat-banner { background: var(--gold-light); color: var(--teal-dark); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); }
#chat-banner .chat-banner-actions { margin-top: 6px; display: flex; gap: 8px; }
#chat-banner button { font-size: 11px; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--teal-dark); background: #fff; cursor: pointer; }
#chat-banner button.primary { background: var(--gold); border-color: var(--gold); }
#chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.chat-msg { max-width: 85%; font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 10px; }
.chat-msg.visitor { align-self: flex-end; background: var(--gold); color: var(--teal-dark); }
.chat-msg.staff { align-self: flex-start; background: var(--teal-soft); color: var(--teal-dark); }
.chat-msg.staff .chat-msg-author { font-weight: 600; font-size: 11px; margin-bottom: 2px; }
.chat-msg.system { align-self: center; color: rgba(26,26,26,.5); font-size: 11px; font-style: italic; text-align: center; }
#chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-dark); }
#chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line-dark); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; }
#chat-form button { background: var(--gold); border: none; border-radius: 8px; width: 36px; font-weight: 700; cursor: pointer; }
#chat-end-btn { border: none; background: none; color: rgba(26,26,26,.5); font-size: 11px; padding: 8px; cursor: pointer; text-decoration: underline; }
#chat-end-btn:hover { color: var(--teal-dark); }

/* ── Contact ────────────────────────────────────────────────── */
.contact-eyebrow-line { display: inline-block; width: 32px; height: 1px; background: rgba(187,140,62,.5); vertical-align: middle; }
.contact-image-quote { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(0deg, rgba(6,30,36,.9), transparent); padding: 64px 24px 24px; }
.contact-image-quote p { margin: 0; font-size: 14px; font-weight: 500; color: #fff; }
.badge-box { border: 1px solid var(--line-dark); background: #fff; padding: 16px 12px; text-align: center; }
.badge-box .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.badge-box p { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.contact-direct-row { display: flex; align-items: center; gap: 12px; }
.contact-direct-row .dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.contact-direct-row a:hover { color: var(--gold); }

/* ── Fondateur / À propos ───────────────────────────────────── */
.founder-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .founder-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.founder-photo-wrap { position: relative; }
@media (min-width: 1024px) { .founder-photo-wrap { position: sticky; top: 96px; } }
.founder-photo-wrap .photo { position: relative; aspect-ratio: 2/3; width: 100%; overflow: hidden; }
.founder-photo-wrap .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Highlights (points forts) ─────────────────────────────── */
.highlight-item { display: flex; align-items: center; gap: 16px; border-radius: 16px; background: var(--teal-soft); padding: 20px 24px; transition: background .25s, color .25s; }
.highlight-item svg { flex-shrink: 0; color: var(--teal-dark); width: 22px; height: 22px; }
.highlight-item p { margin: 0; font-size: 14px; font-weight: 500; color: var(--teal-dark); }
.highlight-item:hover { background: var(--gold); }

/* ── Modales (équipe / secteurs) ───────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(6,30,36,.75); align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,.35); max-width: 900px; width: 100%; max-height: 85vh; overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .modal-box.two-col { grid-template-columns: 0.85fr 1.15fr; } }
.modal-box .modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; font-size: 16px; cursor: pointer; }
.modal-box .modal-img { position: relative; min-height: 240px; width: 100%; background: var(--teal-soft); }
.modal-box .modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-box .modal-body { padding: 32px; overflow-y: auto; max-height: 85vh; }
.modal-box .modal-body h3 { margin: 0; font-size: 20px; color: var(--teal-dark); }
.modal-box .modal-body .role { margin: 4px 0 0; font-size: 13px; color: rgba(26,26,26,.6); }
.modal-box .modal-eyebrow { margin: 24px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.modal-box .modal-body p.text { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: rgba(26,26,26,.75); }
.modal-box .modal-body ul.expertise { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.modal-box .modal-body ul.expertise li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: rgba(26,26,26,.75); }
.modal-box .modal-body ul.expertise li::before { content: ''; margin-top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.modal-box .modal-actions { margin-top: 28px; display: flex; gap: 12px; }

/* ── Carousel secteurs ──────────────────────────────────────── */
.sector-carousel-wrap { position: relative; }
.sector-track { display: flex; gap: 28px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sector-track::-webkit-scrollbar { display: none; }
.sector-card { flex-shrink: 0; width: 300px; scroll-snap-align: start; cursor: pointer; border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; background: #fff; }
@media (min-width: 640px) { .sector-card { width: 380px; } }
.sector-card img { height: 220px; width: 100%; object-fit: cover; }
.sector-card .body { padding: 24px; }
.sector-card h3 { border-bottom: 2px solid var(--teal-dark); padding-bottom: 8px; display: inline-block; font-size: 18px; }
.sector-card p.more { margin-top: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.sector-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; color: var(--teal-dark); }
@media (min-width: 640px) { .sector-nav { display: flex; } }
.sector-nav:hover { border-color: var(--gold); color: var(--gold); }
.sector-nav.prev { left: -16px; }
.sector-nav.next { right: -16px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-bottom: 5px solid var(--gold-light); background: var(--teal-soft); padding: 56px 24px; text-align: center; }
.site-footer img.logo { margin: 0 auto; width: 220px; }
.site-footer .tagline { margin-top: 16px; font-size: 14px; color: rgba(26,26,26,.8); }
.site-footer .contact-row { max-width: 900px; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; border-top: 1px solid rgba(26,26,26,.1); padding-top: 24px; font-size: 14px; color: rgba(26,26,26,.6); }
.site-footer .contact-row a:hover { color: var(--gold); }
.site-footer .privacy-link { font-size: 16px; color: rgba(26,26,26,.8); }
.site-footer .privacy-link:hover { color: var(--gold); }
.site-footer .copyright { margin-top: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(26,26,26,.4); }
.social-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(26,26,26,.1); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.social-btn-fb:hover { background: #3b5998; color: #fff; }
.social-btn-li:hover { background: #0077b5; color: #fff; }

/* ── Forms ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-dark); background: #fff; padding: 10px 12px; font-size: 14px; font-family: inherit; border-radius: 2px;
}
.field.dark input, .field.dark select, .field.dark textarea { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: #fff; }
.alert { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e6f4ea; color: #1e6b34; }
.alert-danger { background: #fdecea; color: #a33025; }

/* ── Contenu éditorial (articles, pages CMS) ───────────────── */
.site-prose { font-size: 15px; line-height: 1.75; color: rgba(26,26,26,.8); }
.site-prose h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 600; color: var(--teal-dark); }
.site-prose h3 { margin: 32px 0 10px; font-size: 19px; font-weight: 600; color: var(--teal-dark); }
.site-prose p { margin: 0 0 18px; }
.site-prose ul, .site-prose ol { margin: 0 0 18px; padding-left: 22px; }
.site-prose li { margin-bottom: 6px; }
.site-prose a { color: var(--teal); text-decoration: underline; }
.site-prose img { border-radius: 12px; margin: 24px 0; }
.site-prose blockquote { margin: 24px 0; border-left: 2px solid var(--gold); padding-left: 18px; font-style: italic; color: var(--teal-dark); }

/* ── Ressources (liste + onglets) ───────────────────────────── */
.res-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; border-bottom: 1px solid var(--line-dark); padding-bottom: 16px; }
.res-tabs a { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--teal-dark); }
.res-tabs a:hover { border-color: var(--gold); color: var(--gold); }
.res-tabs a.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.res-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .res-grid { grid-template-columns: 1fr 1fr; } }
.res-card { display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: 16px; padding: 28px; background: #fff; transition: border-color .2s; }
.res-card:hover { border-color: var(--gold); }
.res-card h2 { margin: 10px 0 0; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--teal-dark); }
.res-card .res-excerpt { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: rgba(26,26,26,.65); }
.res-card .res-more { margin-top: auto; padding-top: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.res-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(26,26,26,.5); margin: 0; }
.site-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.site-prose th, .site-prose td { border: 1px solid var(--line-dark); padding: 8px 10px; text-align: left; vertical-align: top; }
.site-prose th { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.site-prose figure { margin: 24px 0; }
.site-prose figure img { width: 100%; height: auto; border-radius: 12px; margin: 0; }

/* ── Fiches ressources (mise en forme de référence) ───────────── */
.res-article { font-family: 'IBM Plex Sans', Arial, sans-serif; font-size: 16px; line-height: 1.75; color: var(--ink, #17383b); }
.res-article .eureka-reading-time { display: none; }
.res-article .eureka-section-label { margin: 0 0 12px; font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.res-article .eureka-subtitle { margin: 10px 0 24px; font-size: 17px; line-height: 1.65; font-style: italic; color: rgba(26,26,26,.6); }
.res-article h2 { margin: 52px 0 20px; font-size: 30px; line-height: 1.22; font-weight: 600; letter-spacing: -.02em; color: var(--teal-dark); }
.res-article h3 { margin: 34px 0 12px; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--teal-dark); }
@media (max-width: 640px) { .res-article h2 { font-size: 25px; } .res-article h3 { font-size: 19px; } }
.res-article p { margin: 0 0 18px; font-size: 16px; line-height: 1.75; color: #17383b; }
.res-article .eureka-lead { font-size: 19px; line-height: 1.7; color: var(--teal-dark); }
.res-article ul, .res-article ol { margin: 12px 0 24px; padding-left: 25px; }
.res-article li { margin: 0 0 7px; padding-left: 3px; font-size: 16px; line-height: 1.65; }
.res-article .eureka-key-point { margin: 34px 0 40px; padding: 26px 30px; background: #f5f2ea; border-left: 3px solid var(--gold); }
.res-article .eureka-key-label { margin: 0 0 10px; font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.res-article .eureka-key-point p { margin: 0; font-size: 17px; line-height: 1.65; }
.res-article .eureka-table-wrap { width: 100%; margin: 28px 0 42px; overflow-x: auto; }
.res-article .eureka-table, .res-article table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.res-article .eureka-table th, .res-article table th { padding: 14px 15px; background: var(--teal-dark); color: #fff; border: 1px solid var(--teal-dark); text-align: left; font-weight: 600; }
.res-article .eureka-table td, .res-article table td { padding: 14px 15px; background: #fff; color: #17383b; border: 1px solid #d8d2c6; vertical-align: top; }
.res-article .eureka-table tbody tr:nth-child(even) td, .res-article table tbody tr:nth-child(even) td { background: #faf9f5; }
.res-article .eureka-diagram { margin: 42px 0 34px; }
.res-article .eureka-diagram img { display: block; width: 100%; height: auto; border: 1px solid #d8d2c6; }
.res-article .eureka-diagram-title { margin: 0 0 14px; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--teal-dark); }
.res-article .eureka-diagram-description { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: rgba(26,26,26,.6); }
.res-article .eureka-caption { margin: 10px 0 0; font-size: 12px; line-height: 1.55; font-style: italic; color: rgba(26,26,26,.6); }
.res-article .eureka-conclusion-lead { margin: 34px 0 30px; padding: 22px 16px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font-size: 20px; line-height: 1.5; font-weight: 500; font-style: italic; color: var(--teal-dark); }
.res-article .eureka-final-statement { margin: 28px 0 40px; padding: 22px 20px; background: #f5f2ea; border-left: 3px solid var(--gold); font-size: 17px; line-height: 1.7; font-weight: 500; }
.res-article .eureka-method-note { margin: 36px 0 42px; padding: 20px 24px; border: 1px solid #d8d2c6; font-size: 13px; line-height: 1.6; font-style: italic; color: rgba(26,26,26,.6); }
.res-article .eureka-cta { margin: 55px 0 10px; padding: 25px 20px; background: #f5f2ea; border-top: 2px solid var(--gold); }
.res-article .eureka-cta-label { margin: 0 0 14px; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.res-article .eureka-cta p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }
.res-article .eureka-cta p:last-child { margin-bottom: 0; }
.res-article .eureka-cta a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.res-article figure { margin: 24px 0; }
.res-article figure img, .res-article img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0; }

/* ── Menu mobile ───────────────────────────────────────── */
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: #fff; }
.nav-mobile-cta { display: none; }
@media (min-width: 768px) { .nav-toggle { display: none; } }
@media (max-width: 479px) { .header-cta { display: none; } }
.site-nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; background: var(--teal-dark); padding: 8px 24px 24px; border-top: 1px solid rgba(255,255,255,.1); }
.site-nav.open > a, .site-nav.open .has-dropdown > a { display: block; width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav.open .has-dropdown { width: 100%; }
.site-nav.open .dropdown { position: static; display: none; min-width: 0; border: 0; background: transparent; padding: 0 0 8px 14px; }
.site-nav.open .has-dropdown.open .dropdown { display: block; }
.site-nav.open .has-dropdown:not(.open) .dropdown { display: none; }
.site-nav.open .nav-mobile-cta { display: block; margin-top: 18px; font-weight: 600; color: var(--gold); border: 0; }

/* ── Bandeau de confirmation et formulaire de contact ─────── */
.contact-flash { max-width: 1152px; margin: 16px auto 0; padding: 14px 20px; border-radius: 4px; font-size: 14px; line-height: 1.6; }
.contact-flash.ok { background: #e6f4ea; color: #1e6b34; }
.contact-flash.err { background: #fdecea; color: #a33025; }
.contact-form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .contact-form-grid { grid-template-columns: 1fr 1fr; } }
#contact-modal select { border: 1px solid var(--line-dark); background: #fff; padding: 10px 12px; font-size: 14px; font-family: inherit; border-radius: 2px; }

/* ── Fiche expert sur smartphone ───────────────────────────── */
@media (max-width: 767px) {
  .modal-box { overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: 88vh; }
  .modal-box .modal-img { min-height: 0; height: 40vh; }
  .modal-box .modal-img img { object-position: center 15%; }
  .modal-box .modal-body { max-height: none; overflow: visible; padding: 24px; }
  .modal-box .modal-actions { flex-wrap: wrap; }
  .modal-box .modal-actions a { flex: 1 1 100%; }
}
