/* ============================================================
   RENOVATION.CSS — Module Rénovation immoicc.be
   Feuille dédiée. À charger APRÈS blog.css.
   Toutes les classes sont préfixées "rn-" : aucune collision
   avec le blog ni avec les anciens styles.
   Charte : bleu marine #0e2356 / #1f223e — jaune #f7e700
   ============================================================ */

:root {
    --rn-navy: #0e2356;
    --rn-navy-deep: #1f223e;
    --rn-yellow: #f7e700;
    --rn-yellow-soft: #fefbd9;
    --rn-surface: #f6f8fc;
    --rn-ink: #1f223e;
    --rn-muted: #5a6478;
    --rn-line: #e3e7f0;
    --rn-radius: 14px;
    --rn-radius-sm: 10px;
    --rn-shadow: 0 6px 22px rgba(14, 35, 86, .09);
    --rn-shadow-lift: 0 16px 34px rgba(14, 35, 86, .18);
}

/* ------------------------------------------------------------
   Signature visuelle : la "marque de niveau" (trait jaune +
   taquet marine), utilisée sous les titres du module.
   ------------------------------------------------------------ */
.rn-level {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.rn-level::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 5px;
    border-radius: 3px;
    background: var(--rn-yellow);
}
.rn-level::before {
    content: "";
    position: absolute;
    left: 26px;
    bottom: -2px;
    width: 4px;
    height: 9px;
    border-radius: 2px;
    background: var(--rn-navy);
    z-index: 1;
}
.rn-level--center {
    padding-bottom: 16px;
}
.rn-level--center::after {
    left: 50%;
    transform: translateX(-50%);
}
.rn-level--center::before {
    left: 50%;
    transform: translateX(-2px);
}

/* ============================================================
   1. MENU DES CATÉGORIES (construction-header.php)
   Tuiles complètes par défaut : icône + nom + couleur + ombre.
   Rien n'est caché en attente d'un survol.
   ============================================================ */
.rn-cats {
    padding-top: 18px;
    padding-bottom: 6px;
}
.rn-cats-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 4px;
    list-style: none;
}
.rn-cat-item {
    flex: 0 0 auto;
}
.rn-cat-tile {
    --rn-cat-color: var(--rn-navy);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
    padding: 12px 6px 10px;
    background: #fff;
    border: 1px solid var(--rn-line);
    border-radius: var(--rn-radius-sm);
    box-shadow: var(--rn-shadow);
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
/* Liseré couleur catégorie, toujours visible */
.rn-cat-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rn-cat-color);
}
.rn-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--rn-cat-color);
    color: #fff;
    font-size: 19px;
    flex: 0 0 auto;
}
.rn-cat-icon i {
    font-size: 19px !important;
    position: static !important;
    color: #fff;
}
.rn-cat-icon-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.rn-cat-icon-txt {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}
.rn-cat-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--rn-navy);
    min-height: 29px;
}
/* Retour visuel au tap (mobile et desktop) */
.rn-cat-tile:active {
    transform: scale(.95);
}
/* Bonus survol : uniquement pour les appareils avec souris */
@media (hover: hover) and (pointer: fine) {
    .rn-cat-tile:hover {
        transform: translateY(-4px);
        box-shadow: var(--rn-shadow-lift);
        border-color: var(--rn-cat-color);
    }
}
/* Mobile : rangée qui défile horizontalement, tuiles intactes */
@media (max-width: 575.98px) {
    .rn-cats-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 10px;
    }
    .rn-cat-item {
        scroll-snap-align: start;
    }
    .rn-cat-tile {
        width: 88px;
    }
}

/* ============================================================
   2. HÉROS DE CATÉGORIE / SERVICE
   ============================================================ */
.rn-hero {
    position: relative;
    min-height: 320px;
    margin-top: 14px;
    background-color: var(--rn-navy-deep);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}
.rn-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(31, 34, 62, .05) 30%,
        rgba(14, 35, 86, .82) 100%);
}
.rn-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 26px 20px;
}
.rn-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--rn-navy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    border: 3px solid rgba(255, 255, 255, .85);
}
.rn-hero-icon i {
    font-size: 26px !important;
    position: static !important;
    top: auto !important;
    color: #fff;
    display: block;
}
.rn-hero-icon img {
    width: 60%;
    height: auto;
}
.rn-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7em, 4vw, 2.5em);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
@media (max-width: 575.98px) {
    .rn-hero {
        min-height: 230px;
    }
    .rn-hero-icon {
        width: 50px;
        height: 50px;
    }
    .rn-hero-icon i {
        font-size: 20px !important;
    }
}

