/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f7fb;
    color:#1e293b;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

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

.header{
    background:#fff;
    box-shadow:0 2px 15px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    gap:20px;
}

.logo-container{
    display:flex;
    align-items:center;
    gap:15px;
    color:#0f172a;
}

.logo{
    width:55px;
    height:55px;
    object-fit:contain;
}

.logo-text h2{
    font-size:20px;
    font-weight:700;
}

.logo-text span{
    font-size:13px;
    color:#64748b;
}

.nav-menu ul{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-menu a{
    color:#0f172a;
    font-weight:600;
    transition:.3s;
}

.nav-menu a:hover{
    color:#2563eb;
}

/* TABLET */

@media(max-width:992px){

    .navbar{
        flex-direction:column;
    }

    .nav-menu ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }
}

/* MOBILE */

@media(max-width:768px){

    .container{
        width:95%;
    }

    .logo{
        width:48px;
        height:48px;
    }

    .logo-text h2{
        font-size:18px;
    }

    .logo-text span{
        font-size:12px;
    }

    .nav-menu ul{
        gap:12px;
    }
}
/* =========================
   HERO
========================= */

.hero{
    padding:80px 0;
    text-align:center;
    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
    color:#fff;
}

.hero h1{
    font-size:48px;
    font-weight:800;
    margin-bottom:20px;
    line-height:1.2;
}

.hero p{
    max-width:800px;
    margin:auto;
    font-size:18px;
    opacity:.95;
}

.badge{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:8px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    margin-bottom:20px;
}

/* =========================
   BUTTONS
========================= */

.hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin-top:30px;
    flex-wrap:wrap;
}

.hero-buttons a,
.hero-buttons button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
    padding:14px 24px;
    border:none;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.btn-primary:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.btn-secondary{
    background:#fff;
    color:#2563eb;
    padding:14px 24px;
    border:none;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.btn-secondary:hover{
    transform:translateY(-2px);
}

/* =========================
   TITRES
========================= */

.section-title{
    text-align:center;
    margin-bottom:40px;
}

.section-title span{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:10px;
}

.section-title h2{
    font-size:36px;
    margin-bottom:10px;
}

.section-title p{
    color:#64748b;
    max-width:700px;
    margin:auto;
}

/* MOBILE */

@media(max-width:768px){

    .hero{
        padding:50px 0;
    }

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:16px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-buttons a,
    .hero-buttons button{
        width:100%;
        max-width:280px;
    }

    .section-title h2{
        font-size:28px;
    }
}
/* =========================
   CARDS
========================= */

.hero-card{
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    margin-bottom:30px;
}

/* =========================
   FORMULAIRES
========================= */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:20px;
}

.form-group label{
    font-weight:600;
    margin-bottom:8px;
    color:#0f172a;
}

.form-group input,
.form-group textarea,
.form-group select{
    width:100%;
    padding:15px;
    border:1px solid #dbe2ea;
    border-radius:12px;
    background:#fff;
    font-size:15px;
    transition:.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.form-group textarea{
    resize:vertical;
    min-height:120px;
}

#customJobContainer{
    display:none;
    width:100%;
    margin-top:20px;
}

/* =========================
   PREVIEW
========================= */

.preview-card{
    max-width:1000px;
    margin:auto;
}

#letterPreview,
#cvPreview{
    background:#fff;
    padding:45px;
    border-radius:20px;
    border:1px solid #e5e7eb;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

#previewName{
    font-size:32px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:10px;
}

#previewInfos{
    color:#64748b;
    margin-bottom:10px;
}

#previewDate{
    text-align:right;
    margin-bottom:25px;
    font-style:italic;
}

#previewLetter{
    white-space:pre-line;
    text-align:justify;
    line-height:1.8;
    font-size:18px;
    color:#1e293b;
}

#previewClosing{
    margin-top:35px;
    line-height:1.8;
}

#previewSignature{
    margin-top:40px;
    font-size:18px;
    font-weight:700;
}

/* =========================
   SCORE
========================= */

.cv-score-box{
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    margin-top:25px;
    text-align:center;
}

#cvScore,
#letterScore{
    font-size:48px;
    font-weight:800;
    color:#2563eb;
    margin-bottom:10px;
}

/* MOBILE */

@media(max-width:768px){

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

    .hero-card{
        padding:20px;
    }

    #letterPreview,
    #cvPreview{
        padding:25px;
    }

    #previewName{
        font-size:24px;
    }

    #previewLetter{
        font-size:16px;
    }

    #cvScore,
    #letterScore{
        font-size:36px;
    }
}
/* =========================
   FOOTER
========================= */

