/* ================================================================
   UNIVERS DES BÂTISSEURS — app.css
   Palette : Bleu #1F4E78 | Ocre #C87B3C | Anthracite #4A4A4A
   WhatsApp #25D366 | Footer #2C3E50
   ================================================================ */

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Public Sans', sans-serif;
    background: #f6f7f8;
    color: #4A4A4A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── VARIABLES ──────────────────────────────────────────────────── */
:root {
    --blue:         #1F4E78;
    --blue-10:      rgba(31,78,120,.10);
    --blue-20:      rgba(31,78,120,.20);
    --ochre:        #C87B3C;
    --ochre-light:  #F5E6D3;
    --ochre-dark:   #a8621c;
    --anthracite:   #4A4A4A;
    --slate:        #64748b;
    --slate-light:  #94a3b8;
    --bg:           #f6f7f8;
    --white:        #ffffff;
    --footer:       #2C3E50;
    --green:        #16a34a;
    --whatsapp:     #16a34a;
    --border:       #e2e8f0;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.14);
    --header-h: 70px;
    --transition: 180ms ease;
}

/* ── CONTAINER ──────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 22px; border-radius: var(--r-md);
    font-size: .9rem; font-weight: 700; cursor: pointer;
    border: 2px solid transparent; transition: all var(--transition);
    white-space: nowrap; line-height: 1;
}
.btn--blue        { background: var(--blue);  color: #fff; border-color: var(--blue); }
.btn--blue:hover  { background: #174069; border-color: #174069; }
.btn--ochre       { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.btn--ochre:hover { background: var(--ochre-dark); border-color: var(--ochre-dark); transform: translateY(-1px); }
.btn--outline-ochre       { background: transparent; color: var(--ochre); border-color: var(--ochre); }
.btn--outline-ochre:hover { background: var(--ochre); color: #fff; }
.btn--outline-blue        { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline-blue:hover  { background: var(--blue); color: #fff; }
.btn--whatsapp       { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: #128a36; border-color: #128a36; }
.btn--sm  { padding: 7px 14px; font-size: .8rem; border-radius: var(--r-sm); }
.btn--lg  { padding: 14px 36px; font-size: 1rem; border-radius: var(--r-lg); }
.btn--xl  { padding: 18px 44px; font-size: 1.1rem; border-radius: var(--r-lg); }
.btn--full { width: 100%; }
.btn--icon { padding: 9px; border-radius: var(--r-md); }
.btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: #64748b; transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg); color: var(--blue); }
.btn-icon .material-symbols-outlined { font-size: 26px; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--white { background: #fff; }
.section--gray  { background: var(--bg); }
.section__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 12px;
    line-height: 1.2;
}
.section__title--center { text-align: center; }
.section__title--left   { text-align: left; }
.section__cta { text-align: center; margin-top: 52px; }

/* ================================================================
   HEADER
   ================================================================ */
.header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.09); }

.header__inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__icon { color: var(--ochre); font-size: 28px !important; }
.logo__text {
    font-size: 1.05rem; font-weight: 900;
    color: var(--blue); letter-spacing: -.01em;
}
.logo--white .logo__text { color: #fff; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
    font-size: .95rem; font-weight: 500;
    color: var(--anthracite); padding: 4px 2px;
    position: relative; transition: color var(--transition);
}
.nav__link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--ochre);
    border-radius: 2px; transition: width var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--blue); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 38px; height: 38px; padding: 8px;
    border-radius: var(--r-sm);
}
.hamburger:hover { background: var(--bg); }
.hamburger__line {
    display: block; width: 100%; height: 2px;
    background: var(--anthracite); border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 99;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    padding: 20px 24px; overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__link {
    display: block; padding: 14px 12px; font-size: 1rem;
    font-weight: 600; color: var(--anthracite);
    border-radius: var(--r-md); transition: all var(--transition);
}
.mobile-nav__link:hover { background: var(--bg); color: var(--blue); }
.mobile-nav__actions {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    background: linear-gradient(175deg, var(--ochre-light) 0%, #fffbf7 50%, #fff 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.hero__inner { max-width: 860px; margin: 0 auto; }

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900; color: var(--blue);
    line-height: 1.15; margin-bottom: 16px;
    letter-spacing: -.02em;
}
.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--anthracite); margin-bottom: 40px; opacity: .85;
}

