/* =========================================================
   GOSS — Charte graphique
   Bleu marine #0B3D91 · Vert #6FB52E · Blanc / gris clair
   ========================================================= */

:root {
  --goss-blue: #0B3D91;
  --goss-blue-dark: #082b66;
  --goss-blue-light: #e8eefb;
  --goss-green: #6FB52E;
  --goss-green-dark: #5a9425;
  --goss-green-light: #eef7e3;
  --goss-white: #ffffff;
  --goss-gray-50: #f7f9fc;
  --goss-gray-100: #eef1f6;
  --goss-gray-200: #dce2ec;
  --goss-gray-500: #6b7280;
  --goss-gray-700: #374151;
  --goss-ink: #1a2332;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11, 61, 145, 0.08);
  --shadow: 0 6px 24px rgba(11, 61, 145, 0.10);
  --shadow-lg: 0 16px 48px rgba(11, 61, 145, 0.16);
  --maxw: 1180px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--goss-ink);
  background: var(--goss-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--goss-blue); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--goss-blue); text-decoration: none; }
a:hover { color: var(--goss-green-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section--tint { background: var(--goss-gray-50); }
.section--blue { background: var(--goss-blue); color: #fff; }
.section--blue h1, .section--blue h2, .section--blue h3 { color: #fff; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--goss-gray-700); max-width: 680px; }
.section--blue .lead { color: rgba(255,255,255,.85); }
.muted { color: var(--goss-gray-500); }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: .78rem; color: var(--goss-green-dark);
  margin-bottom: .75rem;
}
.section--blue .eyebrow { color: var(--goss-green); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 50px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  font-size: .98rem; line-height: 1; text-align: center;
}
.btn-primary { background: var(--goss-blue); color: #fff; }
.btn-primary:hover { background: var(--goss-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green { background: var(--goss-green); color: #fff; }
.btn-green:hover { background: var(--goss-green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--goss-blue); border-color: var(--goss-blue); }
.btn-outline:hover { background: var(--goss-blue); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--goss-blue); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--goss-gray-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--goss-blue); font-size: 1.3rem; }
.brand img { height: 40px; width: 40px; }
.brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--goss-gray-500); letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--goss-gray-700); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--goss-blue); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--goss-blue); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--goss-blue) 0%, var(--goss-blue-dark) 100%);
  color: #fff; padding: 5rem 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(111,181,46,.35), transparent 70%); border-radius: 50%;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.5rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero-badge .ic { color: var(--goss-green); }
.profile-photo {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08);
  border: 3px solid rgba(255,255,255,.25); overflow: hidden;
}
.profile-photo img { border-radius: 50%; object-fit: cover; width: 100%; height: 100%; }
/* Grand logo dans le hero (sans cercle autour) */
.hero-logo { width: 340px; max-width: 85%; height: auto; margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); animation: heroFadeUp 1.4s ease both .5s; }
/* Apparition progressive des textes du hero (étalée sur ~5 s au chargement) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-content > * { animation: heroFadeUp 1.4s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .2s; }
.hero-content > *:nth-child(2) { animation-delay: .8s; }
.hero-content > *:nth-child(3) { animation-delay: 1.4s; }
.hero-content > *:nth-child(4) { animation-delay: 2.0s; }
.hero-content > *:nth-child(5) { animation-delay: 2.6s; }
.hero-content > *:nth-child(6) { animation-delay: 3.2s; }
.hero-content > *:nth-child(7) { animation-delay: 3.8s; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(11,61,145,.82), rgba(8,43,102,.88)); }
.hero--image::after, .hero--video::after, .hero--slideshow::after { display: none; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--goss-gray-200); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: .2s ease; height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--goss-blue-light); }
.card .ic-circle {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--goss-blue-light); color: var(--goss-blue); margin-bottom: 1rem;
}
.card h3 { margin-bottom: .4rem; }
/* Image de couverture : occupe toute la partie haute de la carte */
.card-cover {
  margin: -1.75rem -1.75rem 1.25rem; height: 180px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--goss-blue-light);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover.placeholder { display: grid; place-items: center; font-size: 3rem; }
