/* Allopromo.ca - home-v2.css v2.5 CONTINUOUS SKY - 2026-08-23 */

/*
=========================================================
V2.4 : nouvelle image quebec-hero-v2.png optimisée pour le Hero.
OBJECTIF
- Conserver le front-office V2.2 validé
- Côté gauche : fond blanc / bleu très clair
- Transition douce vers la photo
- Côté droit : photo claire, nette, Château Frontenac visible
- Recherche centrée et lisible
- Responsive desktop / tablette / mobile
- Aucun changement PHP / SQL / Mapbox
=========================================================
*/

body.home-v2{
    --blue:#0b4fb5;
    --blue-dark:#08356f;
    --blue-light:#eaf4ff;
    --red:#df2424;
    --text:#0c2445;
    --muted:#5e6d7b;
    --soft:#f5f8fc;
    --border:#dfe7ef;

    margin:0;
    background:#fff;
    color:var(--text);
}

body.home-v2 main{
    overflow:hidden;
}

body.home-v2 .v2-container{
    width:min(1220px,calc(100% - 48px));
    margin:0 auto;
}

/* =====================================================
   HEADER
===================================================== */

body.home-v2 .v22-header{
    min-height:92px;
    padding:14px 3.5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:26px;
    background:#fff;
    position:sticky;
    top:0;
    z-index:100;
    border-bottom:1px solid #edf1f5;
    box-shadow:0 2px 12px rgba(8,53,111,.05);
}

body.home-v2 .v22-brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    flex:0 0 auto;
}

body.home-v2 .v22-brand-logo{
    width:62px !important;
    height:62px !important;
    max-width:62px !important;
    object-fit:contain;
    border-radius:50%;
}

body.home-v2 .v22-brand-copy{
    display:flex;
    flex-direction:column;
    line-height:1;
}

body.home-v2 .v22-brand-copy strong{
    color:#1769c2;
    font-size:30px;
    letter-spacing:-1px;
    white-space:nowrap;
}

body.home-v2 .v22-brand-copy strong span{
    color:var(--red);
}

body.home-v2 .v22-brand-copy small{
    margin-top:7px;
    color:var(--blue-dark);
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    white-space:nowrap;
}

body.home-v2 .v22-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:22px;
    flex-wrap:wrap;
}

body.home-v2 .v22-nav a{
    color:var(--text);
    font-size:14px;
    font-weight:800;
    text-decoration:none;
}

body.home-v2 .v22-nav a:hover{
    color:var(--red);
}

body.home-v2 .v22-nav .langs{
    color:var(--blue-dark);
    background:transparent;
    padding:0;
    font-size:13px;
}

/* =====================================================
   HERO - FUSION BLANC/BLEU CLAIR -> PHOTO
===================================================== */

body.home-v2 .v22-hero{
    position:relative;
    min-height:640px;
    background:#fff;
    isolation:isolate;
}

body.home-v2 .v22-hero-bg{
    position:absolute;
    inset:0;
    z-index:0;
    overflow:hidden;
    background:#f4faff;
}

/*
 * Photo séparée du dégradé :
 * - permet de garder la photo claire et nette à droite
 * - permet de déplacer le Château sans toucher au texte
 */
body.home-v2 .v22-hero-bg::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;

    background-image:url("../images/quebec-hero-v2.png");
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;

    filter:brightness(1.02) saturate(1.02) contrast(1.01);
    transform:scale(1.002);
}

/*
 * Dégradé gauche :
 * blanc + bleu très clair -> transparent.
 * Il devient presque transparent avant le Château.
 */
body.home-v2 .v22-hero-bg::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;

    background:
        linear-gradient(
            90deg,
            rgba(247,252,255,.48) 0%,
            rgba(239,248,255,.32) 20%,
            rgba(245,251,255,.14) 34%,
            rgba(255,255,255,.04) 44%,
            rgba(255,255,255,0) 54%
        );
}

body.home-v2 .v22-hero-inner{
    position:relative;
    z-index:2;
    min-height:640px;
    padding-top:72px;
    padding-bottom:48px;
}

body.home-v2 .v22-hero-content{
    width:43%;
    max-width:560px;
}

body.home-v2 .v22-eyebrow{
    display:block;
    margin:0 0 22px;
    padding-top:4px;
    color:var(--blue-dark);
    font-size:12px;
    font-weight:900;
    line-height:1.4;
    letter-spacing:.16em;
}

body.home-v2 .v22-eyebrow span{
    color:var(--red);
    margin:0 6px;
}

body.home-v2 .v22-hero h1{
    margin:0 0 24px;
    color:var(--blue-dark);
    font-size:clamp(42px,4.15vw,60px);
    line-height:.99;
    letter-spacing:-.045em;
}

