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

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

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:100;
}

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

.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;
}

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

/* =========================
   HERO
========================= */

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

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

.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;
}
.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;
}

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

/* =========================
   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;
}
/* =========================
   FORMULAIRE CV
========================= */

#cv-builder{
padding:80px 0;
}

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

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

.form-group{
margin-bottom:20px;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea: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;
}

hr{
border:none;
height:1px;
background:#e2e8f0;
}

/* =========================
   EXPERIENCE
========================= */

.experience-item{
background:#f8fafc;
padding:25px;
border-radius:16px;
border:1px solid #e2e8f0;
margin-bottom:20px;
}

.experience-item .form-grid{
margin-bottom:15px;
}

/* =========================
   FORMATION
========================= */

.formation-item{
background:#f8fafc;
padding:25px;
border-radius:16px;
border:1px solid #e2e8f0;
margin-bottom:20px;
}

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

button{
font-family:inherit;
font-size:15px;
}

#addExperience,
#addFormation{
margin-top:10px;
}

/* =========================
   INPUT FILE
========================= */

input[type="file"]{
padding:12px;
background:#f8fafc;
}

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

@media(max-width:992px){

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

.hero-card{
padding:25px;
}

}
/* =========================
   APERÇU CV PREMIUM
========================= */

.preview-card{
padding:40px;
}

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

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

.cv-header{
display:flex;
align-items:center;
gap:30px;
padding-bottom:30px;
margin-bottom:30px;
border-bottom:2px solid #e2e8f0;
}

.cv-photo img{
width:140px;
height:140px;
border-radius:50%;
object-fit:cover;
border:5px solid #2563eb;
}

.cv-header-content{
flex:1;
}

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

#previewJob{
font-size:22px;
font-weight:600;
color:#2563eb;
margin-bottom:12px;
}

.cv-contact p{
font-size:15px;
color:#475569;
}

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

.cv-section{
margin-bottom:30px;
}

.cv-section h3{
font-size:18px;
font-weight:700;
color:#2563eb;
margin-bottom:12px;
padding-bottom:8px;
border-bottom:2px solid #dbeafe;
}

.cv-section p{
color:#334155;
line-height:1.8;
}

#previewExperiences,
#previewFormations{
display:flex;
flex-direction:column;
gap:18px;
}

/* =========================
   EXPERIENCE CV
========================= */

.cv-exp-item{
padding:15px 0;
border-bottom:1px solid #e2e8f0;
}

.cv-exp-item:last-child{
border-bottom:none;
}

.cv-exp-title{
font-size:17px;
font-weight:700;
color:#0f172a;
}

.cv-exp-company{
font-size:15px;
font-weight:600;
color:#2563eb;
margin:4px 0;
}

.cv-exp-date{
font-size:13px;
color:#64748b;
margin-bottom:8px;
}

/* =========================
   FORMATION CV
========================= */

.cv-edu-item{
padding:15px 0;
border-bottom:1px solid #e2e8f0;
}

.cv-edu-item:last-child{
border-bottom:none;
}

.cv-edu-title{
font-size:17px;
font-weight:700;
color:#0f172a;
}

.cv-edu-school{
font-size:15px;
color:#2563eb;
margin-top:4px;
}

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

.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;
}

.cv-score-box h3{
margin-bottom:15px;
}

#cvScore{
font-size:48px;
font-weight:800;
color:#16a34a;
margin-bottom:10px;
}

#cvAdvice{
color:#64748b;
font-size:15px;
}

/* =========================
   FOOTER
========================= */

footer{
background:#0f172a;
color:#fff;
padding:60px 0;
margin-top:60px;
text-align:center;
}

.footer-logo{
width:90px;
margin:0 auto 20px;
}

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

.footer-links a{
color:#cbd5e1;
}

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

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

@media(max-width:768px){

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

.cv-header{
flex-direction:column;
text-align:center;
}

.cv-photo img{
width:120px;
height:120px;
}

#previewName{
font-size:28px;
}

#previewJob{
font-size:18px;
}

#cvPreview{
padding:25px;
}

.hero-buttons{
display:flex;
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
gap:15px;
}

.hero-buttons a,
.hero-buttons button{
width:auto;
min-width:180px;
}

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

}

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

@media print{

body{
background:#fff;
}

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

#cvPreview{
box-shadow:none;
border:none;
padding:0;
}

}
#photoPlaceholder{
width:140px;
height:140px;
border-radius:50%;
background:#2563eb;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:42px;
font-weight:800;
margin:auto;
}
/* =========================
   RESPONSIVE FIX
========================= */

@media (max-width: 992px){

.navbar{
flex-direction:column;
gap:20px;
}

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

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

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

.cv-header{
flex-direction:column;
text-align:center;
}

}

/* MOBILE */

@media (max-width: 768px){

.container{
width:95%;
}

.hero{
padding:50px 0;
}

.hero h1{
font-size:28px;
line-height:1.3;
}

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

.hero-buttons{
display:flex;
flex-direction:row !important;
justify-content:center;
align-items:center;
gap:10px;
flex-wrap:nowrap;
}

.hero-buttons a,
.hero-buttons button{
width:auto !important;
min-width:140px;
}

.nav-menu{
width:100%;
}

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

.hero-card{
padding:20px;
}

#cvPreview{
padding:20px;
}

.cv-photo img,
#photoPlaceholder{
width:100px;
height:100px;
}

#previewName{
font-size:24px;
}

#previewJob{
font-size:18px;
}

.cv-contact{
word-break:break-word;
}

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

}

/* PETIT TELEPHONE */

@media (max-width: 480px){

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

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

#previewName{
font-size:20px;
}

#previewJob{
font-size:16px;
}

#cvScore{
font-size:32px;
}

}