/* ============================================================
   3. BLOCS DE CONTENU (intro, bandeau d'accroche)
   ============================================================ */
.rn-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}
.rn-intro {
    --rn-cat-color: var(--rn-navy);
    background: #fff;
    border: 1px solid var(--rn-line);
    border-left: 4px solid var(--rn-cat-color);
    border-radius: var(--rn-radius);
    box-shadow: var(--rn-shadow);
    padding: 26px 28px;
    margin: 34px 0 26px;
    color: var(--rn-ink);
    line-height: 1.65;
    font-size: 15.5px;
}
.rn-intro p:last-child {
    margin-bottom: 0;
}
.rn-band {
    --rn-cat-color: var(--rn-navy);
    background: var(--rn-cat-color);
    border-radius: var(--rn-radius);
    box-shadow: var(--rn-shadow);
    padding: 26px 24px;
    margin: 0 0 34px;
    text-align: center;
}
.rn-band h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25em, 3vw, 1.7em);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.rn-band .rn-level--center::before {
    background: rgba(14, 35, 86, .55);
}

/* ============================================================
   4. CARTES DE SERVICES (listings)
   Grille : 3 col. desktop / 2 tablette / 1 mobile (Bootstrap)
   ============================================================ */
.rn-grid {
    padding-bottom: 30px;
}
.rn-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--rn-line);
    border-radius: var(--rn-radius);
    box-shadow: var(--rn-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.rn-card-media {
    position: relative;
    display: block;
    height: 190px;
    background-color: var(--rn-surface);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* Étiquette de prix — clin d'œil "étiquette de chantier" */
.rn-card-price {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-block;
    padding: 5px 12px;
    background: var(--rn-yellow);
    color: var(--rn-navy);
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(14, 35, 86, .25);
}
.rn-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    padding: 18px 20px 20px;
}
.rn-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}
.rn-card-title a {
    color: var(--rn-navy);
    text-decoration: none;
}
.rn-card-text {
    margin: 0;
    color: var(--rn-muted);
    font-size: 14px;
    line-height: 1.6;
    flex: 1 1 auto;
}
@media (hover: hover) and (pointer: fine) {
    .rn-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--rn-shadow-lift);
    }
    .rn-card-title a:hover {
        text-decoration: underline;
        text-decoration-color: var(--rn-yellow);
        text-decoration-thickness: 3px;
        text-underline-offset: 4px;
    }
}

/* ============================================================
   5. BOUTONS
   ============================================================ */
.rn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rn-btn:active {
    transform: scale(.97);
}
.rn-btn-quote {
    align-self: flex-start;
    background: var(--rn-navy);
    color: #fff;
}
.rn-btn-quote::after {
    content: "\2192"; /* → */
    font-size: 15px;
    line-height: 1;
    transition: transform .15s ease;
}
@media (hover: hover) and (pointer: fine) {
    .rn-btn-quote:hover {
        background: var(--rn-navy-deep);
        box-shadow: 0 8px 18px rgba(14, 35, 86, .28);
        color: #fff;
    }
    .rn-btn-quote:hover::after {
        transform: translateX(3px);
    }
}

/* ============================================================
   6. PAGE DÉTAIL D'UN SERVICE + FORMULAIRE DE DEVIS
   ============================================================ */
