/* =====================================================================
   Page « Accueil » — styles externalisés (CSP style-src stricte).
   Fond du hero (anciennement en variables CSS inline).
   ===================================================================== */

/* Armoiries du header : encore plus présentes sur la page d'accueil que
   sur le reste du site (accueil.css n'est chargé que sur cette page). */
.brand-logo {
    width: 72px;
    height: 72px;
}

@media (min-width: 768px) {
    .brand-logo {
        width: 80px;
        height: 80px;
    }
}

.hero-bg-accueil {
    /* Photos plus présentes : la lisibilité du texte vient désormais du
       voile directionnel ci-dessous (hero-bg-slides::after), pas d'une
       simple opacité réduite qui délavait les images. */
    --hero-bg-opacity: .55;
}

/* Le blanc par défaut (.hero-badge, .hero h1, .hero-desc…) est conservé :
   meilleur contraste sur photo qu'un texte sombre, à condition que le
   voile directionnel ci-dessous soit assez soutenu côté texte. */
.hero-bg-accueil .hero-card {
    background: rgba(20, 30, 24, .38);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 48px rgba(0, 0, 0, .28);
}

/* Diaporama de fond : 5 images en fondu enchaîné, en boucle, en CSS pur
   (aucun JS → CSP-safe). Chaque slide est décalée d'un cinquième de cycle
   via animation-delay pour se relayer. */
.hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Voile directionnel (au lieu d'un simple noir à plat) : soutenu côté
   texte (gauche) pour garantir le contraste du blanc, plus discret côté
   carte « 4 étapes » pour laisser deviner le détail de la photo derrière
   le verre dépoli. Une teinte verte de marque (au lieu d'un noir neutre)
   unifie le voile avec l'identité du site. */
.hero-bg-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg, rgba(10, 22, 15, .82) 0%, rgba(10, 22, 15, .62) 38%, rgba(10, 26, 17, .38) 68%, rgba(10, 26, 17, .5) 100%),
        linear-gradient(0deg, rgba(6, 16, 10, .55) 0%, transparent 30%);
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    animation: hero-bg-slide-fade 20s infinite;
}

.hero-bg-slide-1 {
    background-image: url('/img/image6.png');
    animation-delay: 0s;
}

.hero-bg-slide-2 {
    background-image: url('/img/image8.jpeg');
    animation-delay: 4s;
}

.hero-bg-slide-3 {
    background-image: url('/img/image9.jpeg');
    animation-delay: 8s;
}

.hero-bg-slide-4 {
    background-image: url('/img/image10.png');
    animation-delay: 12s;
}

.hero-bg-slide-5 {
    background-image: url('/img/image11.jpeg');
    animation-delay: 16s;
}

/* Fondu enchaîné + très léger effet « Ken Burns » (zoom lent) pour donner
   du mouvement à la photo pendant ses ~4s d'affichage plein contraste.
   5 slides × 4s = cycle de 20s ⇒ la fenêtre de pleine visibilité d'une
   image occupe 20 % de la durée totale de SA propre animation. */
@keyframes hero-bg-slide-fade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    1.5% {
        opacity: var(--hero-bg-opacity, .5);
    }

    18% {
        opacity: var(--hero-bg-opacity, .5);
        transform: scale(1.06);
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1.06);
    }
}

/* Accessibilité : pas d'animation si l'utilisateur la refuse → on garde
   la première image affichée en fixe, sans zoom. */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .hero-bg-slide-1 {
        opacity: var(--hero-bg-opacity, .5);
    }
}

.hero-bg-accueil h1 {
    text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
    font-size: clamp(30px, 7vw, 38px);
}

@media (min-width: 992px) {
    .hero-bg-accueil h1 {
        font-size: clamp(42px, 4.4vw, 54px);
    }
}

/* Titre au plus haut du hero, collé au bord supérieur de .hero-bg-slides :
   padding-top réduit au minimum (hérité de .hero : 52 / 64 / 120px selon
   la taille d'écran à la base). */
.hero-bg-accueil {
    padding-top: 10px;
}