.footer,
footer{
    background:#0f172a;
    color:#fff;
    text-align:center;
    padding:50px 20px;
    margin-top:50px;
}

footer img,
.footer img,
.footer-logo{
    height:60px;
    width:auto;
    max-width:120px;
    display:block;
    margin:0 auto 15px;
}

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    margin:25px 0;
}

.footer-links a,
footer a{
    color:#cbd5e1;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover,
footer a:hover{
    color:#fff;
}

footer p,
.footer p{
    margin-bottom:10px;
    line-height:1.7;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .footer-links{
        flex-direction:column;
        gap:12px;
    }

    footer img,
    .footer img,
    .footer-logo{
        height:50px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-buttons a,
    .hero-buttons button{
        width:100%;
        max-width:280px;
    }
}

/* =========================
   PETIT TELEPHONE
========================= */

@media(max-width:480px){

    .hero h1{
        font-size:24px;
    }

    .section-title h2{
        font-size:24px;
    }

    #previewName{
        font-size:20px;
    }

    #previewLetter{
        font-size:15px;
    }

    #cvScore,
    #letterScore{
        font-size:32px;
    }
}

/* =========================
   IMPRESSION PDF
========================= */

@media print{

    body{
        background:#fff;
    }

    header,
    footer,
    .hero,
    .hero-buttons,
    .cv-score-box{
        display:none !important;
    }

    #cvPreview,
    #letterPreview{
        box-shadow:none;
        border:none;
        padding:0;
        margin:0;
    }
}
/* =========================
   FORCE SAME FOOTER STYLE
========================= */

footer,
.footer{
    background:#0f172a !important;
    color:#fff !important;
    text-align:center !important;
    padding:50px 20px !important;
    margin-top:50px !important;
    border:none !important;
}

footer .container,
.footer .container{
    max-width:1200px;
    width:90%;
    margin:auto;
}

footer img,
.footer img,
.footer-logo{
    height:60px !important;
    width:auto !important;
    display:block !important;
    margin:0 auto 15px !important;
}

.footer-links{
    display:flex !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:20px !important;
    margin:25px 0 !important;
}

.footer-links a{
    color:#cbd5e1 !important;
    text-decoration:none !important;
}

.footer-links a:hover{
    color:#fff !important;
}

footer p,
.footer p{
    color:#cbd5e1 !important;
    margin-bottom:10px !important;
}

/* Responsive */

@media(max-width:768px){

    .footer-links{
        flex-direction:column !important;
        gap:12px !important;
    }

    footer img,
    .footer img,
    .footer-logo{
        height:50px !important;
    }
}
/* FORCE SAME FOOTER ON ALL PAGES */

footer,
.footer{
    background:#0f172a !important;
    color:#fff !important;
    text-align:center !important;
    padding:50px 20px !important;
}

footer img,
.footer-logo{
    height:60px !important;
    width:auto !important;
    display:block !important;
    margin:0 auto 15px !important;
}

.footer-links{
    display:flex !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:20px !important;
    margin:25px 0 !important;
}

.footer-links a{
    color:#cbd5e1 !important;
    text-decoration:none !important;
}

.footer-links a:hover{
    color:#fff !important;
}

footer p,
.footer p{
    margin-bottom:10px !important;
}

@media (max-width:768px){
    .footer-links{
        flex-direction:column !important;
        gap:12px !important;
    }

    footer img,
    .footer-logo{
        height:50px !important;
    }
}
.success-box{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.65);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:20px;
}

.success-card{
    background:#fff;
    width:100%;
    max-width:420px;
    padding:40px 30px;
    border-radius:30px;
    text-align:center;
    box-shadow:0 30px 80px rgba(0,0,0,.25);
    animation:successPop .35s ease;
}

.success-check{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#22c55e;
    color:#fff;
    font-size:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 25px;
    font-weight:700;
}

.success-card h3{
    font-size:30px;
    margin-bottom:15px;
    color:#0f172a;
}

.success-card p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:30px;
}

@keyframes successPop{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
.loading-box{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loading-card{
    text-align: center;
    max-width: 320px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.hero-card h1,
.hero-card h2,
.hero-card h3,
.hero-card p,
.hero-card li,
.hero-card span{
    color:#1f2937 !important;
}

.hero-card ul{
    padding-left:20px;
}

.hero-card a{
    color:#0b66ff;
}