/* Miniature d'image pour les petites cartes (colonne « À propos ») */
.mini-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
/* Grande image de la page « À propos » */
.about-image { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cartes d'offre */
.offer-card { position: relative; }
.offer-card .price {
  font-size: 1.5rem; font-weight: 800; color: var(--goss-green-dark); margin: .5rem 0 1rem;
}
.offer-card ul.included { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.offer-card ul.included li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; color: var(--goss-gray-700); font-size: .95rem; }
.offer-card ul.included li::before {
  content: '✓'; position: absolute; left: 0; color: var(--goss-green-dark); font-weight: 800;
}

.tag {
  display: inline-block; padding: .25rem .75rem; border-radius: 50px; font-size: .75rem;
  font-weight: 700; letter-spacing: .03em;
}
.tag-blue { background: var(--goss-blue-light); color: var(--goss-blue); }
.tag-green { background: var(--goss-green-light); color: var(--goss-green-dark); }

/* Audience split (deux univers) */
.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.audience-panel {
  border-radius: var(--radius); padding: 2.5rem; color: #fff; position: relative; overflow: hidden;
}
.audience-panel.parti { background: linear-gradient(135deg, var(--goss-blue), var(--goss-blue-dark)); }
.audience-panel.entre { background: linear-gradient(135deg, var(--goss-green-dark), var(--goss-green)); }
.audience-panel h3 { color: #fff; font-size: 1.5rem; }
.audience-panel p { color: rgba(255,255,255,.9); }

/* Étapes méthode */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--goss-blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.step .num::before { content: counter(step); }

/* Garanties */
.pillar { text-align: center; }
.pillar .ic-circle { margin: 0 auto 1rem; background: var(--goss-green-light); color: var(--goss-green-dark); }
/* Icônes des engagements (SVG blanc sur fond bleu/image) */
.pillar-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .45);
}
.pillar-ic svg {
  width: 36px; height: 36px; fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Formulaires ---------- */
.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--goss-gray-200);
  border-radius: var(--radius-sm); font: inherit; color: var(--goss-ink); background: #fff;
  transition: .15s;
}
.form-control:focus { outline: none; border-color: var(--goss-blue); box-shadow: 0 0 0 3px var(--goss-blue-light); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-cards { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-cards label {
  flex: 1; min-width: 180px; border: 1.5px solid var(--goss-gray-200); border-radius: var(--radius-sm);
  padding: .8rem 1rem; cursor: pointer; font-weight: 600; display: flex; gap: .5rem; align-items: center;
}
.radio-cards label:has(input:checked) { border-color: var(--goss-blue); background: var(--goss-blue-light); box-shadow: 0 0 0 3px var(--goss-blue-light); }
.form-section-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--goss-blue); }
/* Champs dynamiques selon le profil (devis) */
.profile-fields { display: none; }
.profile-fields.active {
  display: block; animation: profileIn .35s ease;
  border-left: 3px solid var(--goss-green); padding-left: 1rem; margin: .25rem 0 1.25rem;
}
@keyframes profileIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: #c0392b; font-size: .85rem; }
.helptext { display: block; font-size: .82rem; color: var(--goss-gray-500); margin-top: .25rem; }
.form-card { background: #fff; border: 1px solid var(--goss-gray-200); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.info-banner { background: var(--goss-blue-light); border: 1px solid color-mix(in srgb, var(--goss-blue) 25%, transparent);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem; line-height: 1.5; }
.info-banner p { margin: .35rem 0 0; font-size: .92rem; color: var(--goss-gray-600, #4b5563); }

/* ---------- Barre retour admin (visible sur le site quand connecté staff) ---------- */
.admin-back-bar {
  position: fixed; left: 20px; bottom: 22px; z-index: 1200;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--goss-blue, #0B3D91); color: #fff; font-weight: 700; font-size: .88rem;
  padding: .7rem 1.1rem; border-radius: 50px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(11,61,145,.35); transition: transform .15s ease, background .15s ease;
}
.admin-back-bar:hover { background: #082b66; color: #fff; transform: translateY(-2px); }
@media (max-width: 600px) { .admin-back-bar { font-size: .8rem; padding: .6rem .9rem; } }
.client-back-bar {
  position: fixed; left: 20px; bottom: 22px; z-index: 1200;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--goss-green, #6FB52E); color: #fff; font-weight: 700; font-size: .88rem;
  padding: .7rem 1.1rem; border-radius: 50px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(111,181,46,.35); transition: transform .15s ease, background .15s ease;
}
.client-back-bar:hover { background: #5a9425; color: #fff; transform: translateY(-2px); }

/* ---------- Aperçu du CV (page de repli) ---------- */
.cv-viewer { border: 1px solid var(--goss-gray-200); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #f4f6f9; }
.cv-viewer iframe { width: 100%; height: 80vh; min-height: 520px; border: 0; display: block; }

/* ---------- Modale CV ---------- */
.cv-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: clamp(.5rem, 3vw, 2rem); }
.cv-modal[hidden] { display: none; }
.cv-modal-backdrop { position: absolute; inset: 0; background: rgba(8,20,45,.6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease; }
.cv-modal.open .cv-modal-backdrop { opacity: 1; }
.cv-modal-card { position: relative; width: min(960px, 100%); height: min(88vh, 100%); background: #fff;
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.45); display: flex; flex-direction: column;
  transform: translateY(16px) scale(.98); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s ease; }
.cv-modal.open .cv-modal-card { transform: none; opacity: 1; }
.cv-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; background: linear-gradient(135deg, var(--goss-blue, #0B3D91), var(--goss-green, #6FB52E));
  color: #fff; flex: 0 0 auto; }
.cv-modal-title { font-weight: 800; font-size: 1rem; }
.cv-modal-actions { display: flex; align-items: center; gap: .5rem; }
.cv-btn-sm { padding: .45rem .8rem !important; font-size: .82rem !important; }
.cv-modal-actions .btn-outline { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.cv-modal-actions .btn-outline:hover { background: rgba(255,255,255,.28); }
.cv-modal-close { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 36px; height: 36px;
  border-radius: 10px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cv-modal-close:hover { background: rgba(255,255,255,.32); }
.cv-modal-body { flex: 1 1 auto; background: #525659; min-height: 0; }
.cv-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) {
  .cv-modal-title { font-size: .85rem; }
  .cv-modal-actions .cv-btn-sm { padding: .4rem .6rem !important; }
}

/* ---------- Aside contact (page devis) ---------- */
.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 96px; }
.contact-card { border: 1px solid var(--goss-gray-200); }
.contact-title { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .25rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; padding: .7rem .5rem; border-radius: var(--radius-sm); transition: background .15s ease; }
.contact-list li:hover { background: var(--goss-gray-100, #f4f6f9); }
.contact-ico {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--goss-blue-light); border-radius: 50%; font-size: 1.15rem;
}
.contact-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--goss-gray-500); }
.contact-body a { font-weight: 600; word-break: break-word; }
.contact-privacy { background: var(--goss-blue-light); border: 0; }
.contact-privacy h3 { margin-top: 0; }

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 0; position: fixed; top: 84px; right: 20px; z-index: 200; max-width: 360px; }
.messages li {
  background: #fff; border-left: 4px solid var(--goss-blue); padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); margin-bottom: .75rem; animation: slidein .3s ease;
}
.messages li.success { border-left-color: var(--goss-green); }
.messages li.error { border-left-color: #c0392b; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--goss-ink); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--goss-green); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.6fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; line-height: 1.4; }
.footer-contact .fc-ico { flex: 0 0 auto; line-height: 1.4; }
.footer-contact a { overflow-wrap: break-word; }
.footer-contact .fc-mail { font-size: .82rem; word-break: keep-all; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Bulle de chat flottante ---------- */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; background: var(--goss-green);
  color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: .2s;
}
.chat-bubble:hover { transform: scale(1.08); background: var(--goss-green-dark); }
.chat-bubble svg { width: 28px; height: 28px; }
.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 150; width: 340px; max-width: calc(100vw - 48px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-panel .chat-head { background: var(--goss-blue); color: #fff; padding: 1rem 1.25rem; }
.chat-panel .chat-head strong { display: block; }
.chat-panel .chat-body { padding: 1.25rem; font-size: .92rem; color: var(--goss-gray-700); min-height: 120px; }
.chat-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: rgba(255,255,255,.85); }
.chat-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--goss-green); }

/* ---------- Assistante Iris Jeanne ---------- */
.ir-panel { width: 370px; }
.ir-head { display: flex; align-items: center; gap: .7rem; }
.ir-avatar { width: 42px; height: 42px; flex: 0 0 auto; background: rgba(255,255,255,.15);
  border-radius: 12px; display: grid; place-items: center; }
.ir-avatar svg { width: 30px; height: 30px; }
.ir-voice { margin-left: auto; flex: 0 0 auto; width: 36px; height: 36px; border: 0; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1rem; }
.ir-voice:hover { background: rgba(255,255,255,.3); }
.ir-voice.off { opacity: .45; }
.ir-body { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem;
  max-height: 320px; overflow-y: auto; background: var(--goss-gray-50); }
.ir-msg { padding: .6rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.5;
  max-width: 88%; word-wrap: break-word; }
.ir-msg.bot { background: #fff; color: var(--goss-ink); align-self: flex-start;
  border: 1px solid var(--goss-gray-200); border-bottom-left-radius: 4px; }
.ir-msg.user { background: var(--goss-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ir-msg a { color: var(--goss-green-dark); font-weight: 600; }
.ir-msg.user a { color: #fff; }
.ir-list { margin: .45rem 0 0; padding-left: 1.15rem; }
.ir-list li { margin-bottom: .3rem; }
.ir-typing { display: inline-block; letter-spacing: 2px; animation: irBlink 1s steps(3) infinite; }
@keyframes irBlink { 0% { opacity: .3; } 50% { opacity: 1; } 100% { opacity: .3; } }
.ir-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1.1rem; background: #fff;
  border-top: 1px solid var(--goss-gray-100); }
.ir-chip { background: var(--goss-blue-light); border: 0; border-radius: 50px; padding: .4rem .8rem;
  font-size: .8rem; font-weight: 600; color: var(--goss-blue); cursor: pointer; transition: .15s; }
.ir-chip:hover { background: var(--goss-blue); color: #fff; }
.ir-input { display: flex; gap: .5rem; padding: .6rem 1.1rem; border-top: 1px solid var(--goss-gray-200); background: #fff; }
.ir-input input { flex: 1; border: 1.5px solid var(--goss-gray-200); border-radius: 50px;
  padding: .55rem .95rem; font: inherit; }
.ir-input input:focus { outline: none; border-color: var(--goss-blue); }
.ir-input button { background: var(--goss-green); color: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; flex: 0 0 auto; }
.ir-input button:hover { background: var(--goss-green-dark); }
.ir-quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem 1rem; background: #fff; }
.ir-quick .btn { flex: 1 1 28%; min-width: 90px; padding: .5rem .4rem; font-size: .8rem; }

/* ---------- Utilitaires ---------- */
.stack-sm > * + * { margin-top: .75rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .gap { gap: 1rem; } .wrap { flex-wrap: wrap; } .center { align-items: center; }
.divider { height: 1px; background: var(--goss-gray-200); margin: 2rem 0; }

/* ---------- Écran de préchargement (loader) ---------- */
.goss-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, var(--goss-blue) 0%, var(--goss-blue-dark) 100%);
  color: #fff; transition: opacity .6s ease, visibility .6s ease;
}
.goss-loader::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(111,181,46,.35), transparent 70%); border-radius: 50%;
}
.goss-loader.hidden { opacity: 0; visibility: hidden; }
.goss-loader-logo {
  width: 130px; height: 130px; position: relative; z-index: 1;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.3));
  animation: gloFloat 2.4s ease-in-out infinite;
}
.goss-loader-eyebrow {
  position: relative; z-index: 1; font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--goss-green);
  opacity: 0; animation: gloFade .6s ease forwards .25s;
}
.goss-loader-title {
  position: relative; z-index: 1; font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800;
  line-height: 1.15; max-width: 18ch; color: #fff;
  opacity: 0; animation: gloFade .7s ease forwards .45s;
}
.goss-loader-bar {
  position: relative; z-index: 1; width: 220px; max-width: 70vw; height: 4px;
  background: rgba(255,255,255,.2); border-radius: 50px; overflow: hidden;
  opacity: 0; animation: gloFade .6s ease forwards .65s;
}
.goss-loader-bar span {
  display: block; height: 100%; width: 0; border-radius: 50px;
  background: linear-gradient(90deg, var(--goss-green), #fff);
  animation: gloBar 2.2s cubic-bezier(.4, 0, .2, 1) forwards .7s;
}
@keyframes gloFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes gloFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes gloBar { from { width: 0; } to { width: 100%; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 1rem 1.25rem; gap: .25rem; border-bottom: 1px solid var(--goss-gray-200);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem 0; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .audience-split, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}

/* ============================================================
   ESPACE CLIENT — Layout & composants
   ============================================================ */
.client-layout { display: flex; min-height: 100vh; background: #f4f6fb; }

/* ---- Sidebar ---- */
.client-sidebar {
  width: 240px; flex: 0 0 240px; background: #0b3d91;
  background: linear-gradient(180deg, #0b3d91, #082b66);
  color: #fff; padding: 2rem 0 1.5rem; display: flex; flex-direction: column;
  align-items: center; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.client-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
  display: grid; place-items: center; margin-bottom: .75rem; }
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-avatar-initials { font-size: 1.6rem; font-weight: 800; color: #fff; }
.client-name { font-weight: 700; font-size: 1rem; text-align: center; padding: 0 1rem; }
.client-type { font-size: .75rem; color: rgba(255,255,255,.6); margin-bottom: 1.5rem; }
.client-nav { width: 100%; display: flex; flex-direction: column; gap: .2rem; padding: 0 .75rem; }
.client-nav a, .client-nav-logout {
  display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem;
  border-radius: 10px; color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem;
  border: 0; background: none; width: 100%; cursor: pointer; font-family: inherit;
  text-decoration: none; transition: background .15s;
}
.client-nav a:hover, .client-nav-logout:hover { background: rgba(255,255,255,.1); color: #fff; }
.client-nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.client-nav-sep { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: .75rem 0; }

/* ---- Main ---- */
.client-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.client-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 1.75rem;
  font-size: 1.2rem; font-weight: 800; color: #0b3d91; }
.client-content { padding: 1.5rem; max-width: 1000px; width: 100%; }

/* ---- Flash ---- */
.client-flashes { margin-bottom: 1rem; }
.client-flash { padding: .8rem 1rem; border-radius: 10px; font-weight: 600; font-size: .9rem;
  border-left: 4px solid #6fb52e; background: #fff; margin-bottom: .5rem; }
.client-flash.error { border-left-color: #dc2626; }

/* ---- Stats ---- */
.client-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.client-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.25rem;
  text-align: center; box-shadow: 0 1px 3px rgba(11,61,145,.06); }
.client-stat.cs-muted { opacity: .6; }
.cs-icon { font-size: 1.5rem; display: block; margin-bottom: .4rem; }
.cs-value { font-size: 1.8rem; font-weight: 800; color: #0b3d91; line-height: 1; }
.cs-label { font-size: .8rem; color: #64748b; margin-top: .2rem; }

/* ---- Panel ---- */
.client-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(11,61,145,.06); margin-bottom: 1.25rem; }
.client-panel h2 { font-size: 1rem; font-weight: 800; margin: 0 0 1rem; color: #0b3d91; }
.client-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.client-panel-head h2 { margin: 0; }
.client-link { font-size: .88rem; font-weight: 700; color: #6fb52e; }

/* ---- Orders ---- */
.client-orders-list { display: flex; flex-direction: column; gap: .5rem; }
.client-order-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none;
  color: inherit; transition: box-shadow .15s, border-color .15s; }
.client-order-row:hover { border-color: #0b3d91; box-shadow: 0 2px 8px rgba(11,61,145,.1); }
.cor-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cor-status { font-size: .78rem; font-weight: 700; padding: .3rem .75rem; border-radius: 50px;
  white-space: nowrap; background: #e2e8f0; color: #475569; }
.cor-status--lg { font-size: .88rem; padding: .4rem 1rem; }
.status-new { background: #fef3c7; color: #92400e; }
.status-in_review { background: #dbeafe; color: #1e40af; }
.status-quoted { background: #ede9fe; color: #5b21b6; }
.status-accepted { background: #d1fae5; color: #065f46; }
.status-declined { background: #fee2e2; color: #991b1b; }

/* ---- Shortcuts ---- */
.client-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.client-shortcut { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s; }
.client-shortcut:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,61,145,.1); border-color: #bdd0f5; }
.client-shortcut span { font-size: 1.5rem; }
.client-shortcut strong { font-size: .95rem; }
.client-shortcut small { font-size: .8rem; color: #64748b; }

/* ---- Profile ---- */
.profile-photo-section { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.profile-photo-preview { width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  border: 3px solid #e2e8f0; background: #f4f6fb; display: grid; place-items: center; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-initials { font-size: 2rem; font-weight: 800; color: #0b3d91; }
.profile-photo-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

/* ---- Order detail ---- */
.client-order-detail { display: flex; flex-direction: column; gap: 1.25rem; margin: 1rem 0; }
.cod-section h3 { font-size: .95rem; font-weight: 700; color: #0b3d91; margin: 0 0 .75rem; }
.cod-note { background: #f0f7ff; border: 1px solid #bdd0f5; border-radius: 12px; padding: 1rem; }
.cod-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid #e2e8f0; }

/* ---- Table ---- */
.client-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.client-table th, .client-table td { padding: .6rem .5rem; border-bottom: 1px solid #e2e8f0; }
.client-table th { color: #64748b; font-size: .8rem; text-transform: uppercase; font-weight: 700; width: 40%; }

/* ---- Empty state ---- */
.client-empty { text-align: center; padding: 3rem 1rem; color: #64748b; }
.client-empty span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.client-empty p { margin-bottom: 1.5rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .client-layout { flex-direction: column; }
  .client-sidebar { width: 100%; height: auto; position: static; flex-direction: row;
    flex-wrap: wrap; justify-content: center; padding: 1rem; gap: .5rem; }
  .client-avatar { width: 48px; height: 48px; margin: 0; }
  .client-name { display: none; }
  .client-type { display: none; }
  .client-nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .client-nav a { padding: .5rem .75rem; font-size: .82rem; }
  .client-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-form-grid { grid-template-columns: 1fr; }
  .client-content { padding: 1rem; }
}

/* ---- Offres (espace client) ---- */
.client-offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.client-offer-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem; background: #f8fafc;
  transition: box-shadow .15s, border-color .15s; }
.client-offer-card:hover { box-shadow: 0 4px 16px rgba(11,61,145,.1); border-color: #bdd0f5; }
.coc-head { display: flex; align-items: flex-start; gap: .75rem; }
.coc-icon { font-size: 1.5rem; flex: 0 0 auto; }
.coc-head strong { display: block; font-weight: 700; color: #0b3d91; }
.coc-price { font-size: .82rem; font-weight: 700; color: #6fb52e; }
.coc-summary { font-size: .9rem; color: #475569; margin: 0; }
.coc-included { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #374151; display: flex; flex-direction: column; gap: .2rem; }
.client-offer-selected { background: #f0f7ff; border: 1px solid #bdd0f5; border-radius: 10px;
  padding: .75rem 1rem; margin-bottom: 1.25rem; font-size: .92rem; }
.client-form-info { display: flex; align-items: center; gap: .6rem; background: #eef7e3;
  border: 1px solid #c8e6a0; border-radius: 10px; padding: .75rem 1rem; font-size: .88rem; margin-bottom: 1.25rem; }

/* ============================================================
   MESSAGERIE — Chat interne
   ============================================================ */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: start; }
.chat-sidebar-info { position: sticky; top: 1.5rem; }
.chat-main { display: flex; flex-direction: column; gap: 0; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.chat-messages { padding: 1.25rem; min-height: 340px; max-height: 60vh;
  overflow-y: auto; display: flex; flex-direction: column; gap: .85rem; background: #f8fafc; }
.chat-empty { text-align: center; color: #94a3b8; padding: 2rem 1rem; margin: auto; }
.chat-empty span { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.chat-bubble { max-width: 78%; display: flex; flex-direction: column; gap: .2rem; }
.chat-bubble--admin { align-self: flex-start; }
.chat-bubble--client { align-self: flex-end; }
.cb-meta { display: flex; gap: .6rem; align-items: baseline; font-size: .75rem; color: #94a3b8; }
.cb-sender { font-weight: 700; color: #64748b; }
.cb-body { padding: .7rem 1rem; border-radius: 14px; font-size: .93rem; line-height: 1.5; }
.chat-bubble--admin .cb-body { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px 14px 14px 14px; }
.chat-bubble--client .cb-body { background: #0b3d91; color: #fff; border-radius: 14px 4px 14px 14px; }
.cb-attachment { font-size: .8rem; color: #6fb52e; font-weight: 600; margin-top: .25rem; }
.chat-form { border-top: 1px solid #e2e8f0; padding: 1rem; background: #fff; }
.chat-input { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: .75rem 1rem;
  font: inherit; resize: none; font-size: .93rem; }
.chat-input:focus { outline: none; border-color: #0b3d91; box-shadow: 0 0 0 3px rgba(11,61,145,.1); }
.chat-form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.chat-attach-btn { cursor: pointer; font-size: .88rem; color: #64748b; font-weight: 600;
  padding: .4rem .75rem; border-radius: 8px; border: 1px solid #e2e8f0; }
.chat-attach-btn:hover { background: #f4f6f9; }
.chat-send-btn { padding: .6rem 1.4rem !important; }
@media (max-width: 700px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar-info { position: static; }
  .chat-messages { max-height: 45vh; }
}
