/* CHAMA CONSTRUCTION - Styles */
:root {
    --bleu-fonce: #001a4d;
    --bleu-fonce-hover: #002a6d;
    --orange: #e67e22;
    --orange-hover: #d35400;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-texte: #555;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Outfit", sans-serif; color: var(--gris-texte); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: "Playfair Display", serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.contact-bar { background: var(--bleu-fonce); color: var(--blanc); padding: 0.5rem 0; font-size: 0.9rem; }
.contact-bar-content { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.contact-link { color: var(--blanc); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s; }
.contact-link:hover { color: var(--orange); }
.contact-icon { font-size: 1rem; }
.main-header { background: var(--blanc); box-shadow: 0 2px 10px rgba(0, 26, 77, 0.1); position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.logo { width: 60px; height: 60px; object-fit: contain; }
.brand .company-name { font-size: 1.5rem; color: var(--bleu-fonce); font-weight: 600; }
.brand .tagline { font-size: 0.75rem; color: var(--bleu-fonce); opacity: 0.9; margin: 0.1rem 0; }
.brand .slogan { font-size: 0.85rem; color: var(--orange); font-weight: 500; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 25px; height: 3px; background: var(--bleu-fonce); border-radius: 2px; transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.main-nav .nav-list { display: flex; list-style: none; gap: 2rem; }
.nav-link { text-decoration: none; color: var(--bleu-fonce); font-weight: 500; transition: color 0.3s; }
.nav-link:hover { color: var(--orange); }
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bleu-fonce) 0%, #003366 100%); color: var(--blanc); text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 26, 77, 0.6); }
.hero-content { position: relative; z-index: 1; padding: 2rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 0.5rem; opacity: 0.95; }
.hero-text { margin-bottom: 2rem; opacity: 0.9; }
.btn { display: inline-block; padding: 0.9rem 2rem; text-decoration: none; font-weight: 600; border-radius: 4px; transition: all 0.3s; }
.btn-primary { background: var(--orange); color: var(--blanc); border: 2px solid var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-2px); }
.directeur-section { padding: 4rem 0; background: var(--gris-clair); }
.directeur-card { background: var(--blanc); border-radius: 8px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0, 26, 77, 0.08); border-left: 4px solid var(--orange); }
.directeur-name { font-size: 1.75rem; color: var(--bleu-fonce); margin: 0.5rem 0; }
.directeur-title { color: var(--orange); font-weight: 600; margin-bottom: 1rem; }
.directeur-desc { color: var(--gris-texte); }
.section-title { font-size: 2rem; color: var(--bleu-fonce); text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--gris-texte); margin-bottom: 2rem; font-size: 1rem; }
.about-section { padding: 4rem 0; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-text p { margin-bottom: 1rem; text-align: justify; }
.services-section { padding: 4rem 0; background: var(--gris-clair); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.services-two-columns { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-category { background: var(--blanc); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 26, 77, 0.06); border-top: 4px solid var(--orange); transition: transform 0.3s, box-shadow 0.3s; }
.service-category:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 26, 77, 0.12); }
.service-category-title { color: var(--orange); font-size: 1.15rem; margin-bottom: 1rem; font-weight: 600; }
.service-list { list-style: none; }
.service-list li { padding: 0.4rem 0; padding-left: 1.25rem; position: relative; color: var(--gris-texte); }
.service-list li::before { content: "▸"; position: absolute; left: 0; color: var(--bleu-fonce); font-size: 0.9rem; }
.service-card { background: var(--blanc); padding: 2rem; border-radius: 8px; text-align: center; box-shadow: 0 4px 15px rgba(0, 26, 77, 0.06); transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 26, 77, 0.12); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--bleu-fonce); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; }
.realisations-section { padding: 4rem 0; }
.realisations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.realisation-card { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 26, 77, 0.1); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.realisation-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 26, 77, 0.15); }
.realisation-card-inner { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; }
.realisation-card-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.realisation-card:hover .realisation-card-inner img { transform: scale(1.05); }

.realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 26, 77, 0.9));
    color: var(--blanc);
    transform: translateY(0);          /* texte toujours visible */
    transition: transform 0.3s;
}

/* Optionnel : on peut légèrement remonter à hover pour un petit effet */
.realisation-card:hover .realisation-overlay {
    transform: translateY(-4px);
}

.realisation-overlay h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.realisation-overlay p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0.5rem; }
.realisation-badge { display: inline-block; background: var(--orange); color: var(--blanc); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 4px; }
.contact-section { padding: 4rem 0; background: var(--gris-clair); }
.contact-content { max-width: 500px; margin: 0 auto; }
.contact-info h3 { color: var(--bleu-fonce); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; flex-direction: column; }
.contact-label { font-size: 0.85rem; color: var(--gris-texte); margin-bottom: 0.25rem; }
.contact-item a { display: block; margin: 0.25rem 0; color: var(--bleu-fonce); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.contact-item a:hover { color: var(--orange); }
.main-footer { background: var(--bleu-fonce); color: var(--blanc); padding: 2.5rem 0 1rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { width: 50px; height: 50px; object-fit: contain; margin-bottom: 0.5rem; }
.footer-name { font-weight: 600; font-size: 1.1rem; }
.footer-slogan { font-size: 0.9rem; color: var(--orange); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--blanc); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; opacity: 0.9; }
.gallery-modal { display: none; position: fixed; inset: 0; background: rgba(0, 26, 77, 0.95); z-index: 1000; align-items: center; justify-content: center; padding: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.gallery-modal.active { display: flex; flex-direction: column; opacity: 1; }
.gallery-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--blanc); font-size: 2.5rem; cursor: pointer; line-height: 1; transition: color 0.3s; z-index: 1002; }
.gallery-close:hover { color: var(--orange); }
.gallery-content { max-width: 100%; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.gallery-title { color: var(--blanc); font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.gallery-main { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; width: 100%; min-height: 300px; }
.gallery-img { max-width: 90%; max-height: 60vh; object-fit: contain; border-radius: 4px; transition: opacity 0.2s ease; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: var(--blanc); font-size: 2.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: background 0.3s, color 0.3s; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gallery-nav:hover { background: var(--orange); color: var(--blanc); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-counter { color: var(--blanc); font-size: 1rem; margin: 1rem 0 0.5rem; }
.gallery-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-width: 100%; overflow-x: auto; padding: 0.5rem 0; }
.gallery-thumb { background: none; border: 2px solid transparent; padding: 2px; border-radius: 4px; cursor: pointer; transition: border-color 0.3s, opacity 0.3s; }
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img { width: 60px; height: 45px; object-fit: cover; border-radius: 2px; display: block; }
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); box-shadow: 0 10px 20px rgba(0, 26, 77, 0.1); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .main-nav.active { max-height: 300px; }
    .main-nav .nav-list { flex-direction: column; padding: 1rem; gap: 0; }
    .main-nav .nav-list li { border-bottom: 1px solid #eee; }
    .main-nav .nav-list li:last-child { border-bottom: none; }
    .nav-link { display: block; padding: 1rem; }
    .contact-bar-content { flex-direction: column; align-items: center; gap: 0.5rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .gallery-nav { width: 40px; height: 40px; font-size: 1.8rem; }
    .gallery-prev { left: 0.5rem; }
    .gallery-next { right: 0.5rem; }
    .gallery-thumb img { width: 45px; height: 34px; }
}
@media (max-width: 480px) {
    .logo { width: 45px; height: 45px; }
    .brand .company-name { font-size: 1.2rem; }
    .realisations-grid { grid-template-columns: 1fr; }
}
