/* --- ENREGISTREMENT ET IMPORTATION DE LA POLICE HAUT DE GAMME --- */
@import url('https://googleapis.com');

/* --- CONFIGURATION GLOBALE AVEC IMAGE DE FOND --- */
body {
    font-family: 'Montserrat', sans-serif; /* Application de la nouvelle typographie */
    margin: 0;
    padding: 0;
    color: #333333;
    background-image: url("galaxy.jpg");
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
    -webkit-font-smoothing: antialiased; /* Améliore le lissage de la police sur Mac/iOS */
}

/* --- EN-TÊTE / NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.95); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

header nav ul li a {
    color: #333333; 
    text-decoration: none;
    font-weight: 700; 
    font-size: 0.9rem;
    text-transform: uppercase; /* Menu en lettres capitales modernes */
    letter-spacing: 0.5px;
    padding: 5px 0;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
}

header nav ul li a:hover {
    color: #0055A5;
}

header nav ul li a.active {
    color: #0055A5;                  
    border-bottom: 3px solid #0055A5; 
}

/* --- SECTION ACCUEIL (HERO) --- */
.hero {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.hero-content {
    background-color: #0055A5; 
    padding: 55px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    color: #ffffff !important;
    font-weight: 800; 
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-content p {
    color: #ffffff !important;
    font-weight: 400; 
    font-size: 1.3rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero .btn, .btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0055A5;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .btn:hover, .btn:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
}

/* --- SECTION À PROPOS --- */
.about {
    padding: 60px 40px;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95); 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about h2 {
    margin-top: 0;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 25px;
}

.about p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 400;
}

/* --- NOS SECTEURS --- */
.services {
    padding: 80px 20px;
    text-align: center;
}

.services h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff; 
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.services h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffffff;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px; 
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left; 
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: #0055A5;
}

.card .icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(0, 85, 165, 0.06); 
    padding: 12px;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: #0055A5;
}

.card p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* --- GALERIE DE RÉALISATIONS --- */
.realisations {
    padding: 80px 20px;
    text-align: center;
}

.realisations h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff; 
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.realisations h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffffff;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; 
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.galerie-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.galerie-item .media-container {
    overflow: hidden;
    position: relative;
    background-color: #000000;
}

.galerie-item img, 
.galerie-item video {
    width: 100%;
    height: 280px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.galerie-item:hover img,
.galerie-item:hover video {
    transform: scale(1.06);
}

.galerie-item p {
    padding: 20px;
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    text-align: left; 
    border-top: 1px solid #f5f5f5;
    transition: color 0.3s ease;
}

.galerie-item:hover p {
    color: #0055A5;
}

/* --- SECTION QHSE --- */
.qualite {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 12px;
}

.qualite h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff; 
}

.qhse-block {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95); 
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.qhse-block h3 {
    color: #0055A5; 
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-left: 4px solid #0055A5;
    padding-left: 12px;
}

.qhse-block ul {
    padding-left: 20px;
    margin-top: 10px;
}

.qhse-block li {
    margin-bottom: 12px;
    text-align: justify;
    line-height: 1.6;
    font-weight: 400;
}

.qhse-block p {
    text-align: justify;
    line-height: 1.7;
    font-weight: 400;
}

/* --- SECTION CONTACT --- */
.contact {
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    color: #ffffff; 
    font-weight: 700;
    font-size: 2.4rem;
}
.contact-sub {
    color: #cccccc;
    font-weight: 400;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.contact-info {
    text-align: left;
    min-width: 250px;
}

.contact-info h3 {
    color: #1a1a1a;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.form-group input, 
.form-group textarea {
    font-family: 'Montserrat', sans-serif; 
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* --- PIED DE PAGE --- */
footer {
    background-color: rgba(26, 26, 26, 0.98); 
    color: #ffffff;
    padding: 40px 20px 20px 20px; 
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h4 {
    color: #0055A5; 
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #cccccc;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.8rem;
    font-weight: 400;
}