body.home-v2 .v22-hero h1 span{
    display:block;
    color:var(--red);
}

body.home-v2 .v22-lead{
    max-width:640px;
    margin:0;
    color:#243c5a;
    font-size:18px;
    line-height:1.65;
}

/* =====================================================
   SEARCH - CENTRÉ
===================================================== */

body.home-v2 .v22-search{
    width:min(1080px,100%);
    margin:42px auto 0;
    display:grid;
    grid-template-columns:1.15fr 1.45fr .8fr 210px;
    align-items:stretch;
    background:rgba(255,255,255,.975);
    border:1px solid rgba(8,53,111,.09);
    border-radius:18px;
    box-shadow:0 16px 42px rgba(8,53,111,.14);
    overflow:hidden;
}

body.home-v2 .v22-field{
    padding:14px 22px;
    border-right:1px solid #e8eef4;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

body.home-v2 .v22-field label{
    display:block;
    margin-bottom:6px;
    color:var(--blue-dark);
    font-size:13px;
    font-weight:800;
}

body.home-v2 .v22-field input,
body.home-v2 .v22-field select{
    width:100%;
    min-height:40px;
    padding:4px 0;
    border:0;
    outline:0;
    box-shadow:none;
    background:transparent;
    color:#273b54;
    font-size:15px;
}

body.home-v2 .v22-search-button{
    min-width:0;
    min-height:72px;
    margin:10px;
    padding:0 24px;
    border-radius:10px;
    background:var(--blue);
    color:#fff;
    font-size:16px;
    font-weight:800;
    box-shadow:none;
    align-self:stretch;
}

body.home-v2 .v22-search-button:hover{
    background:var(--blue-dark);
    transform:none;
}

body.home-v2 .v22-location-wrap{
    text-align:center;
}

body.home-v2 .v22-location-button{
    margin-top:14px;
    padding:12px 30px;
    background:#fff;
    color:var(--blue);
    border:1.5px solid var(--blue);
    border-radius:10px;
    font-weight:800;
}

body.home-v2 .v22-location-button:hover{
    background:#eef5ff;
    transform:none;
}

/* =====================================================
   BENEFITS
===================================================== */

body.home-v2 .v22-benefits{
    padding:20px 0 10px;
}

body.home-v2 .v22-benefit-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#f8fbff;
    border:1px solid #e7eef6;
    border-radius:16px;
    overflow:hidden;
}

body.home-v2 .v22-benefit{
    min-height:142px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    padding:22px;
    text-align:left;
}

body.home-v2 .v22-benefit + .v22-benefit{
    border-left:1px solid #e1e8f0;
}

body.home-v2 .v22-benefit-icon{
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 54px;
    border-radius:50%;
    background:#e7f0ff;
    color:var(--blue);
    font-size:22px;
    font-weight:900;
}

body.home-v2 .v22-benefit-icon.red{
    background:#fdeced;
    color:var(--red);
}

body.home-v2 .v22-benefit h3{
    margin:0 0 7px;
    color:var(--text);
    font-size:17px;
}

body.home-v2 .v22-benefit p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

/* =====================================================
   SECTIONS
===================================================== */

body.home-v2 .v22-section,
body.home-v2 .v22-how{
    padding:62px 0;
}

body.home-v2 .v22-heading{
    margin-bottom:34px;
    text-align:center;
}

body.home-v2 .v22-heading h2{
    margin:0;
    color:var(--blue-dark);
    font-size:34px;
}

body.home-v2 .v22-heading p{
    margin:8px 0 0;
    color:var(--muted);
}

body.home-v2 .v22-heading-line{
    display:block;
    width:62px;
    height:3px;
    margin:14px auto 0;
    background:var(--red);
}

/* CATEGORIES */

body.home-v2 .v22-category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

body.home-v2 .v22-category{
    min-height:105px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:18px;
    background:#fff;
    border:1px solid #e5ebf2;
    border-radius:16px;
    color:var(--text);
    font-weight:800;
    text-decoration:none;
    box-shadow:0 5px 18px rgba(8,53,111,.05);
}

body.home-v2 .v22-category:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 26px rgba(8,53,111,.10);
}

body.home-v2 .v22-category-icon{
    color:var(--blue);
    font-size:28px;
}

/* HOW */

body.home-v2 .v22-how{
    padding-top:42px;
}

body.home-v2 .v22-how-grid{
    display:grid;
    grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
    align-items:center;
    gap:18px;
}

body.home-v2 .v22-how-step{
    position:relative;
    text-align:center;
}