/* Search bar */
.search-bar { margin-bottom: 24px; }
.search-bar__form {
    display: flex; align-items: center;
    background: #fff; border-radius: var(--r-lg);
    box-shadow: 0 6px 32px rgba(31,78,120,.16);
    overflow: hidden; max-width: 780px; margin: 0 auto;
    border: 1.5px solid rgba(31,78,120,.08);
}
.search-bar__field {
    flex: 1; display: flex; align-items: center;
    gap: 8px; padding: 6px 16px; min-width: 0;
}
.search-bar__icon {
    color: var(--slate-light); font-size: 22px !important;
    flex-shrink: 0;
}
.search-bar__select {
    flex: 1; border: none; outline: none;
    font-size: .9rem; font-family: inherit;
    color: var(--anthracite); background: transparent;
    cursor: pointer; padding: 10px 4px;
    min-width: 0;
}
.search-bar__divider {
    width: 1px; height: 30px;
    background: var(--border); flex-shrink: 0;
}
.search-bar__btn {
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 18px 28px; font-size: .9rem;
    flex-shrink: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.hero__hint {
    font-size: .9rem; color: var(--slate); margin-bottom: 10px; font-weight: 500;
}
.hero__link {
    display: inline-block; font-size: .9rem; font-weight: 700;
    color: var(--ochre); transition: color var(--transition);
}
.hero__link:hover { color: var(--ochre-dark); text-decoration: underline; }

/* ================================================================
   SERVICES EXPRESS
   ================================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 44px;
}

.service-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex; flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200,123,60,.3);
}

.service-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.service-card__img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.service-card:hover .service-card__img-wrap img { transform: scale(1.04); }

.service-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 9px; border-radius: var(--r-full);
    font-size: .65rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    color: #fff;
}
.service-badge--ochre  { background: var(--ochre); }
.service-badge--orange { background: #e07b2e; }
.service-badge--blue   { background: var(--blue); }
.service-badge--green  { background: #166534; }

.service-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.service-card__name { font-size: .95rem; font-weight: 800; color: var(--blue); margin-bottom: 5px; }
.service-card__desc { font-size: .82rem; color: var(--slate); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.service-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
}
.service-card__price { font-size: 1.15rem; font-weight: 900; color: var(--ochre); }

/* ================================================================
   RÉASSURANCE
   ================================================================ */
.reassurance {
    background: var(--blue);
    padding: 40px 0;
}
.reassurance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}
.reassurance__item {
    display: flex; align-items: flex-start; gap: 16px;
}
.reassurance__icon {
    font-size: 44px !important;
    color: var(--ochre);
    flex-shrink: 0;
    line-height: 1;
}
.reassurance__icon-wrap { position: relative; flex-shrink: 0; }
.reassurance__badge {
    position: absolute; top: -4px; right: -10px;
    background: #fff; color: var(--blue);
    font-size: .6rem; font-weight: 800;
    padding: 1px 5px; border-radius: 4px;
    border: 1px solid var(--blue);
}
.reassurance__title {
    font-size: .95rem; font-weight: 800; color: #fff;
    margin-bottom: 5px;
}
.reassurance__text {
    font-size: .82rem; color: rgba(255,255,255,.75);
    line-height: 1.5;
}

/* ================================================================
   COMMENT ÇA MARCHE
   ================================================================ */
.steps {
    position: relative;
    display: flex; justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 52px;
}
.steps__line {
    position: absolute;
    top: 40px;
    left: calc(50% / 3);
    right: calc(50% / 3);
    height: 1px;
    background: #cbd5e1;
    z-index: 0;
}
.step {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; text-align: center;
    position: relative; z-index: 1;
}
.step__circle {
    width: 80px; height: 80px; border-radius: 50%;
    background: #fff; border: 4px solid var(--bg);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); margin-bottom: 20px;
    transition: background .2s, border-color .2s;
}
.step__circle .material-symbols-outlined { font-size: 36px; }
.step:hover .step__circle { background: var(--blue-10); border-color: var(--blue); }
.step__title { font-size: 1.05rem; font-weight: 800; color: var(--anthracite); margin-bottom: 8px; }
.step__text { font-size: .875rem; color: var(--slate); max-width: 200px; }

/* ================================================================
   PROFESSIONNELS À LA UNE
   ================================================================ */
.pros-carousel {
    display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 16px;
    scrollbar-width: none; -ms-overflow-style: none;
    margin-top: 36px;
}
.pros-carousel::-webkit-scrollbar { display: none; }