@media (min-width: 768px) {
    .hero-bg-accueil {
        padding-top: 14px;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil {
        padding-top: 18px;
    }
}

/* .hero-bg-slides comble toute la hauteur de .hero (position:absolute;
   inset:0) : le padding-top réduit ci-dessus avait donc aussi rétréci le
   fond. On lui redonne sa hauteur d'avant via un min-height indépendant,
   sans repousser le H1 vers le bas. */
.hero-bg-accueil {
    min-height: 560px;
}

@media (min-width: 768px) {
    .hero-bg-accueil {
        min-height: 600px;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil {
        min-height: 660px;
    }
}

.hero-bg-accueil.has-ticker {
    min-height: 600px;
}

@media (min-width: 768px) {
    .hero-bg-accueil.has-ticker {
        min-height: 650px;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil.has-ticker {
        min-height: 720px;
    }
}

/* Bouton "Déposer maintenant ma demande" ancré au tout bas de la section
   (même repère que .hero-bg-slides, en position:absolute par rapport à
   .hero) plutôt que poussé par une marge dans le flux normal — sorti du
   flux dans le Blade, à côté de .hero-inner. */
.hero-bg-accueil .hero-btns {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    margin-top: 0;
    padding: 0 18px;
    bottom: 24px;
}

@media (min-width: 768px) {
    .hero-bg-accueil .hero-btns {
        bottom: 32px;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil .hero-btns {
        bottom: 40px;
    }
}

/* Ticker superposé en bas : le bouton remonte au-dessus de lui. */
.hero-bg-accueil.has-ticker .hero-btns {
    bottom: 70px;
}

@media (min-width: 992px) {
    .hero-bg-accueil.has-ticker .hero-btns {
        bottom: 88px;
    }
}

/* Bandeau des 7 actes ancré juste au-dessus du bouton (même technique :
   sorti de .hero-inner, position:absolute par rapport à .hero), plutôt
   qu'en haut du hero avec le titre. */
.hero-bg-accueil .hero-actes-marquee-wrap {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    margin-top: 0;
    padding: 20px 18px 0;
    border-top: none;
    bottom: 88px;
}

@media (min-width: 768px) {
    .hero-bg-accueil .hero-actes-marquee-wrap {
        bottom: 96px;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil .hero-actes-marquee-wrap {
        bottom: 100px;
    }
}

.hero-bg-accueil.has-ticker .hero-actes-marquee-wrap {
    bottom: 134px;
}

@media (min-width: 992px) {
    .hero-bg-accueil.has-ticker .hero-actes-marquee-wrap {
        bottom: 148px;
    }
}

/* Entrée en fondu + léger glissement au chargement de la page — une seule
   fois, pas une boucle : donne du « poids » à l'arrivée sur le hero sans
   distraire ensuite. */
.hero-bg-accueil .hero-title-block,
.hero-bg-accueil .hero-actes-marquee-wrap,
.hero-bg-accueil .hero-btns {
    animation: hero-content-in .7s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-bg-accueil .hero-title-block {
    animation-delay: .1s;
}

.hero-bg-accueil .hero-actes-marquee-wrap {
    animation-delay: .26s;
}

.hero-bg-accueil .hero-btns {
    animation-delay: .36s;
}

@keyframes hero-content-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-bg-accueil .hero-title-block,
    .hero-bg-accueil .hero-actes-marquee-wrap,
    .hero-bg-accueil .hero-btns {
        animation: none;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil .hero-btns {
        flex-wrap: nowrap;
    }

    .hero-bg-accueil .hero-btns .btn {
        font-size: 14px;
        padding: 12px 20px;
        white-space: nowrap;
    }
}

/* =====================================================================
   Ticker d'infos — messages diffusés en bas du hero, superposés sur
   l'image de fond. Défilement horizontal en CSS pur (aucun JS → CSP-safe).
   ===================================================================== */

/* Réserve de l'espace en bas du hero pour ne pas masquer le contenu. */
.hero-bg-accueil.has-ticker {
    padding-bottom: 92px;
}

.hero-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: stretch;
    min-height: 46px;
    background: linear-gradient(90deg, rgba(18, 74, 40, .82), rgba(18, 74, 40, .66));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
}

/* Étiquette fixe à gauche (n'défile pas). */
.hero-ticker-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: var(--or, #F5A623);
    color: #1A1A2E;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 26px;
}

.hero-ticker-label i {
    font-size: 16px;
}

/* Fenêtre de défilement : masque le débordement + fondu sur les bords. */
.hero-ticker-viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}

.hero-ticker-track {
    display: flex;
    width: max-content;
    animation: hero-ticker-scroll 32s linear infinite;
}

/* Pause au survol pour laisser lire / cliquer les liens. */
.hero-ticker:hover .hero-ticker-track {
    animation-play-state: paused;
}

.hero-ticker-group {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 18px;
}

.ht-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.ht-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--or, #F5A623);
    flex-shrink: 0;
}

.ht-dot-info {
    background: #7fd1a6;
}

.ht-dot-success {
    background: #4caf7d;
}

.ht-dot-warning {
    background: var(--or, #F5A623);
}

.ht-dot-danger {
    background: #ff6b6b;
}

.ht-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding: 3px 12px;
    border-radius: 50px;
    background: var(--or, #F5A623);
    color: #1A1A2E;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}

.ht-link:hover {
    background: #ffbe4d;
}

.ht-sep {
    color: rgba(255, 255, 255, .45);
    font-size: 14px;
    margin: 0 20px;
}

@keyframes hero-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Accessibilité : pas d'animation si l'utilisateur la refuse → défilement
   manuel possible et second groupe masqué. */
@media (prefers-reduced-motion: reduce) {
    .hero-ticker-track {
        animation: none;
    }

    .hero-ticker-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-ticker-group[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-bg-accueil.has-ticker {
        padding-bottom: 84px;
    }

    .hero-ticker-label-txt {
        display: none;
    }

    .hero-ticker-label {
        padding-right: 22px;
    }

    .ht-item {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .hero-bg-accueil.has-ticker {
        padding-bottom: 148px;
    }

    .hero-ticker {
        min-height: 50px;
    }

    .ht-item {
        font-size: 15px;
    }
}

/* =====================================================================
   Organisation des actes de construction — composant Livewire
   (bootstrap nav-pills / list-group / card, recolorés au thème du site).
   ===================================================================== */
/* Les 7 actes, cités sur une seule ligne d'onglets : un clic affiche
   directement ses pièces (ou, pour le permis de construire, ses catégories
   et son attestation d'ouverture de chantier à gauche). */
.actes-nav-groupes {
    gap: 8px;
    flex-wrap: wrap;
}

.actes-nav-groupes .nav-link {
    border: 1.5px solid var(--gris-b, #E8ECF0);
    color: var(--texte, #1A1A2E);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 50px;
    padding: 9px 18px;
    background: var(--blanc, #fff);
}

.actes-nav-groupes .nav-link:hover {
    border-color: var(--vert, #1B6B3A);
    color: var(--vert, #1B6B3A);
}

.actes-nav-groupes .nav-link.active {
    background: var(--vert, #1B6B3A);
    border-color: var(--vert, #1B6B3A);
    color: #fff;
}

.actes-liste {
    border-radius: var(--r-lg, 20px);
    overflow: hidden;
}

.actes-liste .list-group-item {
    border-color: var(--gris-b, #E8ECF0);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--texte, #1A1A2E);
}

.actes-liste .list-group-item-action:hover {
    background: var(--gris, #F4F6F8);
}

.actes-liste .list-group-item.active {
    background: var(--or-l, #FDF3E0);
    border-color: var(--or, #F5A623);
    color: var(--texte, #1A1A2E);
    z-index: 1;
}

.actes-validite-inline {
    color: var(--texte-s, #5A6472);
}

.actes-liste .list-group-item.active .actes-validite-inline {
    color: var(--vert-d, #124A28);
    font-weight: 600;
}

.actes-detail-card {
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    box-shadow: var(--shadow, 0 4px 24px rgba(0, 0, 0, .08));
    height: 100%;
}

.actes-badge-validite {
    background: var(--or-l, #FDF3E0);
    color: var(--vert-d, #124A28);
    font-weight: 700;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 50px;
}

.actes-pieces-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--vert, #1B6B3A);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.actes-pieces-liste .list-group-item {
    border-color: var(--gris-b, #E8ECF0);
    padding: 12px 4px;
    font-size: 14px;
}

.actes-check {
    color: var(--vert, #1B6B3A);
    font-size: 17px;
    margin-top: 1px;
    flex-shrink: 0;
}

.action-icon-lg i {
    font-size: 2.5rem;
    color: var(--vert, #1B6B3A);
}

/* =====================================================================
   Tarifs — cartes élégantes, dépliables via <details>/<summary> natif
   (aucun JS → CSP-safe).
   ===================================================================== */
.acc-group {
    display: grid;
    grid-template-columns: 1fr;
    /* Les grilles CSS étirent par défaut chaque item à la hauteur du plus
       grand de sa ligne : sans ce align-items, déplier une carte (ligne 2
       colonnes dès 768px) étire visuellement la carte voisine fermée — elle
       paraît « ouverte » avec un grand vide sous son résumé alors que son
       contenu reste bien masqué (natif <details>, non lié au voisin). */
    align-items: start;
    gap: 18px;
}

.acc-item {
    /* Item de grille : sans ce min-width:0, le tableau de tarifs
       (.tarif-table, min-width 420px) impose sa largeur minimale à toute
       la carte — puis à toute la page — au lieu de rester confiné dans
       le défilement horizontal de .table-scroll. */
    min-width: 0;
    background: var(--blanc, #fff);
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    padding: 6px 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.acc-item:hover {
    border-color: var(--vert, #1B6B3A);
    box-shadow: var(--shadow, 0 4px 24px rgba(0, 0, 0, .08));
    transform: translateY(-2px);
}

.acc-item summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 18px 4px;
    cursor: pointer;
    list-style: none;
}

.acc-item summary::-webkit-details-marker {
    display: none;
}

.acc-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 107, 58, .12), rgba(27, 107, 58, .05));
}

.acc-icon i {
    font-size: 19px;
    color: var(--vert, #1B6B3A);
}

.acc-summary-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.acc-summary-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--texte, #1A1A2E);
}

.acc-hint {
    font-weight: 500;
    color: var(--texte-s, #5A6472);
    font-size: 12.5px;
}

.acc-price-pill {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--or-l, #FDF3E0);
    color: var(--vert-d, #124A28);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
}

.acc-item summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons', sans-serif;
    color: var(--texte-s, #5A6472);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.acc-item[open] summary::after {
    transform: rotate(180deg);
}

.acc-body {
    padding: 4px 4px 22px;
}

/* < 480px : la pastille de prix (largeur fixe, non compressible) ne tient
   plus à côté du titre sans déborder de la carte. Grille dédiée plutôt
   qu'un bricolage flexbox (flex-basis + margin se cumulaient et
   dépassaient 100 % de la largeur disponible) : icône + titre en ligne 1,
   pastille alignée sous le titre en ligne 2, flèche en haut à droite. */
@media (max-width: 479px) {
    .acc-item {
        padding: 6px 14px;
    }

    .acc-item summary {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        align-items: center;
        column-gap: 14px;
        row-gap: 10px;
        padding: 16px 2px;
    }

    .acc-summary-txt {
        grid-column: 2;
        grid-row: 1;
    }

    .acc-item summary::after {
        grid-column: 3;
        grid-row: 1;
    }

    .acc-price-pill {
        grid-column: 2 / 4;
        grid-row: 2;
        margin-left: 0;
        justify-self: start;
    }
}

@media (min-width: 768px) {
    .acc-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .acc-item.acc-wide {
        grid-column: 1 / -1;
    }
}

.table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--gris-b, #E8ECF0);
}

.tarif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 420px;
}

.tarif-table th {
    background: var(--gris, #F4F6F8);
    color: var(--texte-s, #5A6472);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    padding: 10px 16px;
}

.tarif-table td {
    padding: 10px 16px;
    border-top: 1px solid var(--gris-b, #E8ECF0);
    color: var(--texte, #1A1A2E);
}

/* Sous 768px (cartes en 1 colonne) : la largeur minimale fixe forçait le
   tableau à déborder de la carte en défilement horizontal peu visible.
   On la retire pour que le tableau se resserre réellement — les libellés
   longs (« Usage autre que d'habitation… ») passent à la ligne au lieu de
   forcer une largeur ; seule la colonne Coût reste sur une ligne. */
@media (max-width: 767px) {
    .tarif-table {
        min-width: 0;
        font-size: 12.5px;
    }

    .tarif-table th,
    .tarif-table td {
        padding: 8px 10px;
    }
}

.tarif-table th:last-child {
    text-align: right;
}

.tarif-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--vert-d, #124A28);
    white-space: nowrap;
}

.tarif-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--texte-s, #5A6472);
    margin-top: 12px;
}

.tarif-note i {
    color: var(--or, #F5A623);
    margin-top: 1px;
    flex-shrink: 0;
}

/* Tableau « Coût du permis de construire par catégorie » — chaque catégorie
   (A à F) est isolée visuellement : liséré épais coloré au-dessus du groupe,
   cellule de catégorie teintée avec pastille ronde, lignes d'un même groupe
   reliées par un filet discret. */
.tarif-table--categories td.tarif-cat-cell {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    background: var(--acc-accent-l, rgba(27, 107, 58, .08));
    border-right: 1px solid var(--gris-b, #E8ECF0);
}

.tarif-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--acc-accent, var(--vert, #1B6B3A));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.tarif-table--categories tr.tarif-group-start td {
    border-top: 2px solid var(--acc-accent, var(--vert-d, #124A28));
}

.tarif-table--categories tr:not(.tarif-group-start) td:not(.tarif-cat-cell) {
    border-top: 1px dashed var(--gris-b, #E8ECF0);
}

/* =====================================================================
   « Comment trouver ma catégorie ? » — une carte par catégorie (A à F)
   du permis de construire, même pastille ronde que .tarif-cat-badge pour
   rester cohérent avec le tableau de tarifs juste en dessous.
   ===================================================================== */
.categorie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.categorie-card {
    display: flex;
    gap: 14px;
    background: var(--blanc, #fff);
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    padding: 18px 20px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.categorie-card:hover {
    border-color: var(--vert, #1B6B3A);
    box-shadow: var(--shadow, 0 4px 24px rgba(0, 0, 0, .08));
}

.categorie-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vert, #1B6B3A);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.categorie-nom {
    font-size: 15px;
    font-weight: 700;
    color: var(--texte, #1A1A2E);
    margin-bottom: 4px;
}

.categorie-desc {
    font-size: 13.5px;
    color: var(--texte-s, #5A6472);
    line-height: 1.6;
    margin-bottom: 10px;
}

.categorie-exemples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.categorie-exemples-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--texte-s, #5A6472);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-right: 2px;
}

.categorie-tag {
    display: inline-flex;
    align-items: center;
    background: var(--or-l, #FDF3E0);
    color: var(--vert-d, #124A28);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 50px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .categorie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .categorie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* =====================================================================
   Hero — titre, texte et bouton centrés ; la liste des 7 actes n'est plus
   une carte statique mais un bandeau qui défile en continu au centre du
   hero (numéros .hpl-num et icônes conservés). Même principe que le
   ticker d'annonces plus bas : CSS pur, aucun JS → CSP-safe.
   ===================================================================== */
.hero-bg-accueil .hero-inner {
    align-items: center;
    text-align: center;
}

/* Titre et texte descriptif regroupés dans un même bloc : gap maîtrisé
   directement ici plutôt qu'une marge négative pour compenser celui, plus
   large, de .hero-inner. */
.hero-bg-accueil .hero-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Bouton ancré au plus bas du hero (position:absolute définie plus haut) :
   ici juste le centrage horizontal. */
.hero-bg-accueil .hero-btns {
    align-items: center;
    justify-content: center;
}

.hero-bg-accueil .hero-btns .btn {
    width: auto;
}

@media (min-width: 992px) {
    .hero-bg-accueil .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bg-accueil .hero h1 {
        max-width: 780px;
    }

    .hero-bg-accueil .hero-title-block {
        max-width: 900px;
    }
}

/* Phrase sur une seule ligne uniquement à partir d'un écran assez large
   pour qu'elle y tienne réellement (colonne élargie en conséquence) —
   sous ce seuil elle continue de se replier normalement (mobile/tablette :
   forcer nowrap ferait déborder la page horizontalement). */
@media (min-width: 1200px) {
    .hero-bg-accueil .hero-title-block {
        max-width: 1100px;
    }

    .hero-bg-accueil .hero-desc {
        white-space: nowrap;
    }
}

/* Sans étiquette au-dessus (retirée), le bandeau a besoin d'un ancrage
   visuel propre plutôt que de flotter juste sous le bouton : même liséré
   fin que .hero-stats ailleurs sur le site pour marquer une nouvelle
   ligne de contenu dans le hero. */
.hero-actes-marquee-wrap {
    width: 100%;
    margin-top: 20px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero-actes-marquee {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.hero-actes-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hero-actes-track {
    display: flex;
    width: max-content;
    animation: hero-actes-scroll 26s linear infinite;
}

.hero-actes-marquee:hover .hero-actes-track {
    animation-play-state: paused;
}

.hero-actes-group {
    display: flex;
}

.hero-actes-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 0 26px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.hero-actes-item i {
    color: var(--or, #F5A623);
    font-size: 20px;
}

.hpl-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(245, 166, 35, .18);
    color: var(--or, #F5A623);
    font-size: 13.5px;
    font-weight: 800;
    flex-shrink: 0;
}

@keyframes hero-actes-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-actes-track {
        animation: none;
    }

    .hero-actes-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-actes-group[aria-hidden="true"] {
        display: none;
    }
}

@media (min-width: 992px) {
    .hero-actes-item {
        font-size: 19px;
        padding: 0 34px;
    }

    .hero-actes-item i {
        font-size: 22px;
    }

    .hpl-num {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* =====================================================================
   Tarifs — une couleur d'accent distincte par catégorie d'acte, portée
   par l'icône, le liséré gauche de la carte et le prix (pastille +
   colonne du tableau), pour repérer chaque acte au premier coup d'œil.
   ===================================================================== */
.acc-item--construire {
    --acc-accent: var(--vert, #1B6B3A);
    --acc-accent-l: rgba(27, 107, 58, .12);
}

.acc-item--modifier {
    --acc-accent: #185FA5;
    --acc-accent-l: rgba(24, 95, 165, .12);
}

.acc-item--restaurer {
    --acc-accent: #B9770E;
    --acc-accent-l: rgba(185, 119, 14, .12);
}

.acc-item--demolir {
    --acc-accent: var(--rouge, #C1272D);
    --acc-accent-l: rgba(193, 39, 45, .1);
}

.acc-item--renouvellement {
    --acc-accent: #0E7C86;
    --acc-accent-l: rgba(14, 124, 134, .12);
}

.acc-item--exploiter {
    --acc-accent: #4F46E5;
    --acc-accent-l: rgba(79, 70, 229, .1);
}

.acc-item {
    border-left-width: 4px;
    border-left-color: var(--acc-accent, var(--vert, #1B6B3A));
    padding-left: 19px;
}

.acc-item .acc-icon {
    background: var(--acc-accent-l, rgba(27, 107, 58, .1));
}

.acc-item .acc-icon i {
    color: var(--acc-accent, var(--vert, #1B6B3A));
}

.acc-item .acc-price-pill {
    background: var(--acc-accent-l, var(--or-l, #FDF3E0));
    color: var(--acc-accent, var(--vert-d, #124A28));
}

.acc-item .tarif-table td:last-child {
    color: var(--acc-accent, var(--vert-d, #124A28));
}

/* =====================================================================
   Relèvement général de la taille des textes sur cette page (hors hero,
   déjà traité plus haut) — sections, cartes, tarifs, bandeau final.
   ===================================================================== */
.section-inner .eyebrow {
    font-size: 13px;
}

.section-inner .section-title {
    font-size: clamp(24px, 3.4vw, 38px);
}

/* Sous-titre de sous-section (catégories, tarifs) : plus petit que le
   titre de section principal. */
.section-inner .section-title.section-title-sm {
    font-size: 22px;
}

.section-inner .section-sub {
    font-size: 16.5px;
}

.action-card h3 {
    font-size: 19px;
}

.action-card p {
    font-size: 15px;
    line-height: 1.65;
}

.link-arrow {
    font-size: 14px;
}

.info-card h4 {
    font-size: 17px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.7;
}

.info-pill {
    font-size: 12.5px;
}

.acc-summary-title {
    font-size: 16.5px;
}

.acc-hint {
    font-size: 13.5px;
}

.acc-price-pill {
    font-size: 13.5px;
}

.tarif-table {
    font-size: 14.5px;
}

.tarif-table th {
    font-size: 12.5px;
}

.tarif-note {
    font-size: 13.5px;
}

.cta-band h2 {
    font-size: clamp(24px, 3.4vw, 36px);
}

.cta-band p {
    font-size: 16.5px;
}

@media (min-width: 768px) {
    .cta-band p {
        font-size: 17.5px;
    }
}