/* Annuaire grand public du dépannage — depannage.txori.app (AnnuaireController).
   Tokens du socle ; navy = --primary. La seule couleur hors tokens est le
   JAUNE de la marque (--logo-color-2, défini chez build/airfact seulement),
   posé une fois ici en --ann-jaune. */

.ann {
    /* css-color-ok: jaune du logo Txori, --logo-color-2 n'est pas défini dans plan */
    --ann-jaune: var(--logo-color-2, #ffbd59);
    --ann-nuit: color-mix(in srgb, var(--primary) 78%, black);
    --ann-rayon: 16px;
    --ann-large: 1160px;
    min-height: 100vh; display: flex; flex-direction: column;
    background: var(--gray-50); color: var(--text); font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}
.ann a { color: inherit; }
.ann-in { width: 100%; max-width: var(--ann-large); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ann-in--etroit { max-width: 820px; }

/* ── Boutons ────────────────────────────────────────────────────────────── */
.ann-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; background: var(--primary); color: var(--surface) !important; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: filter .15s, transform .15s; white-space: nowrap; }
.ann-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.ann-btn--ghost { background: var(--surface); color: var(--primary) !important; border-color: var(--border); }
.ann-btn--jaune { background: var(--ann-jaune); color: var(--ann-nuit) !important; }

/* ── Barre du haut ──────────────────────────────────────────────────────── */
.ann-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.ann-top-in { max-width: var(--ann-large); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 32px; }
.ann-marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary) !important; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.ann-marque img { border-radius: 50%; }
.ann-marque em { font-style: normal; font-weight: 500; color: var(--text-muted); }
.ann-marque--clair { color: var(--surface) !important; }
.ann-marque--clair em { color: color-mix(in srgb, var(--surface) 65%, transparent); }
.ann-nav { display: flex; gap: 28px; margin-right: auto; }
.ann-nav a { font-size: 15px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.ann-nav a:hover { color: var(--primary); }
.ann-pro { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--primary) !important; text-decoration: none; white-space: nowrap; }
.ann-pro:hover { border-color: var(--primary); }

/* ── Bandeau ────────────────────────────────────────────────────────────── */
.ann-hero { position: relative; overflow: hidden; color: var(--surface); background:
    radial-gradient(1000px 500px at 85% 10%, color-mix(in srgb, var(--ann-jaune) 22%, transparent), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, color-mix(in srgb, var(--primary) 60%, white 8%), transparent 70%),
    linear-gradient(160deg, var(--primary), var(--ann-nuit)); }
.ann-hero-in { max-width: var(--ann-large); margin: 0 auto; padding: 72px 24px 88px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; box-sizing: border-box; }
.ann-surtitre { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 12%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ann-surtitre svg { color: var(--ann-jaune); }
.ann-hero h1 { margin: 20px 0 16px; font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.ann-hero h1 span { color: var(--ann-jaune); }
.ann-accroche { margin: 0 0 32px; max-width: 560px; font-size: 18px; line-height: 1.6; color: color-mix(in srgb, var(--surface) 82%, transparent); }

/* La recherche : UNE barre, deux champs et le bouton. */
.ann-recherche { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0; align-items: stretch; background: var(--surface); padding: 8px; border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); color: var(--text); }
.ann-recherche .ann-champ { padding: 8px 14px; gap: 2px; }
.ann-recherche .ann-champ + .ann-champ { border-left: 1px solid var(--border); }
.ann-recherche .form-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0; }
.ann-recherche .form-input, .ann-recherche .form-select, .ann-recherche select { border: 0; box-shadow: none; padding: 4px 0; height: auto; min-height: 0; font-size: 16px; font-weight: 500; background-color: transparent; }
.ann-recherche .form-input:focus, .ann-recherche select:focus { outline: none; box-shadow: none; }
.ann-recherche .ann-champ:focus-within { background: var(--gray-50); border-radius: 12px; }
.ann-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--primary); color: var(--surface); font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: filter .15s; }
.ann-go:hover { filter: brightness(1.2); }

.ann-garanties { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: color-mix(in srgb, var(--surface) 85%, transparent); }
.ann-garanties li { display: inline-flex; align-items: center; gap: 7px; }
.ann-garanties svg { color: var(--ann-jaune); }