.pro-card {
    min-width: 300px; flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px;
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pro-card__top {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 18px;
}
.badge-verifie {
    display: inline-flex; align-items: center; gap: 4px;
    background: #eff6ff; color: #1d4ed8;
    padding: 4px 10px; border-radius: var(--r-full);
    font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
}
.trust-score { text-align: right; }
.trust-score__label {
    font-size: .62rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: var(--slate-light); margin-bottom: 3px;
}
.trust-score__value {
    display: inline-block;
    background: var(--blue-10); color: var(--blue);
    font-weight: 900; font-size: .85rem;
    padding: 3px 8px; border-radius: 5px;
}
.pro-card__profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pro-card__avatar {
    width: 60px; height: 60px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.pro-card__name { font-size: 1rem; font-weight: 800; color: var(--blue); margin-bottom: 2px; }
.pro-card__metier { font-size: .8rem; color: var(--slate); }
.pro-card__meta {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 18px;
}
.pro-card__location {
    display: flex; align-items: center; gap: 3px;
    font-size: .82rem; color: var(--anthracite);
}
.pro-card__rating { display: flex; align-items: center; gap: 3px; }
.star { color: #f59e0b !important; font-size: 17px !important; }
.pro-card__rating strong { font-size: .9rem; color: var(--anthracite); }
.pro-card__avis { font-size: .78rem; color: var(--slate-light); }
.pro-card__footer { display: flex; justify-content: space-between; align-items: center; }
.badge-dispo {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700;
    background: #f0fdf4; color: var(--green);
    padding: 4px 10px; border-radius: var(--r-full);
}
.badge-dispo__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    position: relative; min-height: 420px;
    display: flex; align-items: center; justify-content: center;
    padding: 80px 24px; overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400&q=80');
    background-size: cover; background-position: center;
}
.cta-section__overlay {
    position: absolute; inset: 0;
    background: rgba(31,78,120,.82);
}
.cta-section__inner {
    position: relative; z-index: 2;
    text-align: center; color: #fff;
    max-width: 680px;
}
.cta-section__title {
    font-size: clamp(1.6rem, 3.5vw, 2.75rem);
    font-weight: 900; margin-bottom: 14px; line-height: 1.2;
}
.cta-section__sub {
    font-size: 1.05rem; opacity: .88;
    margin-bottom: 34px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--footer);
    color: rgba(255,255,255,.72);
    padding: 64px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 52px;
}
.footer__col--brand p.footer__desc {
    font-size: .85rem; line-height: 1.7;
    margin-top: 14px; color: rgba(255,255,255,.65);
    max-width: 290px;
}
.footer__heading {
    font-size: .78rem; font-weight: 800;
    color: #fff; text-transform: uppercase;
    letter-spacing: .1em; margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links li a {
    font-size: .86rem; color: rgba(255,255,255,.65);
    transition: color var(--transition);
}
.footer__links li a:hover { color: #fff; }
.footer__links--contact li {
    display: flex; align-items: flex-start;
    gap: 8px; font-size: .86rem;
}
.footer__contact-icon {
    font-size: 16px !important; color: var(--ochre);
    flex-shrink: 0; margin-top: 2px;
}
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__social-link {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    transition: background var(--transition), transform var(--transition);
}
.footer__social-link:hover {
    background: var(--ochre); color: #fff;
    transform: translateY(-2px);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
}
.footer__bottom-inner {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer__bottom-inner p,
.footer__bottom-links a {
    font-size: .78rem; color: rgba(255,255,255,.4);
}
.footer__bottom-links { display: flex; gap: 18px; }
.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ================================================================
   RESPONSIVE — TABLET ≤ 1024px
   ================================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .nav { display: none; }
    .header__actions { display: none; }
    .hamburger { display: flex; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }

    .reassurance__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .reassurance__item { padding: 0; }
}

/* ================================================================
   RESPONSIVE — MOBILE ≤ 768px
   ================================================================ */
@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .container { padding: 0 16px; }
    .section { padding: 56px 0; }

    /* Hero */
    .hero { padding: 52px 0 40px; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: .95rem; margin-bottom: 28px; }

    /* Search bar → stack */
    .search-bar__form {
        flex-direction: column;
        border-radius: var(--r-md);
        overflow: visible;
        box-shadow: 0 4px 24px rgba(31,78,120,.16);
    }
    .search-bar__field {
        width: 100%; border-bottom: 1px solid var(--border);
    }
    .search-bar__field:last-of-type { border-bottom: none; }
    .search-bar__divider { display: none; }
    .search-bar__btn {
        width: 100%;
        border-radius: 0 0 var(--r-md) var(--r-md);
        padding: 14px;
        justify-content: center;
    }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }

    /* Steps */
    .steps { flex-direction: column; gap: 28px; align-items: center; }
    .steps__line { display: none; }
    .step { max-width: 280px; }

    /* Pros */
    .pros-carousel { gap: 14px; }
    .pro-card { min-width: 268px; padding: 18px; }

    /* CTA */
    .cta-section { min-height: 340px; padding: 60px 20px; }
    .cta-section__title { font-size: 1.65rem; }
    .btn--xl { padding: 14px 28px; font-size: 1rem; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__col--brand p.footer__desc { max-width: 100%; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE ≤ 480px
   ================================================================ */
@media (max-width: 480px) {
    .logo__text { font-size: .9rem; }
    .hero__title { font-size: 1.75rem; }
    .section__title { font-size: 1.35rem; }
    .pro-card { min-width: 250px; }
    .services-grid { gap: 14px; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
:focus-visible {
    outline: 2px solid var(--ochre);
    outline-offset: 3px;
    border-radius: 4px;
}
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
