/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --p4c-primary: #0fabb2;
    --p4c-secondary: #0a2540;
    --p4c-light-bg: #f0f7fa;
    --p4c-text: #5a6a78;
    --p4c-white: #ffffff;
    --p4c-border: #e8e8e8;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--p4c-text);
    background-color: var(--p4c-white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--p4c-secondary);
    font-weight: 600;
}

a {
    color: var(--p4c-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e7a9c;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--p4c-light-bg) !important; }
.text-primary { color: var(--p4c-primary) !important; }

/* Buttons */
.btn-p4c {
    background-color: var(--p4c-primary);
    color: var(--p4c-white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--p4c-primary);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.2);
}

.btn-p4c:hover {
    background-color: #1e7a9c;
    border-color: #1e7a9c;
    color: var(--p4c-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.3);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand img { max-height: 90px; }
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--p4c-secondary);
    padding: 10px 15px;
    transition: color 0.3s ease;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--p4c-primary);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}
.navbar-nav .nav-link.active {
    color: var(--p4c-primary);
}
.header .btn-p4c {
    padding: 10px 25px;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: var(--p4c-white);
    padding: 150px 0 20px 0px;
}
.hero-section .hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.1) 100%);
    z-index: 0;
}
.hero-content h1 {
    color: var(--p4c-white);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
     margin: 20px 0 40px;
}
.page-header { min-height: 40vh; }

/* Feature Item */
.feature-item {
    transition: all 0.3s ease;
    border: 1px solid var(--p4c-border);
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.feature-item i {
    font-size: 2.5rem;
    background-color: var(--p4c-light-bg);
    color: var(--p4c-primary);
    height: 70px;
    width: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}
.feature-item:hover i {
    background-color: var(--p4c-primary);
    color: var(--p4c-white);
}

/* Formation Card */
.formation-card {
    transition: all 0.3s ease;
    border: 1px solid var(--p4c-border);
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}
.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 150, 190, 0.15);
}
.formation-card .card-img-container {
    height: 220px;
    overflow: hidden;
}
.formation-card .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.formation-card:hover .card-img-top { transform: scale(1.1); }
.formation-card .card-body { flex-grow: 1; display: flex; flex-direction: column; }
.formation-card .card-title { color: var(--p4c-secondary); font-size: 1.25rem; }
.formation-card .card-text { flex-grow: 1; }
.formation-card .badge {
    background-color: var(--p4c-primary);
    color: var(--p4c-white);
    font-weight: 500;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    padding: 30px 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}
.gallery-item:hover .overlay { opacity: 1; transform: translateY(0); }
.gallery-item .overlay h5 { color: white; margin: 0; }
.gallery-item .overlay i { font-size: 1.5rem; margin-right: 15px; }

/* Formation Details Page */
.details-list ul { list-style-type: none; padding-left: 0; }
.details-list li { padding: 8px 0; display: flex; align-items: center; }
.details-list i { font-size: 1.1rem; margin-right: 15px; }
#reservation-container a:hover {
    color: var(--p4c-white);
}

/* Contact Form */
.contact-info-box {
    background-color: var(--p4c-secondary);
    color: white;
    padding: 40px;
    border-radius: 10px;
}
.contact-info-box h3, .contact-info-box p, .contact-info-box a { color: white; }
.contact-info-box i { font-size: 1.5rem; width: 40px; color: var(--p4c-primary); }
.contact-info-box a:hover { color: #ccc; }

/* Footer */
footer { background-color: var(--p4c-secondary); color: rgba(255,255,255,0.7); }
footer h5 { color: var(--p4c-white); font-weight: 600; }
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--p4c-primary); }
.footer-bottom { background-color: #071c32; }

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Modal for Gallery */
.lightbox-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 9999; display: none; justify-content: center; align-items: center; padding: 20px; animation: fadeIn 0.3s ease; }
.lightbox-modal.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { max-width: 90vw; max-height: 90vh; }
.lightbox-content img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: white; cursor: pointer; transition: transform 0.3s ease; }
.lightbox-close:hover { transform: scale(1.2); }P4C-SiteWeb/


:root {
    --p4c-primary: #0D6EFD; /* Un bleu professionnel */
    --p4c-secondary: #0a4f6e; /* Un bleu marine foncé */
    --p4c-light: #f8f9fa;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif; /* Police moderne et lisible */
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--p4c-secondary);
}

.section-padding {
    padding: 80px 0;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 45px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--p4c-primary) !important;
}

.btn-p4c {
    background-color: var(--p4c-primary);
    color: #fff;
    border: 2px solid var(--p4c-primary);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-p4c:hover {
    background-color: var(--p4c-secondary);
    border-color: var(--p4c-secondary);
    color: #fff;
}

.btn-p4c-outline {
    border: 2px solid var(--p4c-primary);
    color: var(--p4c-primary);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-p4c-outline:hover {
    background-color: var(--p4c-primary);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 150px 0;
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(31, 128, 188, 0.41) 0%, rgba(15, 171, 178, 0.8) 100%);
    z-index: 0;
}


.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
 }

.page-header {
    min-height: 40vh;
}

.page-header h1 {
    font-size: 3rem;
}

/* Feature Item */
.feature-item i {
    font-size: 2.5rem;
    color: var(--p4c-primary);
}

.feature-item h4 {
    color: var(--p4c-secondary);
}

/* Formation Card */
.card.formation-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--p4c-secondary);
}

/* Footer */
footer {
    background-color: var(--p4c-secondary);
    color: rgba(255, 255, 255, 0.8);
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

footer .footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

footer .social-icons a {
    color: #fff;
    transition: transform 0.3s ease;
    display: inline-block;
}

footer .social-icons a:hover {
    transform: scale(1.2);
}

.text-primary {
    color: var(--p4c-primary) !important;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 0.8s ease-in-out forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}