/* Maquette décorative de la réservation. */
.ann-maquette { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.ann-maq-carte { background: var(--surface); color: var(--text); border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: rotate(-1.5deg); }
.ann-maq-tete { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ann-maq-logo { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); }
.ann-maq-tete strong { display: block; font-size: 16px; }
.ann-maq-tete small { font-size: 13px; color: var(--text-muted); }
.ann-maq-jours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 12px; }
.ann-maq-jours span { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border: 1px solid var(--border); border-radius: 10px; font-size: 11px; color: var(--text-muted); }
.ann-maq-jours b { font-size: 16px; color: var(--text); }
.ann-maq-jours .is-on { background: var(--primary); border-color: var(--primary); color: color-mix(in srgb, var(--surface) 75%, transparent); }
.ann-maq-jours .is-on b { color: var(--surface); }
.ann-maq-creneaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ann-maq-creneaux span { text-align: center; padding: 9px 0; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 500; }
.ann-maq-creneaux .is-on { border: 2px solid var(--primary); color: var(--primary); font-weight: 700; }
.ann-maq-bouton { margin-top: 16px; padding: 13px; text-align: center; border-radius: 12px; background: var(--primary); color: var(--surface); font-weight: 700; font-size: 14px; }
.ann-maq-bulle { position: absolute; right: -28px; top: -30px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45); }
.ann-maq-bulle svg { color: var(--state-green-fg); }
.ann-maq-bulle strong { display: block; font-size: 14px; }
.ann-maq-bulle small { font-size: 12px; color: var(--text-muted); }

/* Régime RÉSULTATS : bandeau compact, recherche seule. */
.ann--resultats .ann-hero-in { grid-template-columns: 1fr; padding: 36px 24px 40px; }
.ann-h1-compact { font-size: 28px !important; margin: 0 0 18px !important; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.ann-section { padding: 88px 0; }
.ann-section--blanc { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ann-titre-section { text-align: center; margin-bottom: 44px; }
.ann-titre-section h2 { margin: 0 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.ann-titre-section p { margin: 0 auto; max-width: 600px; font-size: 17px; color: var(--text-secondary); line-height: 1.6; }

/* Métiers */
.ann-metiers-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ann-tuile { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ann-rayon); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ann-tuile:hover { border-color: var(--primary); box-shadow: 0 16px 32px -20px color-mix(in srgb, var(--primary) 60%, transparent); transform: translateY(-2px); }
.ann-tuile-ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary); }
.ann-tuile-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ann-tuile-txt strong { font-size: 16px; color: var(--text); }
.ann-tuile-txt small { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.ann-tuile-fleche { margin-left: auto; color: var(--text-muted); }
.ann-tuile:hover .ann-tuile-fleche { color: var(--primary); }

/* Étapes */
.ann-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: etape; position: relative; }
.ann-etapes li { position: relative; text-align: center; padding: 0 12px; counter-increment: etape; }
.ann-etapes li:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: calc(50% + 48px); right: calc(-50% + 48px); border-top: 2px dashed var(--border); }
.ann-etape-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: var(--surface); box-shadow: 0 0 0 8px var(--primary-light); }
.ann-etape-ico::after { content: counter(etape); position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ann-jaune); color: var(--ann-nuit); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ann-etapes h3 { margin: 24px 0 8px; font-size: 18px; }
.ann-etapes p { margin: 0; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* Avantages */
.ann-avantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ann-avantage { padding: 24px; border-radius: var(--ann-rayon); background: var(--surface); border: 1px solid var(--border); }
.ann-avantage span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-light); color: var(--primary); }
.ann-avantage h3 { margin: 16px 0 6px; font-size: 16px; }
.ann-avantage p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* FAQ */
.ann-faq { display: flex; flex-direction: column; gap: 12px; }
.ann-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 22px; }
.ann-faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ann-faq summary::-webkit-details-marker { display: none; }
.ann-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--primary); transition: transform .2s; }
.ann-faq details[open] summary::after { transform: rotate(45deg); }
.ann-faq details p { margin: 0 0 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.65; }