.rn-service-head {
    margin: 34px 0 8px;
}
.rn-service-head h2 {
    margin: 0;
    color: var(--rn-navy);
    font-size: clamp(1.5em, 3.4vw, 2.1em);
    font-weight: 700;
}
.rn-service-desc {
    color: var(--rn-ink);
    line-height: 1.7;
    font-size: 15.5px;
    margin: 18px 0 6px;
}
.rn-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 30px;
}
.rn-price-label {
    color: var(--rn-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.rn-price-tag {
    display: inline-block;
    padding: 7px 16px;
    background: var(--rn-yellow);
    color: var(--rn-navy);
    font-size: 17px;
    font-weight: 700;
    border-radius: 999px;
}

/* Bandeaux d'accroche au-dessus du formulaire */
.rn-quote-banner {
    --rn-cat-color: var(--rn-navy);
    background: var(--rn-cat-color);
    color: #fff;
    border-radius: var(--rn-radius) var(--rn-radius) 0 0;
    padding: 22px 24px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}
.rn-quote-banner span {
    box-shadow: inset 0 -3px 0 var(--rn-yellow);
}
.rn-quote-subbanner {
    background: var(--rn-navy-deep);
    color: #fff;
    padding: 12px 24px 14px;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}
.rn-quote-subbanner .small-text {
    color: rgba(255, 255, 255, .75);
    margin: 6px 0 0;
    font-size: 12.5px;
}

/* Carte du formulaire */
.rn-form-card {
    background: #fff;
    border: 1px solid var(--rn-line);
    border-top: 0;
    border-radius: 0 0 var(--rn-radius) var(--rn-radius);
    box-shadow: var(--rn-shadow);
    padding: 30px 28px 34px;
    margin-bottom: 40px;
}
.rn-form-section {
    margin-bottom: 8px;
}
.rn-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 16px;
    color: var(--rn-navy);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}
.rn-form-section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--rn-line);
}
.rn-form-section-title:first-child {
    margin-top: 0;
}

/* Champs */
.rn-form-card .form-label {
    color: var(--rn-navy);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.rn-form-card .form-control {
    border: 1.5px solid var(--rn-line);
    border-radius: var(--rn-radius-sm);
    padding: 11px 14px;
    font-size: 15px;
    color: var(--rn-ink);
    background: #fff;
    box-shadow: none;
    height: auto;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rn-form-card .form-control:focus {
    border-color: var(--rn-navy);
    box-shadow: 0 0 0 3px var(--rn-yellow-soft);
    outline: none;
}
.rn-form-card textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Cases à cocher façon "puces" */
.rn-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rn-checks .form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    border: 1.5px solid var(--rn-line);
    border-radius: 999px;
    background: var(--rn-surface);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.rn-checks .form-check-input {
    margin: 0;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--rn-navy);
    cursor: pointer;
    position: static;
}
.rn-checks .form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--rn-ink);
    font-weight: 500;
}
.rn-checks .form-check:has(.form-check-input:checked) {
    border-color: var(--rn-navy);
    background: var(--rn-yellow-soft);
}

/* Champs fichiers */
.rn-form-card input[type="file"] {
    display: block;
    width: 100%;
    font-size: 13.5px;
    color: var(--rn-muted);
}
.rn-form-card input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 16px;
    border: 1.5px solid var(--rn-navy);
    border-radius: 999px;
    background: #fff;
    color: var(--rn-navy);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
@media (hover: hover) and (pointer: fine) {
    .rn-form-card input[type="file"]::file-selector-button:hover {
        background: var(--rn-navy);
        color: #fff;
    }
}

/* Bouton d'envoi (div #submit_this_form conservé pour le JS) */
.rn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    padding: 16px 26px;
    background: var(--rn-yellow);
    color: var(--rn-navy);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(247, 231, 0, .45);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    -webkit-user-select: none;
    user-select: none;
}
.rn-submit::after {
    content: "\2192";
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease;
}
.rn-submit:active {
    transform: scale(.98);
}
@media (hover: hover) and (pointer: fine) {
    .rn-submit:hover {
        filter: brightness(.96);
        box-shadow: 0 12px 26px rgba(247, 231, 0, .55);
    }
    .rn-submit:hover::after {
        transform: translateX(4px);
    }
}
.rn-recaptcha {
    margin-top: 22px;
}

/* Carte "Votre interlocuteur" */
.rn-contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--rn-surface);
    border: 1px solid var(--rn-line);
    border-radius: var(--rn-radius);
    padding: 20px 24px;
    margin: 0 0 46px;
}
.rn-contact-card img {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--rn-shadow);
}
.rn-contact-info p {
    margin: 2px 0;
    font-size: 14px;
    color: var(--rn-ink);
}
.rn-contact-info .rn-contact-company {
    font-weight: 700;
    color: var(--rn-navy);
    font-size: 15.5px;
    margin-bottom: 6px;
}
@media (max-width: 575.98px) {
    .rn-form-card {
        padding: 22px 16px 26px;
    }
    .rn-contact-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Confort : moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    .rn-cat-tile,
    .rn-card,
    .rn-btn,
    .rn-submit {
        transition: none;
    }
}
