/* Webreizh – feuille de style publique (univers graphique repris de dev2 : Roboto, bleu #36A9E1, boutons arrondis, pied sombre) */

@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-700-normal.woff2) format("woff2"); }

:root {
  --blue: #36a9e1;
  --blue-dark: #1f8bc2;
  --blue-soft: #eaf6fc;
  --navy: #1e3a5f;
  --navy-soft: #e3edf6;
  --heading: #333;
  --text: #5f6169;
  --muted: #8b8d94;
  --line: #e6e8eb;
  --bg-soft: #f4f7fa;
  --footer: #1a1c20;
  --success: #2ea043;
  --danger: #d1453b;
  --warning: #c98a00;
  --radius: 10px;
  --pill: 25px;
  --shadow: 0 1px 2px rgba(26, 28, 32, .06), 0 6px 20px rgba(26, 28, 32, .06);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(54, 169, 225, .55); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 48px 0; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; flex-shrink: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 12px 26px; border-radius: var(--pill); border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 700 .8rem/1.2 Roboto, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--blue-dark); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue-dark); }
.btn--white { background: #fff; border-color: #fff; color: var(--heading); }
.btn--white:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--heading); }
.btn--lg { padding: 15px 32px; font-size: .85rem; }
.btn--sm { padding: 8px 16px; font-size: .72rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-dark); cursor: pointer; font: inherit; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand__text { font-size: 1.7rem; font-weight: 700; color: var(--heading); letter-spacing: -.02em; }
.brand__text span { color: var(--blue); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--heading); padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-dark); text-decoration: none; background: var(--blue-soft); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 8px; color: var(--heading); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Héros (accueil) */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; background: #20303d var(--hero-image, none) center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 22, 28, .15) 0%, rgba(16, 22, 28, .25) 40%, rgba(16, 22, 28, .62) 100%); }
.hero__content { position: relative; margin-left: auto; max-width: 620px; padding: 60px 0; }
.hero__kicker { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); text-transform: uppercase; font-weight: 500; letter-spacing: .01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero p { font-size: 1.1rem; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 760px) { .hero { min-height: 480px; } .hero__content { margin: 0; } }

