:root {
--blue: #0056b3;
--blue-dark-hero: rgba(0, 51, 102, 0.75); --light-blue: #e3f2fd;
--orange: #e67e22;
--dark: #2c3e50;
--white: #ffffff;
--gray: #f4f7f6;
--text-muted: #7f8c8d;
--transition: all 0.3s ease-in-out;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
color: var(--dark); 
line-height: 1.6; 
background-color: var(--white);
overflow-x: hidden;
} @keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
} header {
position: fixed; top: 0; width: 100%; background: var(--white);
box-shadow: 0 2px 15px rgba(0,0,0,0.1); z-index: 1000; height: 85px;
}
.nav-container { 
max-width: 1400px; margin: 0 auto; 
display: flex; align-items: center; 
height: 100%; padding: 0 25px; 
}
.logo img { height: 55px; transition: var(--transition); }
.logo img:hover { transform: scale(1.05); }
nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; align-items: center; }
.nav-item { position: relative; }
.nav-link { 
text-decoration: none; color: var(--dark); 
font-weight: 600; padding: 30px 15px; 
display: block; cursor: pointer; transition: var(--transition);
font-size: 0.95rem;
}
.nav-link:hover { color: var(--blue); } .dropdown {
position: absolute; top: 100%; left: 0; background: var(--white);
box-shadow: 0 10px 30px rgba(0,0,0,0.1); min-width: 250px;
display: none; border-top: 4px solid var(--blue);
animation: fadeIn 0.3s ease;
}
.nav-item:hover > .dropdown { display: block; }
.dropdown a {
display: block; padding: 15px 25px; text-decoration: none;
color: var(--dark); border-bottom: 1px solid #f1f1f1; 
font-size: 14px; transition: var(--transition);
}
.dropdown a:hover { background: var(--gray); color: var(--blue); padding-left: 30px; } .sub-dropdown { 
position: absolute; left: 100%; top: -4px; 
background: var(--white); box-shadow: 10px 10px 30px rgba(0,0,0,0.1); 
display: none; min-width: 200px; border-left: 1px solid #eee;
}
.has-sub:hover > .sub-dropdown { display: block; } .auth-group {
display: flex;
align-items: center; gap: 15px; }
.user-welcome {
white-space: nowrap; font-size: 14px;
}
.btn-login { color: var(--blue) !important; font-weight: 700; text-decoration: none; }
.btn-register { 
background: var(--orange); color: white !important; 
border-radius: 5px; padding: 10px 20px !important; 
text-decoration: none; font-weight: bold;
box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
transition: var(--transition);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4); } .mobile-toggle { 
display: none; 
font-size: 24px; 
cursor: pointer; 
color: var(--blue); 
margin-left: auto; padding: 10px;
border: 1px solid #eee; border-radius: 5px;
}
@media (max-width: 1024px) {
.mobile-toggle { 
display: flex; align-items: center;
justify-content: center;
} .nav-container {
justify-content: space-between;
}
} .hero {
height: 70vh;
margin-top: 85px; background: linear-gradient(var(--blue-dark-hero), var(--blue-dark-hero)), 
url(http://localhost/preparia.org/preparia/css/a.webp);
background-size: cover; background-position: center;
display: flex; flex-direction: column; justify-content: center; align-items: center;
text-align: center; color: var(--white); padding: 0 20px;
}
.page-enseignement .hero {
background: linear-gradient(var(--blue-dark-hero), var(--blue-dark-hero)), 
url(http://localhost/preparia.org/preparia/css/e.webp);
background-size: cover; background-position: center;
}
.hero-content { animation: fadeInUp 1s ease; max-width: 900px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; margin-bottom: 20px; line-height: 1.1; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 30px; font-weight: 400; opacity: 1; }
.hero .btn-cta { 
background: var(--white); color: var(--blue); 
padding: 15px 40px; border-radius: 50px; 
text-decoration: none; font-weight: 800; 
font-size: 1.1rem; transition: var(--transition);
display: inline-block;
}
.hero .btn-cta:hover { background: var(--orange); color: var(--white); transform: scale(1.05); } .categories { padding: 80px 20px; background: var(--gray); }
.container { max-width: 1200px; margin: 0 auto; }
.cat-grid { 
display: grid; 
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
gap: 30px; 
}
.cat-card {
background: var(--white); padding: 40px;
text-align: center; border-radius: 20px;
border-bottom: 5px solid var(--blue);
transition: var(--transition); text-decoration: none; color: inherit;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cat-card i { font-size: 3.5rem; color: var(--blue); margin-bottom: 20px; display: block; }
.cat-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); }
.cat-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: var(--blue); }
.cat-card:hover h3, .cat-card:hover i, .cat-card:hover p { color: white; } .features { padding: 100px 20px; text-align: center; }
.feature-grid { 
display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
gap: 40px; margin-top: 50px; 
}
.feature-item i { font-size: 2.5rem; color: var(--orange); margin-bottom: 20px; }
.feature-item h4 { font-size: 1.3rem; margin-bottom: 10px; } .preparia-steps { padding: 100px 20px; background: var(--light-blue); text-align: center; }
.steps-container { 
display: flex; justify-content: center; gap: 40px; 
flex-wrap: wrap; margin-top: 60px; 
}
.step-card { 
background: var(--white); padding: 40px 30px; 
border-radius: 20px; flex: 1; min-width: 300px;
position: relative; transition: var(--transition);
}
.step-number { 
width: 60px; height: 60px; background: var(--orange); 
color: white; border-radius: 50%; display: flex; 
align-items: center; justify-content: center; 
margin: -70px auto 25px; font-size: 1.8rem; font-weight: bold;
border: 5px solid var(--light-blue);
} .preparia-mission { 
padding: 120px 20px; background: linear-gradient(45deg, var(--blue), #003d80); 
color: white; text-align: center; 
}
.mission-content h2 { font-size: 3rem; margin-bottom: 25px; }
.mission-content p { font-size: 1.3rem; max-width: 1000px; margin: 0 auto; line-height: 1.8; font-style: italic; } footer { background: #111; color: #999; padding: 80px 20px 30px; }
.footer-grid { 
display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
gap: 50px; max-width: 1300px; margin: 0 auto; 
}
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--orange); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #999; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { 
width: 40px; height: 40px; background: #222; 
display: flex; align-items: center; justify-content: center; 
border-radius: 50%; color: white; font-size: 1.1rem;
}
.social-icons a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-bottom { 
border-top: 1px solid #222; margin-top: 60px; 
padding-top: 30px; text-align: center; font-size: 0.85rem; 
} .payment-methods { margin-top: 20px; opacity: 0.9; }
.payment-logo { height: 35px; width: auto; filter: grayscale(20%); } @media (max-width: 1024px) {
.mobile-toggle { display: block; }
nav {
position: fixed; top: 85px; right: -100%; width: 300px; height: calc(100vh - 85px);
background: var(--white); flex-direction: column; transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
box-shadow: -10px 0 30px rgba(0,0,0,0.1); padding: 40px 20px; overflow-y: auto;
}
nav.active { right: 0; }
.nav-list { flex-direction: column; width: 100%; align-items: flex-start; }
.nav-item { width: 100%; }
.nav-link { padding: 15px 0; border-bottom: 1px solid #eee; width: 100%; }
.dropdown, .sub-dropdown { position: static; display: none; box-shadow: none; padding-left: 20px; width: 100%; }
.nav-item:hover > .dropdown, .has-sub:hover > .sub-dropdown { display: block; }
.auth-group { flex-direction: column; margin-left: 0; margin-top: 30px; width: 100%; }
.btn-register { text-align: center; }
} .btn-logout {
background: var(--orange); color: white !important;
border-radius: 5px;
padding: 10px 20px !important;
text-decoration: none;
font-weight: bold;
box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
transition: var(--transition);
display: inline-block;
border: none;
cursor: pointer;
}
.btn-logout:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
background: #d35400; } .btn-account {
background: var(--blue);
color: white !important;
border-radius: 5px;
padding: 10px 20px !important;
text-decoration: none;
font-weight: bold;
transition: var(--transition);
}  .login-modal-overlay {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%; background: rgba(248, 250, 252, 0.1) !important; backdrop-filter: blur(8px) !important; 
-webkit-backdrop-filter: blur(8px) !important;
z-index: 10000;
align-items: center; 
justify-content: center;
}
.login-modal-box {
background: #ffffff !important;
width: 400px;
padding: 40px !important;
border-radius: 16px !important; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
font-family: 'Inter', sans-serif !important;
position: relative;
} .login-modal-box h3 {
text-align: center; margin-bottom: 25px; 
color: #1e293b; font-weight: 600;
}
#modal-login-form label {
font-weight: 600 !important;
color: #475569 !important;
display: block; margin-bottom: 8px;
} #modal-login-form input[type="text"], 
#modal-login-form input[type="password"] {
background: #f1f5f9 !important;
border: 2px solid transparent !important;
border-radius: 8px !important;
padding: 12px !important;
width: 100%; margin-bottom: 20px;
transition: all 0.3s ease;
}
#modal-login-form input:focus {
border-color: #3b82f6 !important; background: #fff !important;
outline: none;
} #modal-submit {
background: #1e293b !important;
color: white !important;
border-radius: 8px !important;
height: 48px !important;
width: 100% !important;
font-weight: 600 !important;
cursor: pointer;
border: none !important;
transition: all 0.3s ease !important;
}
#modal-submit:hover {
background: #334155 !important;
transform: translateY(-1px);
}
.close-modal-btn {
position: absolute; top: 15px; right: 20px;
font-size: 24px; cursor: pointer; color: #64748b;
} #ld-login-modal .ld-login-modal-login .ld-login-modal-logo img,
#ld-login-modal img {
max-width: 180px !important;
height: auto !important;
margin-bottom: 20px !important;
} #ld-login-modal .ld-login-modal-content {
border-radius: 15px !important;
padding: 30px !important;
box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
} .ld-modal.ld-login-modal {
backdrop-filter: blur(6px);
background: rgba(0, 0, 0, 0.6) !important;
}  .ld-focus .site-content, 
.ld-focus .content-area, 
.ld-focus .container,
.ld-focus #primary {
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
} @media (max-width: 768px) {
.ld-focus-sidebar {
position: fixed !important;
top: 0 !important;
left: 0 !important;
transform: translateX(0) !important; z-index: 99999 !important;
transition: none !important; } .ld-focus-sidebar-open .ld-focus-main {
margin-left: 0 !important;
} body.ld-focus-sidebar-open {
overflow-x: hidden !important;
width: 100vw !important;
position: fixed !important; }
}:root {
--blue: #0056b3;
--blue-dark-hero: rgba(0, 51, 102, 0.75); --light-blue: #e3f2fd;
--orange: #e67e22;
--dark: #2c3e50;
--white: #ffffff;
--gray: #f4f7f6;
--text-muted: #7f8c8d;
--transition: all 0.3s ease-in-out;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
color: var(--dark); 
line-height: 1.6; 
background-color: var(--white);
overflow-x: hidden;
} @keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
} header {
position: fixed; top: 0; width: 100%; background: var(--white);
box-shadow: 0 2px 15px rgba(0,0,0,0.1); z-index: 1000; height: 85px;
}
.nav-container { 
max-width: 1400px; margin: 0 auto; 
display: flex; align-items: center; 
height: 100%; padding: 0 25px; 
}
.logo img { height: 55px; transition: var(--transition); }
.logo img:hover { transform: scale(1.05); }
nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; align-items: center; }
.nav-item { position: relative; }
.nav-link { 
text-decoration: none; color: var(--dark); 
font-weight: 600; padding: 30px 15px; 
display: block; cursor: pointer; transition: var(--transition);
font-size: 0.95rem;
}
.nav-link:hover { color: var(--blue); } .dropdown {
position: absolute; top: 100%; left: 0; background: var(--white);
box-shadow: 0 10px 30px rgba(0,0,0,0.1); min-width: 250px;
display: none; border-top: 4px solid var(--blue);
animation: fadeIn 0.3s ease;
}
.nav-item:hover > .dropdown { display: block; }
.dropdown a {
display: block; padding: 15px 25px; text-decoration: none;
color: var(--dark); border-bottom: 1px solid #f1f1f1; 
font-size: 14px; transition: var(--transition);
}
.dropdown a:hover { background: var(--gray); color: var(--blue); padding-left: 30px; } .sub-dropdown { 
position: absolute; left: 100%; top: -4px; 
background: var(--white); box-shadow: 10px 10px 30px rgba(0,0,0,0.1); 
display: none; min-width: 200px; border-left: 1px solid #eee;
}
.has-sub:hover > .sub-dropdown { display: block; } .auth-group { display: flex; gap: 10px; margin-left: 20px; }
.btn-login { color: var(--blue) !important; font-weight: 700; text-decoration: none; }
.btn-register { 
background: var(--orange); color: white !important; 
border-radius: 5px; padding: 10px 20px !important; 
text-decoration: none; font-weight: bold;
box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
transition: var(--transition);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4); } .mobile-toggle { 
display: none; 
font-size: 24px; 
cursor: pointer; 
color: var(--blue); 
margin-left: auto; padding: 10px;
border: 1px solid #eee; border-radius: 5px;
}
@media (max-width: 1024px) {
.mobile-toggle { 
display: flex; align-items: center;
justify-content: center;
} .nav-container {
justify-content: space-between;
}
} .hero {
height: 70vh;
margin-top: 85px; background: linear-gradient(var(--blue-dark-hero), var(--blue-dark-hero)), 
url(http://localhost/preparia.org/preparia/css/a.webp);
background-size: cover; background-position: center;
display: flex; flex-direction: column; justify-content: center; align-items: center;
text-align: center; color: var(--white); padding: 0 20px;
}
.page-enseignement .hero {
background: linear-gradient(var(--blue-dark-hero), var(--blue-dark-hero)), 
url(http://localhost/preparia.org/preparia/css/e.webp);
background-size: cover; background-position: center;
}
.hero-content { animation: fadeInUp 1s ease; max-width: 900px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; margin-bottom: 20px; line-height: 1.1; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 30px; font-weight: 400; opacity: 1; }
.hero .btn-cta { 
background: var(--white); color: var(--blue); 
padding: 15px 40px; border-radius: 50px; 
text-decoration: none; font-weight: 800; 
font-size: 1.1rem; transition: var(--transition);
display: inline-block;
}
.hero .btn-cta:hover { background: var(--orange); color: var(--white); transform: scale(1.05); } .categories { padding: 80px 20px; background: var(--gray); }
.container { max-width: 1200px; margin: 0 auto; }
.cat-grid { 
display: grid; 
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
gap: 30px; 
}
.cat-card {
background: var(--white); padding: 40px;
text-align: center; border-radius: 20px;
border-bottom: 5px solid var(--blue);
transition: var(--transition); text-decoration: none; color: inherit;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cat-card i { font-size: 3.5rem; color: var(--blue); margin-bottom: 20px; display: block; }
.cat-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); }
.cat-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: var(--blue); }
.cat-card:hover h3, .cat-card:hover i, .cat-card:hover p { color: white; } .features { padding: 100px 20px; text-align: center; }
.feature-grid { 
display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
gap: 40px; margin-top: 50px; 
}
.feature-item i { font-size: 2.5rem; color: var(--orange); margin-bottom: 20px; }
.feature-item h4 { font-size: 1.3rem; margin-bottom: 10px; } .preparia-steps { padding: 100px 20px; background: var(--light-blue); text-align: center; }
.steps-container { 
display: flex; justify-content: center; gap: 40px; 
flex-wrap: wrap; margin-top: 60px; 
}
.step-card { 
background: var(--white); padding: 40px 30px; 
border-radius: 20px; flex: 1; min-width: 300px;
position: relative; transition: var(--transition);
}
.step-number { 
width: 60px; height: 60px; background: var(--orange); 
color: white; border-radius: 50%; display: flex; 
align-items: center; justify-content: center; 
margin: -70px auto 25px; font-size: 1.8rem; font-weight: bold;
border: 5px solid var(--light-blue);
} .preparia-mission { 
padding: 120px 20px; background: linear-gradient(45deg, var(--blue), #003d80); 
color: white; text-align: center; 
}
.mission-content h2 { font-size: 3rem; margin-bottom: 25px; }
.mission-content p { font-size: 1.3rem; max-width: 1000px; margin: 0 auto; line-height: 1.8; font-style: italic; } footer { background: #111; color: #999; padding: 80px 20px 30px; }
.footer-grid { 
display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
gap: 50px; max-width: 1300px; margin: 0 auto; 
}
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--orange); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #999; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { 
width: 40px; height: 40px; background: #222; 
display: flex; align-items: center; justify-content: center; 
border-radius: 50%; color: white; font-size: 1.1rem;
}
.social-icons a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-bottom { 
border-top: 1px solid #222; margin-top: 60px; 
padding-top: 30px; text-align: center; font-size: 0.85rem; 
} .payment-methods { margin-top: 20px; opacity: 0.9; }
.payment-logo { height: 35px; width: auto; filter: grayscale(20%); } @media (max-width: 1024px) {
.mobile-toggle { display: block; }
nav {
position: fixed; top: 85px; right: -100%; width: 300px; height: calc(100vh - 85px);
background: var(--white); flex-direction: column; transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
box-shadow: -10px 0 30px rgba(0,0,0,0.1); padding: 40px 20px; overflow-y: auto;
}
nav.active { right: 0; }
.nav-list { flex-direction: column; width: 100%; align-items: flex-start; }
.nav-item { width: 100%; }
.nav-link { padding: 15px 0; border-bottom: 1px solid #eee; width: 100%; }
.dropdown, .sub-dropdown { position: static; display: none; box-shadow: none; padding-left: 20px; width: 100%; }
.nav-item:hover > .dropdown, .has-sub:hover > .sub-dropdown { display: block; }
.auth-group { flex-direction: column; margin-left: 0; margin-top: 30px; width: 100%; }
.btn-register { text-align: center; }
}
.btn-logout {
background: var(--orange);
color: white !important;
border-radius: 5px;
padding: 10px 20px !important;
text-decoration: none;
font-weight: bold;
box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
transition: var(--transition);
display: inline-block;
}
.btn-logout:hover {
transform: translateY(-2px);
background: #d35400;
}
.btn-account {
background: var(--blue);
color: white !important;
border-radius: 5px;
padding: 10px 20px !important;
text-decoration: none;
font-weight: bold;
transition: var(--transition);
}  body.ld-focus-sidebar-open header,
body.ld-focus-sidebar-open .nav-container {
display: none !important;
} @media (max-width: 768px) { .ld-focus .ld-focus-sidebar {
left: 0 !important;
transform: translateX(0) !important;
margin-left: 0 !important;
z-index: 999999 !important; } .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation {
margin-left: 0 !important;
width: 100% !important;
} body.ld-focus-sidebar-open {
overflow: hidden !important;
position: fixed !important;
width: 100% !important;
}
}