@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
--primary:#0f172a;
--accent:#3b82f6;
--bg:#f8fafc;
--white:#ffffff;
--text:#1e293b;
--muted:#64748b;
--border:#e2e8f0;
--success:#10b981;
--danger:#ef4444;
}

*{
box-sizing:border-box;
margin:0;
padding:0;
font-family:'Plus Jakarta Sans',sans-serif;
scroll-behavior:smooth;
}

body{
background:var(--bg);
color:var(--text);
line-height:1.6;
}

/* HEADER */

header{
position:fixed;
width:100%;
top:0;
z-index:1000;
background:rgba(255,255,255,0.8);
backdrop-filter:blur(12px);
border-bottom:1px solid var(--border);
}

nav{
max-width:1200px;
margin:auto;
padding:15px 25px;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-weight:800;
font-size:1.5rem;
color:var(--primary);
text-decoration:none;
}

.logo span{
color:var(--accent);
}

/* MENU */

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

.nav-links a{
text-decoration:none;
color:var(--text);
font-weight:600;
font-size:0.9rem;
transition:.3s;
}

.nav-links a:hover{
color:var(--accent);
}

/* BURGER */

.menu-toggle{
display:none;
font-size:28px;
cursor:pointer;
}

/* SECTIONS */

section{
padding:100px 20px;
max-width:1100px;
margin:auto;
}

.section-title{
font-size:2.5rem;
margin-bottom:50px;
text-align:center;
font-weight:700;
}

/* HERO */

.hero{
display:flex;
align-items:center;
gap:50px;
padding-top:150px;
}

.hero-img{
width:250px;
height:250px;
border-radius:50%;
object-fit:cover;
border:5px solid var(--white);
box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.hero-content h1{
font-size:3rem;
margin-bottom:10px;
}

/* TIMELINE */

.timeline-item{
position:relative;
padding-left:35px;
border-left:2px solid var(--border);
margin-bottom:40px;
}

.timeline-item::before{
content:'';
position:absolute;
left:-9px;
top:5px;
width:16px;
height:16px;
background:var(--accent);
border-radius:50%;
}

.item-date{
font-weight:700;
color:var(--accent);
font-size:.85rem;
}

/* CONTACT */

.contact-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
text-align:center;
}

.contact-box{
background:var(--white);
padding:30px;
border-radius:15px;
border:1px solid var(--border);
}

/* ADMIN UI */

.login-body{
display:flex;
align-items:center;
justify-content:center;
height:100vh;
background:#e2e8f0;
}

.card{
background:var(--white);
border-radius:15px;
padding:30px;
margin-bottom:30px;
box-shadow:0 4px 6px rgba(0,0,0,0.05);
}

.btn{
padding:10px 20px;
border-radius:8px;
border:none;
cursor:pointer;
font-weight:600;
text-decoration:none;
display:inline-block;
transition:.3s;
}

.btn-primary{
background:var(--accent);
color:white;
}

.btn-success{
background:var(--success);
color:white;
}

.btn-danger{
background:var(--danger);
color:white;
}

.admin-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px;
border-bottom:1px solid var(--border);
}

input,textarea,select{
width:100%;
padding:12px;
margin:10px 0;
border:1px solid var(--border);
border-radius:8px;
}

/* TOGGLE SWITCHES (Boutons cochables) */

.admin-card label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
}

.admin-card label:hover {
    background: #e2e8f0;
}

/* Style spécifique pour l'input checkbox */
.admin-card input[type="checkbox"] {
    width: 40px;
    height: 20px;
    appearance: none;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    margin: 0; /* Override du margin global */
    border: none;
}

.admin-card input[type="checkbox"]:checked {
    background: var(--success);
}

.admin-card input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.admin-card input[type="checkbox"]:checked::before {
    left: 22px;
}

/* MOBILE */

@media (max-width:768px){

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

.menu-toggle{
display:block;
}
/* FOOTER */

footer{
border-top:1px solid var(--border);
background:var(--white);
margin-top:80px;
}

.footer-container{
max-width:1100px;
margin:auto;
padding:40px 20px;
text-align:center;
color:var(--muted);
font-size:0.9rem;
}

.footer-container a{
color:var(--accent);
text-decoration:none;
font-weight:600;
}

.footer-container a:hover{
text-decoration:underline;
}
/* MENU MOBILE */

.nav-links{
display:none;
flex-direction:column;
position:absolute;
top:70px;
left:0;
width:100%;
background:white;
border-bottom:1px solid var(--border);
}

.nav-links.active{
display:flex;
}

.nav-links li{
padding:15px;
text-align:center;
border-bottom:1px solid var(--border);
}

.section-title{
font-size:2rem;
}

}