/* ── Résultats ──────────────────────────────────────────────────────────── */
.ann-resultats { padding: 40px 0 80px; flex: 1; }
.ann-resume { margin-bottom: 20px; font-size: 16px; color: var(--text-secondary); }
.ann-resume strong { color: var(--text); }
.ann-vide { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ann-rayon); }
.ann-vide-ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); color: var(--primary); }
.ann-vide h2 { margin: 6px 0 0; font-size: 20px; }
.ann-vide p { margin: 0 0 8px; max-width: 460px; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.ann-liste { display: flex; flex-direction: column; gap: 16px; }
.ann-carte { display: grid; grid-template-columns: minmax(0, 1fr) 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ann-rayon); overflow: hidden; transition: box-shadow .15s; }
.ann-carte:hover { box-shadow: 0 20px 40px -28px color-mix(in srgb, var(--primary) 70%, transparent); }
.ann-carte-corps { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ann-carte-tete { display: flex; gap: 16px; align-items: flex-start; }
.ann-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; flex-shrink: 0; }
.ann-logo--initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 26px; font-weight: 800; }
.ann-ident { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ann-ident h2 { margin: 0; font-size: 20px; }
.ann-ident h2 a { color: var(--primary); text-decoration: none; }
.ann-metiers { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-metiers span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-weight: 600; }
.ann-zone { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--text-muted); }
.ann-presta { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ann-presta li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.ann-presta li:last-child { border-bottom: 0; }
.ann-presta-meta { color: var(--text-muted); white-space: nowrap; }
.ann-carte-action { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; background: var(--gray-50); border-left: 1px solid var(--border); }
.ann-dispo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ann-dispo { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--state-green-fg); }
.ann-dispo--non { color: var(--text-muted); font-weight: 500; }
.ann-carte-action .ann-btn { margin-top: 6px; }

/* ── Bandeau artisans ───────────────────────────────────────────────────── */
.ann-pro-bandeau { padding: 0 0 88px; }
.ann--resultats .ann-pro-bandeau { padding-top: 0; }
.ann-pro-in { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 24px; color: var(--surface); background:
    radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--ann-jaune) 25%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary), var(--ann-nuit)); }
.ann-pro-in h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.ann-pro-in p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--surface) 82%, transparent); }

/* ── Pied ───────────────────────────────────────────────────────────────── */
.ann-pied { margin-top: auto; background: var(--ann-nuit); color: color-mix(in srgb, var(--surface) 75%, transparent); padding: 56px 0 0; }
.ann-pied-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.ann-pied-marque p { margin: 14px 0 0; max-width: 340px; font-size: 14px; line-height: 1.6; }
.ann-pied-col { display: flex; flex-direction: column; gap: 10px; }
.ann-pied-col h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--surface); }
.ann-pied-col a { font-size: 14px; text-decoration: none; }
.ann-pied-col a:hover { color: var(--surface); }
.ann-pied-bas { margin-top: 44px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid color-mix(in srgb, var(--surface) 12%, transparent); font-size: 13px; }

/* ── Tablette / mobile ──────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .ann-hero-in { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px 72px; }
    .ann-maquette { max-width: 340px; }
    .ann-avantages { grid-template-columns: repeat(2, 1fr); }
    .ann-metiers-grille { grid-template-columns: repeat(2, 1fr); }
    .ann-nav { display: none; }
    .ann-top-in { justify-content: space-between; }
}
@media (max-width: 720px) {
    .ann-in, .ann-top-in { padding-left: 16px; padding-right: 16px; }
    .ann-top-in { height: 60px; gap: 12px; }
    .ann-marque { font-size: 17px; }
    .ann-pro span { display: none; }
    .ann-pro { padding: 0 12px; }
    .ann-hero-in { padding: 40px 16px 56px; }
    .ann-hero h1 { font-size: 34px; }
    .ann-accroche { font-size: 16px; }
    .ann-recherche { grid-template-columns: 1fr; padding: 6px; }
    .ann-recherche .ann-champ + .ann-champ { border-left: 0; border-top: 1px solid var(--border); }
    .ann-go { height: 50px; margin-top: 6px; }
    .ann-maquette { display: none; }
    .ann-section { padding: 56px 0; }
    .ann-titre-section h2 { font-size: 26px; }
    .ann-metiers-grille, .ann-avantages, .ann-etapes { grid-template-columns: 1fr; }
    .ann-etapes li::after { display: none; }
    .ann-carte { grid-template-columns: 1fr; }
    .ann-carte-action { border-left: 0; border-top: 1px solid var(--border); }
    .ann-carte-action .ann-btn { width: 100%; }
    .ann-pro-in { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .ann-pro-bandeau { padding-bottom: 56px; }
    .ann-pied-in { grid-template-columns: 1fr; gap: 28px; }
}