/* Barre de recherche */
.search { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.search input, .search select { border: 0; background: var(--bg-soft); border-radius: 30px; padding: 12px 18px; font: inherit; color: var(--heading); min-width: 0; }
.search .btn { padding: 12px 22px; }
.search-wrap { position: relative; z-index: 2; margin-top: -40px; }
@media (max-width: 860px) { .search { grid-template-columns: 1fr 1fr; border-radius: 18px; } .search input { grid-column: 1 / -1; } .search .btn { grid-column: 1 / -1; } }

/* Titres de section avec séparateur (comme dev2) */
.section-title { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.section-title h2 { margin-bottom: .35em; }
.section-title p { color: var(--muted); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); margin: 14px auto 18px; }
.divider::before, .divider::after { content: ""; width: 90px; height: 1px; background: #c3c4c7; }
.divider .icon { font-size: 1.6rem; color: #8b8d94; }

/* Grilles */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Avantages */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35em; }
.feature p { margin: 0; }

/* Cartes de fiches */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #b7bcc3; font-size: 2.6rem; background: linear-gradient(135deg, #eef4f9, #f8fafc); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.12rem; margin: 0; }
.card__title a { color: var(--heading); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { text-decoration: none; color: var(--blue-dark); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__excerpt { font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__footer { margin-top: auto; padding-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-weight: 500; background: var(--blue-soft); color: var(--blue-dark); white-space: nowrap; }
.badge--featured { position: absolute; top: 12px; left: 12px; z-index: 1; background: #ffc83d; color: #4a3800; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.badge--success { background: #e6f4ea; color: #1f7a33; }
.badge--warning { background: #fff4d6; color: #7a5600; }
.badge--danger { background: #fde8e6; color: #a8322a; }
.badge--info { background: var(--blue-soft); color: var(--blue-dark); }
.badge--gray { background: #eef0f2; color: #555; }

/* Catégories et départements */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; color: var(--heading); font-size: .93rem; }
.chip:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }
.chip small { color: var(--muted); font-size: .8rem; }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.is-active small { color: rgba(255, 255, 255, .85); }
.dept { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--heading); font-weight: 500; }
.dept:hover { border-color: var(--blue); text-decoration: none; box-shadow: var(--shadow); }
.dept img { width: 32px; height: 32px; }
.dept__code { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; flex-shrink: 0; }
.dept small { display: block; color: var(--muted); font-weight: 400; }

/* Bandeau de titre de page (comme dev2 : photo du phare + fil d'Ariane) */
.page-title { position: relative; color: #fff; text-align: center; padding: 56px 0 50px; background: #2a3a47 var(--banner-image, none) center/cover no-repeat; }
.page-title::before { content: ""; position: absolute; inset: 0; background: rgba(20, 28, 36, .45); }
.page-title .container { position: relative; }
.page-title h1 { color: #fff; margin: 0 0 8px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: .88rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.breadcrumbs a { color: #fff; opacity: .9; }

/* Mise en page annuaire */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.sidebar__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sidebar__box h2 { font-size: 1rem; margin-bottom: 10px; }
.sidebar__list { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.sidebar__list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.sidebar__list a { color: var(--text); }
.sidebar__list a.is-active { color: var(--blue-dark); font-weight: 700; }
@media (max-width: 960px) { .sidebar { position: static; } }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.intro { font-size: 1.05rem; margin-bottom: 28px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 21px; border: 1px solid var(--line); color: var(--heading); }
.pagination a:hover { border-color: var(--blue); text-decoration: none; }
.pagination .is-current span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pagination .is-disabled span { opacity: .4; }

/* Fiche */
.listing-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .listing-head { grid-template-columns: 1fr; } }
.listing-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft); }
.listing-shot img { width: 100%; }
.listing-logo { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.listing-title { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.listing-title h2 { margin: 0; }
.info-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.info-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .icon { color: var(--navy); margin-top: .3em; font-size: 1.15rem; }
.info-list a { word-break: break-word; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--heading); }
.socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.prose { font-size: 1.02rem; max-width: 78ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--heading); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--blue); color: var(--heading); font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery a { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.listing-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
@media (max-width: 960px) { .listing-body { grid-template-columns: 1fr; } }
.notice { padding: 14px 18px; border-radius: 8px; background: #fff4d6; color: #6b4d00; margin-bottom: 24px; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-row .field + .field { margin-top: 0; }
.field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label, .label { font-weight: 500; color: var(--heading); font-size: .95rem; }
.req { color: var(--danger); }
.hint { font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd4da; border-radius: 8px; font: inherit; color: var(--heading); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(54, 169, 225, .2); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
textarea.is-large { min-height: 360px; }
input[type=file] { font: inherit; font-size: .9rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .87rem; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.checkbox input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--blue); }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.counter { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .87rem; }
.counter__bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.counter__fill { height: 100%; width: 0; background: var(--warning); transition: width .2s, background .2s; }
.counter.is-ok .counter__fill { background: var(--success); }
.counter.is-ok strong { color: var(--success); }
.autocomplete { position: relative; }
.autocomplete__list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow: auto; }
.autocomplete__list li { padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.autocomplete__list li[aria-selected="true"], .autocomplete__list li:hover { background: var(--blue-soft); }
details.more { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 20px; }
details.more summary { cursor: pointer; font-weight: 500; color: var(--blue-dark); }
.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .plan-options { grid-template-columns: 1fr; } }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option__box { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 18px; height: 100%; transition: border-color .15s, background .15s; }
.plan-option input:checked + .plan-option__box { border-color: var(--blue); background: var(--blue-soft); }
.plan-option input:focus-visible + .plan-option__box { outline: 3px solid rgba(54, 169, 225, .55); }
.plan-option__name { display: block; font-weight: 700; color: var(--heading); }
.plan-option__price { font-size: 1.5rem; font-weight: 700; color: var(--heading); margin: 4px 0; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; }
.alert--success { background: #e6f4ea; color: #1f5f2c; }
.alert--error { background: #fde8e6; color: #8a2a23; }
.alert--info { background: var(--blue-soft); color: #165f86; }
.prefill-status { font-size: .87rem; min-height: 1.3em; }
.preview-thumb { max-width: 220px; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 34px 28px; display: flex; flex-direction: column; background: #fff; }
.price-card.is-highlighted { border: 2px solid var(--blue); box-shadow: 0 16px 40px rgba(54, 169, 225, .18); }
.price-card__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; }
.price-card h3 { margin-bottom: 4px; }
.price { font-size: 2.6rem; font-weight: 700; color: var(--heading); line-height: 1.1; margin: 14px 0 2px; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; }
.price-card li .icon { color: var(--success); margin-top: .3em; }
.price-card .btn { margin-top: auto; }
.featured-offer { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-radius: 16px; padding: 30px 34px; background: linear-gradient(120deg, #fff8e1, #fff); border: 1px solid #f3dfa0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--heading); font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; }

/* Espace client */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { background: var(--bg-soft); border-radius: 12px; padding: 20px; }
.stat strong { display: block; font-size: 2rem; color: var(--heading); line-height: 1.1; }
.account-listing { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-listing img, .account-listing .card__placeholder { width: 120px; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; font-size: 1.6rem; }
@media (max-width: 700px) { .account-listing { grid-template-columns: 80px 1fr; } .account-listing img, .account-listing .card__placeholder { width: 80px; } .account-listing .actions { grid-column: 1 / -1; } }

/* Appel à l'action */
.cta { background: linear-gradient(120deg, #1f8bc2, #36a9e1); color: #fff; border-radius: 18px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; opacity: .92; }

/* Pied de page */
.site-footer { background: var(--footer); color: #8b8d94; padding: 60px 0 0; font-size: .94rem; margin-top: 0; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c3c4c7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid #2c2f35; margin-top: 44px; padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-logo .brand__text { color: #fff; }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 6px; background: rgba(26, 28, 32, .25); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--blue); }

/* Bannière de consentement cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; width: 100%; max-width: 720px; background: #fff; border-radius: 14px; box-shadow: 0 12px 48px rgba(0, 0, 0, .25); padding: 22px 24px; border-top: 4px solid var(--blue); }
.consent__title { font-size: 1.05rem; margin-bottom: 6px; }
.consent__text { font-size: .92rem; margin-bottom: 14px; }
.consent__panel { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 14px; background: var(--bg-soft); border-radius: 10px; }
.consent__panel[hidden] { display: none; }
.consent__option { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: .92rem; }
.consent__option input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent__actions [hidden] { display: none; }
@media (max-width: 560px) { .consent__actions .btn { flex: 1 1 45%; } }
.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit a { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit img { width: 19px; height: 17px; display: inline-block; }

/* Barre de recherche de l'accueil */
.searchbar { position: relative; display: flex; align-items: stretch; background: #fff; border-radius: 999px; padding: 8px; box-shadow: 0 18px 50px rgba(16, 22, 28, .22), 0 2px 6px rgba(16, 22, 28, .06); }
.searchbar__field { position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 22px; border-radius: 999px; transition: background .15s; cursor: text; }
.searchbar__field--grow { flex-grow: 1.6; }
.searchbar__field + .searchbar__field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); transition: opacity .15s; }
.searchbar__field:hover { background: var(--bg-soft); }
.searchbar__field:hover::before, .searchbar__field:hover + .searchbar__field::before,
.searchbar__field:focus-within::before, .searchbar__field:focus-within + .searchbar__field::before { opacity: 0; }
.searchbar__field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 6px 20px rgba(54, 169, 225, .18); }
.searchbar__icon { grid-row: 1 / 3; font-size: 1.3rem; color: var(--blue); }
.searchbar__label { grid-column: 2; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); line-height: 1.2; cursor: pointer; }
.searchbar .searchbar__field input, .searchbar .searchbar__field select {
  grid-column: 2; width: 100%; border: 0; padding: 2px 0 0; background: transparent; box-shadow: none; border-radius: 0;
  font: 400 .97rem/1.4 Roboto, sans-serif; color: var(--text); outline: none; -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.searchbar .searchbar__field input::placeholder { color: var(--muted); }
.searchbar .searchbar__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbar .searchbar__field select { cursor: pointer; padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238b8d94' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") right center / 20px no-repeat; }
.searchbar__submit { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 0 30px; margin-left: 6px; background: linear-gradient(135deg, #36a9e1, #1f8bc2); color: #fff; font: 700 .85rem Roboto, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 18px rgba(31, 139, 194, .35); transition: transform .15s, box-shadow .15s, filter .15s; }
.searchbar__submit .icon { font-size: 1.25rem; }
.searchbar__submit:hover { filter: brightness(1.06); box-shadow: 0 8px 24px rgba(31, 139, 194, .45); }
.searchbar__submit:active { transform: scale(.98); }
@media (max-width: 900px) {
  .searchbar { flex-direction: column; border-radius: 22px; padding: 10px; gap: 4px; }
  .searchbar__field { border-radius: 14px; padding: 12px 16px; }
  .searchbar__field + .searchbar__field::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .searchbar__submit { margin: 6px 0 0; justify-content: center; padding: 16px; border-radius: 14px; }
}

/* Éditeur de description (Quill) */
.editor { border: 1px solid #cfd4da; border-radius: 8px; background: #fff; overflow: hidden; }
.editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(54, 169, 225, .2); }
.editor .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-family: Roboto, sans-serif; }
.editor .ql-container.ql-snow { border: 0; font: 400 1rem/1.65 Roboto, sans-serif; color: var(--heading); }
.editor .ql-editor { min-height: 360px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; }
.editor .ql-editor h2 { font-size: 1.4rem; margin: 1em 0 .4em; } .editor .ql-editor h3 { font-size: 1.2rem; margin: .9em 0 .4em; } .editor .ql-editor h4 { font-size: 1.05rem; margin: .8em 0 .3em; }
.editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.editor .ql-snow .ql-picker.ql-header .ql-picker-label::before, .editor .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Paragraphe'; }
.editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Titre H2'; }
.editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Titre H3'; }
.editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, .editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { content: 'Titre H4'; }
.editor .ql-snow .ql-picker.ql-header { width: 118px; }
.editor .ql-snow .ql-tooltip[data-mode=link]::before { content: "Adresse du lien :"; }
.editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Enregistrer'; }
.editor .ql-snow .ql-tooltip a.ql-action::after { content: 'Modifier'; }
.editor .ql-snow .ql-tooltip a.ql-remove::before { content: 'Retirer'; }
.editor .ql-snow .ql-tooltip::before { content: "Lien :"; }
.counter__links { white-space: nowrap; }
.counter.is-too-many-links .counter__links { color: var(--danger); font-weight: 700; }

/* Fiche – variante A */
.page-title__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 14px; }
.hero-chip { display: inline-block; padding: 5px 14px; border-radius: 20px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: .82rem; font-weight: 500; }
a.hero-chip:hover { background: rgba(255, 255, 255, .28); color: #fff; text-decoration: none; }
.hero-chip--star { background: #f5b800; border-color: #f5b800; color: #1a1c20; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .listing-layout { grid-template-columns: 1fr; } }
.listing-main .listing-shot { margin-bottom: 36px; }
.listing-heading { color: var(--navy); font-size: 1.6rem; margin: 0 0 24px; padding-bottom: 14px; position: relative; }
.listing-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--blue); }
.listing-side { display: flex; flex-direction: column; gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.contact-card .listing-logo { display: block; margin-bottom: 16px; }
.side-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 0 0 16px; }
.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: #15304f; border-color: #15304f; }
.btn--block { display: flex; width: 100%; }