body.home-v2 .v22-number{
    position:absolute;
    top:-5px;
    left:calc(50% - 52px);
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--blue-dark);
    color:#fff;
    font-weight:800;
    z-index:2;
}

body.home-v2 .v22-how-icon{
    width:86px;
    height:86px;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#edf4ff;
    color:var(--blue);
    font-size:32px;
    font-weight:900;
}

body.home-v2 .v22-how-icon.blue{
    background:var(--blue);
    color:#fff;
    font-family:Arial,sans-serif;
}

body.home-v2 .v22-how-step h3{
    margin:0 0 9px;
    color:var(--text);
}

body.home-v2 .v22-how-step p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

body.home-v2 .v22-how-arrow{
    color:var(--blue-dark);
    font-size:36px;
    font-weight:300;
}

/* SELLER */

body.home-v2 .v22-seller{
    padding:20px 0 48px;
}

body.home-v2 .v22-seller-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    padding:30px 34px;
    border-radius:20px;
    background:linear-gradient(135deg,#0a3f88,#1769c2);
    color:#fff;
}

body.home-v2 .v22-seller h2{
    margin:0 0 6px;
    color:#fff;
}

body.home-v2 .v22-seller p{
    margin:0;
    color:rgba(255,255,255,.86);
}

body.home-v2 .v22-seller-button{
    padding:13px 22px;
    border-radius:10px;
    background:var(--red);
    color:#fff;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

body.home-v2 .v22-disclaimer{
    margin-bottom:30px;
    padding:14px 18px;
    border-radius:12px;
    background:#fff8e8;
    border:1px solid #f0d9a5;
    color:#72531c;
    font-size:13px;
}

body.home-v2 footer{
    margin-top:0;
    background:var(--blue-dark);
    color:rgba(255,255,255,.8);
    border:0;
}

body.home-v2 footer a{
    color:#fff;
}

/* =====================================================
   LARGE DESKTOP
===================================================== */

@media(min-width:1400px){

    body.home-v2 .v22-hero-bg::before{
        background-position:center center;
    }

    body.home-v2 .v22-hero-content{
        width:53%;
    }
}

/* =====================================================
   TABLETTE / PETIT DESKTOP
===================================================== */

@media(max-width:1020px){

    body.home-v2 .v22-header{
        flex-direction:column;
        align-items:flex-start;
    }

    body.home-v2 .v22-nav{
        justify-content:flex-start;
    }

    body.home-v2 .v22-hero{
        min-height:610px;
    }

    body.home-v2 .v22-hero-bg::before{
        background-position:center center;
    }

    body.home-v2 .v22-hero-bg::after{
        background:
            linear-gradient(
                90deg,
                rgba(247,252,255,.62) 0%,
                rgba(239,248,255,.44) 24%,
                rgba(245,251,255,.20) 40%,
                rgba(255,255,255,.06) 50%,
                rgba(255,255,255,0) 60%
            );
    }

    body.home-v2 .v22-hero-inner{
        min-height:610px;
        padding-top:60px;
    }

    body.home-v2 .v22-hero-content{
        width:61%;
    }

    body.home-v2 .v22-hero h1{
        font-size:clamp(42px,5.4vw,58px);
    }

    body.home-v2 .v22-search{
        grid-template-columns:1fr 1fr;
        width:100%;
        max-width:900px;
    }

    body.home-v2 .v22-search-button{
        grid-column:1 / -1;
        min-height:56px;
        margin:10px;
    }

    body.home-v2 .v22-benefit-grid{
        grid-template-columns:repeat(2,1fr);
    }

    body.home-v2 .v22-benefit:nth-child(3){
        border-left:0;
        border-top:1px solid #e1e8f0;
    }

    body.home-v2 .v22-benefit:nth-child(4){
        border-top:1px solid #e1e8f0;
    }

    body.home-v2 .v22-category-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:700px){

    body.home-v2 .v2-container{
        width:calc(100% - 28px);
    }

    body.home-v2 .v22-header{
        min-height:auto;
        padding:10px 14px;
        gap:8px;
    }

    body.home-v2 .v22-brand-logo{
        width:48px !important;
        height:48px !important;
        max-width:48px !important;
    }

    body.home-v2 .v22-brand-copy strong{
        font-size:23px;
    }

    body.home-v2 .v22-brand-copy small{
        font-size:7px;
        margin-top:5px;
    }

    body.home-v2 .v22-nav{
        gap:8px 12px;
        font-size:12px;
    }

    body.home-v2 .v22-nav a{
        font-size:12px;
    }

    body.home-v2 .v22-hero{
        min-height:auto;
    }

    body.home-v2 .v22-hero-bg::before{
        background-position:58% center;
        filter:brightness(1.02) saturate(1.02) contrast(1.01);
    }

    body.home-v2 .v22-hero-bg::after{
        /*
         * Mobile : le texte reste lisible en haut, tandis que la photo
         * redevient clairement visible dans la moitié basse.
         */
        background:
            linear-gradient(
                180deg,
                rgba(247,252,255,.82) 0%,
                rgba(239,248,255,.72) 30%,
                rgba(245,251,255,.46) 48%,
                rgba(255,255,255,.20) 65%,
                rgba(255,255,255,.05) 82%,
                rgba(255,255,255,0) 100%
            );
    }

    body.home-v2 .v22-hero-inner{
        min-height:auto;
        padding-top:40px;
        padding-bottom:74px;
    }

    body.home-v2 .v22-hero-content{
        width:100%;
        text-align:center;
    }

    body.home-v2 .v22-eyebrow{
        font-size:9px;
        letter-spacing:.09em;
        line-height:1.45;
    }

    body.home-v2 .v22-hero h1{
        font-size:42px;
        line-height:1.02;
    }

    body.home-v2 .v22-lead{
        font-size:16px;
        line-height:1.6;
    }

    body.home-v2 .v22-search{
        width:100%;
        margin-top:30px;
        grid-template-columns:1fr;
        border-radius:16px;
    }

    body.home-v2 .v22-field{
        border-right:0;
        border-bottom:1px solid #e8eef4;
    }

    body.home-v2 .v22-search-button{
        grid-column:auto;
        width:auto;
        min-height:54px;
        margin:10px;
    }

    body.home-v2 .v22-location-button{
        width:100%;
    }

    body.home-v2 .v22-benefit-grid{
        grid-template-columns:1fr;
    }

    body.home-v2 .v22-benefit + .v22-benefit{
        border-left:0;
        border-top:1px solid #e1e8f0;
    }

    body.home-v2 .v22-category-grid{
        grid-template-columns:1fr;
    }

    body.home-v2 .v22-how-grid{
        grid-template-columns:1fr;
    }

    body.home-v2 .v22-how-arrow{
        transform:rotate(90deg);
    }

    body.home-v2 .v22-seller-inner{
        flex-direction:column;
        text-align:center;
    }

    body.home-v2 .v22-seller-button{
        width:100%;
        text-align:center;
    }
}

/* =====================================================
   TRÈS PETIT MOBILE
===================================================== */

@media(max-width:420px){

    body.home-v2 .v22-brand-copy strong{
        font-size:20px;
    }

    body.home-v2 .v22-brand-copy small{
        white-space:normal;
        line-height:1.2;
    }

    body.home-v2 .v22-hero h1{
        font-size:36px;
    }

    body.home-v2 .v22-hero-inner{
        padding-top:32px;
    }
}


/* v2.4.2 - cadrage du texte Hero */
body.home-v2 .v22-hero .v21-lead,
body.home-v2 .v22-hero p.v21-lead{
    width:100%;
    max-width:520px;
    margin:18px 0 0;
    font-size:17px;
    line-height:1.55;
    color:#34495e;
}



/* =========================================================
   V2.4.3 - FOND GENERAL BLEU CIEL
   ========================================================= */
html,
body.home-v2{
    background:#eaf6ff !important;
}

body.home-v2 main{
    background:#eaf6ff;
}

/* Sections outside the photographic hero inherit the sky background. */
body.home-v2 main > section:not(.v22-hero):not(.v21-hero){
    background-color:#eaf6ff;
}

/* Keep functional/content surfaces white for contrast. */
body.home-v2 .v22-header,
body.home-v2 .v21-search-form,
body.home-v2 .v22-search-form{
    background-color:#ffffff;
}

/* V2.4.3 - final text refinement */
@media (min-width:1101px){
    body.home-v2 .v22-hero h1{
        font-size:clamp(39px,3.8vw,55px);
        line-height:1.04;
    }

    body.home-v2 .v22-hero .v21-lead,
    body.home-v2 .v22-hero p.v21-lead{
        max-width:445px;
        font-size:16px;
        line-height:1.5;
    }
}


/* =========================================================
   V2.5 - CONTINUITE BLEU CIEL + HERO TYPE MAQUETTE
   ========================================================= */

/* Une seule ambiance bleu ciel : aucun trait visuel header/hero */
html,
body.home-v2,
body.home-v2 main,
body.home-v2 .v22-header{
    background:#eaf6ff !important;
}

body.home-v2 .v22-header{
    border-bottom:0 !important;
    box-shadow:none !important;
}

/* Le hero part du même bleu que le header */
body.home-v2 .v22-hero,
body.home-v2 .v22-hero-bg{
    background:#eaf6ff !important;
}

/* Photo nette à droite, fusion progressive avec le bleu ciel */
body.home-v2 .v22-hero-bg::before{
    background-image:url("../images/quebec-hero-v2.png") !important;
    background-size:cover !important;
    background-position:center 42% !important;
    filter:brightness(1.04) saturate(1.04) contrast(1.01);
}

body.home-v2 .v22-hero-bg::after{
    background:linear-gradient(
        90deg,
        rgba(234,246,255,1) 0%,
        rgba(234,246,255,.98) 19%,
        rgba(234,246,255,.88) 29%,
        rgba(234,246,255,.56) 39%,
        rgba(234,246,255,.18) 49%,
        rgba(234,246,255,0) 59%
    ) !important;
}

/* Titre contenu dans la partie gauche */
@media (min-width:1101px){
    body.home-v2 .v22-hero-content{
        width:43%;
        max-width:535px;
    }

    body.home-v2 .v22-hero h1{
        font-size:clamp(38px,3.65vw,53px) !important;
        line-height:1.04 !important;
        margin-bottom:18px;
    }
}

/*
 * Le texte descriptif devient une carte d'information sous la photo/recherche.
 * Cela évite tout chevauchement avec le Château.
 */
body.home-v2 .v22-lead,
body.home-v2 .v22-hero .v21-lead,
body.home-v2 .v22-hero p.v21-lead{
    position:absolute;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    z-index:5;
    width:min(900px,calc(100vw - 96px)) !important;
    max-width:900px !important;
    box-sizing:border-box;
    margin:0 !important;
    padding:18px 28px 18px 78px;
    border:1px solid rgba(11,79,181,.10);
    border-radius:22px;
    background:rgba(255,255,255,.90);
    box-shadow:0 10px 28px rgba(8,53,111,.08);
    color:#173b70 !important;
    font-size:16px !important;
    line-height:1.5 !important;
}

/* Icône décorative, sans modification HTML */
body.home-v2 .v22-lead::before,
body.home-v2 .v22-hero .v21-lead::before{
    content:"✓";
    position:absolute;
    left:24px;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#0b4fb5;
    color:#fff;
    font-size:20px;
    font-weight:900;
}

/* Réserver l'espace pour la nouvelle carte descriptive */
body.home-v2 .v22-hero{
    min-height:720px;
}

body.home-v2 .v22-hero-inner{
    min-height:720px;
    padding-bottom:125px;
}

/* Les sections suivantes gardent exactement le même bleu ciel */
body.home-v2 .v22-benefits,
body.home-v2 .v22-section,
body.home-v2 .v22-how{
    background:#eaf6ff !important;
}

/* Cartes blanches sur le fond bleu ciel */
body.home-v2 .v22-benefit-grid,
body.home-v2 .v22-category{
    background:#fff;
}

/* TABLETTE */
@media (max-width:1100px){
    body.home-v2 .v22-lead,
    body.home-v2 .v22-hero .v21-lead,
    body.home-v2 .v22-hero p.v21-lead{
        width:calc(100% - 48px) !important;
        padding:16px 22px 16px 68px;
        font-size:15px !important;
    }
}

/* MOBILE : flux normal, lisible, sans chevauchement */
@media (max-width:760px){
    body.home-v2 .v22-header{
        background:#eaf6ff !important;
    }

    body.home-v2 .v22-hero{
        min-height:auto;
    }

    body.home-v2 .v22-hero-inner{
        min-height:auto;
        padding-bottom:34px;
    }

    body.home-v2 .v22-hero-bg::before{
        background-position:62% center !important;
    }

    body.home-v2 .v22-hero-bg::after{
        background:linear-gradient(
            180deg,
            rgba(234,246,255,.98) 0%,
            rgba(234,246,255,.90) 35%,
            rgba(234,246,255,.42) 62%,
            rgba(234,246,255,.16) 100%
        ) !important;
    }

    body.home-v2 .v22-lead,
    body.home-v2 .v22-hero .v21-lead,
    body.home-v2 .v22-hero p.v21-lead{
        position:relative;
        left:auto;
        bottom:auto;
        transform:none;
        width:100% !important;
        max-width:none !important;
        margin:24px 0 0 !important;
        padding:16px 18px 16px 62px;
        border-radius:18px;
        background:rgba(255,255,255,.94);
    }

    body.home-v2 .v22-lead::before,
    body.home-v2 .v22-hero .v21-lead::before{
        left:16px;
        width:34px;
        height:34px;
        font-size:17px;
    }
}
