@charset "UTF-8";

/* =========================================================
   PAGE VITRINE MODULES WEBANDYOU
   ---------------------------------------------------------
   Objectif :
   - Remplacer l'aspect "portail admin" par une page publique.
   - Mettre les modules en valeur pour des visiteurs / prospects.
   - Conserver le système de cards et la recherche instantanée.

   Organisation :
   1. Base globale
   2. Structure principale
   3. Topbar publique
   4. Hero vitrine
   5. Intro + recherche
   6. Sections et grilles
   7. Cards modules
   8. Couleurs par type de module
   9. Avantages
   10. CTA final
   11. Responsive
   ========================================================= */

/* =========================================================
   1. BASE GLOBALE
   ========================================================= */
*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    color:#1f2937;
    background:
        radial-gradient(circle at top right, rgba(86,130,140,.14), transparent 30%),
        radial-gradient(circle at top left, rgba(57,83,89,.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    padding:24px;
}

a{
    color:inherit;
}

img{
    max-width:100%;
}

/* =========================================================
   2. STRUCTURE PRINCIPALE
   ========================================================= */
.wrap{
    width:100%;
    max-width:1320px;
    margin:0 auto;
}

.pageCard{
    background:rgba(255,255,255,.92);
    border:1px solid #e6edf5;
    border-radius:28px;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
    padding:28px;
    overflow:hidden;
}

/* =========================================================
   3. TOPBAR PUBLIQUE
   ========================================================= */
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
    padding:16px 18px;
    background:#f8fafc;
    border:1px solid #e6edf5;
    border-radius:22px;
    box-shadow:0 8px 20px rgba(15,23,42,.05);
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    text-decoration:none;
}

.logoBox{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ffffff;
    border:1px solid #e4ebf3;
    border-radius:16px;
    box-shadow:0 6px 16px rgba(15,23,42,.06);
    overflow:hidden;
    flex:0 0 auto;
}

.logoBox img{
    display:block;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.brandText{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.brandText strong{
    color:#1f2a37;
    font-size:21px;
    line-height:1.1;
}

.brandText span{
    color:#667085;
    font-size:14px;
    line-height:1.35;
}

.topnav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
}

.topnav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:9px 13px;
    border-radius:999px;
    text-decoration:none;
    color:#395359;
    border:1px solid transparent;
    transition:background .15s ease, border-color .15s ease, transform .15s ease;
}

.topnav a:hover{
    background:#eef5f7;
    border-color:#d6e4e8;
    transform:translateY(-1px);
}

.topnav .topnavCta{
    background:#395359;
    border-color:#395359;
    color:#ffffff;
    box-shadow:0 8px 18px rgba(57,83,89,.18);
}

.topnav .topnavCta:hover{
    background:#56828C;
    border-color:#56828C;
}

/* =========================================================
   4. HERO VITRINE
   ========================================================= */
.hero{
    position:relative;
    min-height:440px;
    display:flex;
    align-items:center;
    overflow:hidden;
    border-radius:26px;
    background:#24333d;
    border:1px solid rgba(255,255,255,.35);
    box-shadow:0 18px 42px rgba(15,23,42,.14);
}

.heroBg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:1;
}

.heroOverlay{
    position:absolute;
    inset:0;
    z-index:2;
    background:
        linear-gradient(90deg, rgba(20,31,38,.88) 0%, rgba(20,31,38,.62) 48%, rgba(20,31,38,.20) 100%),
        radial-gradient(circle at top left, rgba(86,130,140,.40), transparent 35%);
}

.heroContent{
    position:relative;
    z-index:3;
    max-width:760px;
    padding:56px;
    color:#ffffff;
}

.eyebrow,
.sectionKicker{
    margin:0 0 10px;
    color:#56828C;
    font-size:12px;
    font-weight:700;
    letter-spacing:2.5px;
    text-transform:uppercase;
}

.hero .eyebrow{
    color:#d8eef2;
}

.hero h1{
    margin:0;
    color:#ffffff;
    font-size:clamp(26px, 3vw, 40px);
    line-height:1.04;
    letter-spacing:-1.5px;
}

.heroLead{
    max-width:660px;
    margin:22px 0 0;
    color:rgba(255,255,255,.88);
    font-size:18px;
    line-height:1.7;
}

.heroActions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
}

.btnPrimary,
.btnGhost{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:46px;
    padding:12px 18px;
    border-radius:14px;
    text-decoration:none;
    border:1px solid transparent;
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btnPrimary{
    background:#56828C;
    color:#ffffff;
    border-color:#56828C;
    box-shadow:0 12px 24px rgba(0,0,0,.18);
}

.btnPrimary:hover{
    background:#6f9aa3;
    border-color:#6f9aa3;
    transform:translateY(-2px);
    box-shadow:0 16px 30px rgba(0,0,0,.22);
}

.btnGhost{
    background:rgba(255,255,255,.12);
    color:#ffffff;
    border-color:rgba(255,255,255,.45);
    backdrop-filter:blur(8px);
}

.btnGhost:hover{
    background:rgba(255,255,255,.20);
    transform:translateY(-2px);
}

/* =========================================================
   5. INTRO + RECHERCHE
   ========================================================= */
.introBlock{
    display:grid;
    grid-template-columns:minmax(0, 1.4fr) minmax(260px, .7fr);
    gap:22px;
    margin-top:24px;
    padding:24px;
    border-radius:24px;
    background:
        radial-gradient(circle at top right, rgba(86,130,140,.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border:1px solid #e4ebf3;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.introText h2,
.benefitIntro h2,
.finalCta h2{
    margin:0;
    color:#24333d;
    font-size:clamp(26px, 3vw, 38px);
    line-height:1.12;
    letter-spacing:-.6px;
}

.introText p,
.benefitIntro p,
.finalCta p{
    margin:14px 0 0;
    color:#5f6c76;
    line-height:1.7;
}

.introStats{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
    align-self:start;
}

.statBox{
    min-height:96px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    padding:16px;
    border-radius:18px;
    background:#f1f5f9;
    border:1px solid #dde6ef;
    text-align:center;
}

.statBox strong{
    color:#395359;
    font-size:30px;
    line-height:1;
}

.statBox span{
    color:#667085;
    font-size:13px;
}

.searchWrap{
    grid-column:1 / -1;
    margin-top:2px;
}

.searchLabel{
    display:block;
    margin:0 0 8px;
    color:#52606d;
    font-size:14px;
}

.searchInput{
    width:100%;
    display:block;
    padding:15px 17px;
    border-radius:16px;
    border:1px solid #d7e2ec;
    background:#ffffff;
    color:#1f2937;
    outline:none;
    box-shadow:0 8px 18px rgba(15,23,42,.05);
    transition:border-color .15s ease, box-shadow .15s ease;
}

.searchInput:focus{
    border-color:#8fb2bb;
    box-shadow:0 12px 24px rgba(86,130,140,.14);
}

.searchHelp{
    margin:8px 0 0;
    color:#667085;
    font-size:13px;
}

/* =========================================================
   6. SECTIONS ET GRILLES
   ========================================================= */
.sectionBlock{
    margin-top:34px;
}

.sectionHead{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}

.sectionTitle{
    margin:0;
    color:#24333d;
    font-size:26px;
    line-height:1.2;
}

.sectionDesc{
    max-width:760px;
    margin:7px 0 0;
    color:#667085;
    font-size:15px;
    line-height:1.6;
}

.sectionBadge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    padding:8px 13px;
    border-radius:999px;
    background:#f1f5f9;
    border:1px solid #dde6ef;
    color:#395359;
    font-size:13px;
    white-space:nowrap;
}

.grid{
    display:grid;
    gap:20px;
}

.grid.grid-cols-2{
    grid-template-columns:repeat(2, minmax(0, 1fr));
}

.grid.grid-cols-3{
    grid-template-columns:repeat(3, minmax(0, 1fr));
}

.grid.grid-cols-4{
    grid-template-columns:repeat(4, minmax(0, 1fr));
}

/* =========================================================
   7. CARDS MODULES
   ========================================================= */
.tile{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:16px;
    min-height:360px;
    padding:20px;
    border-radius:22px;
    border:1px solid #dde6ef;
    background:#f8fafc;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    overflow:hidden;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tile::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:5px;
    background:#56828C;
    opacity:.85;
}

.tile:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 34px rgba(15,23,42,.10);
    border-color:#cfdbe8;
}

.tileTop{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.tileIcon{
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:#ffffff;
    border:1px solid rgba(15,23,42,.08);
    box-shadow:0 8px 16px rgba(15,23,42,.06);
    font-size:28px;
    line-height:1;
}

.tileStatus{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    border-radius:999px;
    background:#ffffff;
    border:1px solid #dbe5ef;
    color:#395359;
    font-size:12px;
    line-height:1;
    white-space:nowrap;
    box-shadow:0 4px 10px rgba(15,23,42,.04);
}

.status-soon .tileStatus{
    color:#8a4b08;
    border-color:#f2d7ab;
    background:#fff7ed;
}

.tileBody{
    flex:1 1 auto;
}

.tileTitle{
    margin:0 0 10px;
    color:#24333d;
    font-size:23px;
    line-height:1.22;
}

.tileDesc{
    margin:0;
    color:#60707c;
    font-size:15px;
    line-height:1.65;
}

.featureList{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.featureList span{
    display:inline-flex;
    align-items:center;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(15,23,42,.08);
    color:#395359;
    font-size:12px;
    line-height:1;
}

.tileActions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:auto;
}

.tileBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:10px 13px;
    border-radius:13px;
    text-decoration:none;
    border:1px solid #d8e2ec;
    background:#ffffff;
    color:#395359;
    font-size:13px;
    line-height:1.15;
    box-shadow:0 5px 12px rgba(15,23,42,.05);
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.tileBtn:hover{
    transform:translateY(-1px);
    box-shadow:0 9px 18px rgba(15,23,42,.09);
}

.tileBtnPrimary{
    background:#395359;
    border-color:#395359;
    color:#ffffff;
}

.tileBtnPrimary:hover{
    background:#56828C;
    border-color:#56828C;
}

.tileBtnSecondary:hover{
    background:#eef5f7;
    border-color:#cfe0e4;
}

.tileBtnDisabled{
    color:#8a4b08;
    background:#fff7ed;
    border-color:#f2d7ab;
    cursor:not-allowed;
    box-shadow:none;
}

.tile.is-hidden,
.sectionBlock.is-hidden{
    display:none;
}

/* =========================================================
   8. COULEURS PAR TYPE DE MODULE
   ========================================================= */
.type-quiz{
    border-color:#d6e6f8;
    background:linear-gradient(180deg, #f4f9ff 0%, #eef6ff 100%);
}

.type-quiz::before{
    background:#3d7fbc;
}

.type-app{
    border-color:#f1dfc8;
    background:linear-gradient(180deg, #fff9f3 0%, #fff5ea 100%);
}

.type-app::before{
    background:#cf7a1c;
}

.type-form{
    border-color:#d5eadb;
    background:linear-gradient(180deg, #f4fcf6 0%, #edf9f0 100%);
}

.type-form::before{
    background:#2f8f5c;
}

.type-comments{
    border-color:#e7daf6;
    background:linear-gradient(180deg, #faf7ff 0%, #f5efff 100%);
}

.type-comments::before{
    background:#7b4ab8;
}

.type-testimonial{
    border-color:#edd8db;
    background:linear-gradient(180deg, #fff7f8 0%, #fff1f3 100%);
}

.type-testimonial::before{
    background:#b34d64;
}

/* =========================================================
   9. AVANTAGES
   ========================================================= */
.benefits{
    display:grid;
    grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
    gap:24px;
    margin-top:38px;
    padding:26px;
    border-radius:26px;
    background:#f8fafc;
    border:1px solid #e6edf5;
}

.benefitGrid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.benefitCard{
    padding:18px;
    border-radius:20px;
    background:#ffffff;
    border:1px solid #e4ebf3;
    box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.benefitCard span{
    display:flex;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
    border-radius:15px;
    background:#f1f5f9;
    font-size:23px;
}

.benefitCard strong{
    display:block;
    color:#24333d;
    font-size:17px;
    margin-bottom:7px;
}

.benefitCard p{
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.55;
}

/* =========================================================
   10. CTA FINAL
   ========================================================= */
.finalCta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-top:28px;
    padding:26px;
    border-radius:26px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.20), transparent 30%),
        linear-gradient(135deg, #395359 0%, #56828C 100%);
    color:#ffffff;
    box-shadow:0 16px 32px rgba(57,83,89,.20);
}

.finalCta .sectionKicker,
.finalCta h2,
.finalCta p{
    color:#ffffff;
}

.finalCta p{
    color:rgba(255,255,255,.88);
    max-width:760px;
}

.finalCta .btnPrimary{
    flex:0 0 auto;
    background:#ffffff;
    border-color:#ffffff;
    color:#395359;
}

.finalCta .btnPrimary:hover{
    background:#eef5f7;
    border-color:#eef5f7;
}

.footerNote{
    margin:22px 0 0;
    color:#667085;
    font-size:13px;
    text-align:center;
}

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width: 1150px){
    .grid.grid-cols-4{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }

    .benefits{
        grid-template-columns:1fr;
    }
}

@media (max-width: 980px){
    .topbar,
    .sectionHead,
    .finalCta{
        flex-direction:column;
        align-items:flex-start;
    }

    .topnav{
        justify-content:flex-start;
    }

    .introBlock{
        grid-template-columns:1fr;
    }

    .grid.grid-cols-4,
    .grid.grid-cols-3{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .heroContent{
        padding:42px;
    }
}

@media (max-width: 720px){
    body{
        padding:14px;
    }

    .pageCard{
        padding:16px;
        border-radius:22px;
    }

    .hero{
        min-height:520px;
        border-radius:22px;
    }

    .heroOverlay{
        background:linear-gradient(180deg, rgba(20,31,38,.88) 0%, rgba(20,31,38,.72) 100%);
    }

    .heroContent{
        padding:30px 22px;
    }

    .heroLead{
        font-size:16px;
    }

    .heroActions,
    .tileActions{
        flex-direction:column;
        align-items:stretch;
    }

    .btnPrimary,
    .btnGhost,
    .tileBtn{
        width:100%;
    }

    .introStats,
    .benefitGrid{
        grid-template-columns:1fr;
    }

    .grid.grid-cols-4,
    .grid.grid-cols-3,
    .grid.grid-cols-2{
        grid-template-columns:1fr;
    }

    .tile{
        min-height:auto;
    }
}

@media (max-width: 480px){
    .brand{
        align-items:flex-start;
    }

    .logoBox{
        width:50px;
        height:50px;
        border-radius:14px;
    }

    .topnav{
        width:100%;
    }

    .topnav a{
        flex:1 1 auto;
    }

    .introBlock,
    .benefits,
    .finalCta{
        padding:20px;
        border-radius:22px;
    }
}
