/* ==================================== */
/* --- Styles généraux et de Structure (Header/Footer) --- */
/* ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- En-tête (Header) --- */
.main-header {
    background-color: #4D5EB2; 
    padding: 15px 0;
    border-bottom: 2px solid #6D7ED2; 
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style du Logo */
.logo {
    display: flex;
    align-items: center;
    position: relative; 
}

.logo-img {
    height: 60px;
    margin-right: 15px; 
}

.logo-text {
    font-size: 1.8em; 
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative; 
    z-index: 3;
}

/* --- Menu de Navigation --- */
.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #fff; 
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

.main-nav a.active {
    color: #FFEB3B; 
    border-bottom: 3px solid #FFEB3B;
}

.main-nav a:hover:not(.active) {
    color: #CCCCCC; 
}

/* --- Corps de la Page (Main Content) --- */
.main-content {
    min-height: auto; 
    padding: 0;
}

/* --- Pied de Page (Footer) --- */
.main-footer {
    background-color: #000; 
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-links {
    margin-bottom: 15px; 
    font-size: 1.8em; 
    text-transform: uppercase; 
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px; 
    transition: color 0.3s;
    font-weight: 600; 
}

.footer-links span {
    color: #666; 
}

.footer-links a:hover {
    color: #FFEB3B; 
}

.copyright-text {
    font-size: 1.6em; 
    color: #999;
    text-transform: uppercase; 
    font-weight: 500;
}

/* ==================================== */
/* --- Styles pour la Page d'Accueil (index.html) --- */
/* ==================================== */

/* --- PARTIE 1 : Bannière Hero --- */
.hero-section {
    height: 70vh; 
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
}

.hero-content {
    position: relative;
    z-index: 5;
    color: #fff;
    padding: 20px;
}

.hero-title {
    font-size: 4.5em; 
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle-1 {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle-2 {
    font-size: 1.6em;
    font-weight: 700;
    color: #FFEB3B; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}


/* --- Styles généraux des titres de section --- */
.section-title {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 50px;
    color: #fff;
    line-height: 1.2;
}


/* --- PARTIE 2 : Galerie d'Images --- */
.gallery-section {
    padding: 50px 0;
    background-color: #000;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.gallery-row {
    display: flex;
    gap: 20px; 
}

.img-box {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-row .wide {
    flex: 2; 
}

.gallery-row .narrow {
    flex: 1; 
}


/* --- PARTIE 3 : Programmes/Chapitres --- */
.chapters-section {
    padding: 50px 0 80px 0;
    background-color: #111; 
}

.chapters-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 40px;
}

.chapters-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.chapter-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px; 
    height: 150px;
    text-decoration: none;
    background-color: #334499; 
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.chapter-box:hover {
    background-color: #4D5EB2; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

/* ==================================== */
/* --- Styles pour les Pages Chapitres (Confort, Gestion, etc.) --- */
/* ==================================== */

.chapter-title {
    font-size: 3.5em;
    font-weight: 800;
    padding: 30px 0 20px 0;
    color: #FFEB3B; 
    border-bottom: 2px solid #333;
    margin-bottom: 40px;
}

/* Style pour centrer le titre */
.centered-title {
    text-align: center;
}

/* Mise en page principale pour le contenu image/texte */
.confort-content-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

/* Colonne de l'image (réduite) */
.image-column-corrected {
    flex: 0 0 300px; 
    align-self: flex-start; 
}

/* Image */
.confort-img-corrected {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Colonne du texte */
.text-column-corrected {
    flex: 1; 
}

.intro-text-corrected {
    font-size: 1.1em;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333; 
}

/* Grille pour les fonctionnalités en deux colonnes */
.feature-columns {
    display: flex;
    gap: 40px;
}

.column-left, .column-right {
    flex: 1; 
}

.feature-item-corrected {
    margin-bottom: 30px; 
    padding: 0 0 15px 0;
}

.feature-item-corrected h3 {
    color: #4D5EB2; 
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item-corrected p {
    font-size: 1em;
    line-height: 1.5;
    color: #ddd;
}

.summary-text-sante {
    font-size: 1.15em;
    font-style: italic;
    color: #FFEB3B;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    grid-column: 1 / -1; 
}

/* Style spécifique pour le résumé dans Sante/Securite */
.feature-item-corrected.full-width {
    grid-column: 1 / -1;
}

/* Style spécifique à Gestion pour les sous-titres ENERGIE/SECURITE */
.sub-chapter-title {
    font-size: 2em;
    font-weight: 700;
    color: #4D5EB2; 
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.intro-security {
    font-style: italic;
    color: #ccc;
    margin-bottom: 25px;
}


/* ==================================== */
/* --- Styles pour la Page Programmes (programmes.html) --- */
/* ==================================== */

.programs-page {
    text-align: center;
    padding: 50px 0;
}

.programs-title {
    font-size: 3.5em;
    font-weight: 800;
    color: #FFEB3B; 
    margin-bottom: 5px;
}

.programs-subtitle {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 40px;
}

.programs-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 30px;
}

.program-box {
    display: block;
    text-decoration: none;
    color: #fff;
    width: 45%; 
    max-width: 500px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.full-width-box {
    width: 90%; 
    max-width: 600px;
}

.program-overlay {
    width: 100%;
    height: 350px; 
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease-in-out; 
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2;
}

.program-name {
    font-size: 3.5em;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.program-desc {
    font-size: 1.1em;
    color: #ccc;
    font-weight: 500;
}

/* --- Effets de Glissement au Survol (Programmes) --- */

/* MANON: Gauche -> Droite */
.manon-box:hover .program-img {
    transform: translateX(10%); 
}

/* FANNY: Droite -> Gauche */
.fanny-box:hover .program-img {
    transform: translateX(-10%); 
}

/* MARIUS: Bas -> Haut */
.marius-box:hover .program-img {
    transform: translateY(-10%); 
}

/* --- Explication des Programmes --- */
.programs-explanation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.programs-explanation-title {
    font-size: 2em;
    color: #4D5EB2; 
    margin-bottom: 15px;
}

.programs-explanation p {
    font-size: 1.1em;
    color: #ddd;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* ==================================== */
/* --- Styles pour les Pages Programme Détail (manon, fanny, marius) --- */
/* ==================================== */

/* --- Héro/Bannière de Programme --- */
.program-hero {
    height: 40vh; 
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.program-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
}

.program-hero-content {
    position: relative;
    z-index: 5;
    color: #fff;
}

.program-hero-title {
    font-size: 5em;
    font-weight: 900;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.program-hero-subtitle {
    font-size: 1.5em;
    font-weight: 500;
    color: #FFEB3B;
}

/* --- Partie 1 : Arguments --- */
.program-arguments {
    padding: 40px 0;
    background-color: #000;
}

.arguments-grid {
    column-count: 2; 
    column-gap: 40px;
    list-style: none;
    text-align: left;
}

.arguments-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arguments-grid li {
    font-size: 1em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 25px;
    break-inside: avoid-column; 
}

.arguments-grid strong {
    color: #4D5EB2; 
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* --- Partie 2 : Galerie Animée --- */
.program-gallery {
    padding: 20px 0 50px 0;
    background-color: #000;
}

.program-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row-manon {
    display: flex;
    gap: 20px;
}

.gallery-box {
    display: block;
    width: 50%; 
    overflow: hidden;
    position: relative;
}

.gallery-overlay-manon {
    width: 100%;
    height: 300px; 
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-img-manon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease-in-out; 
}

/* Animations de Glissement MANON */
.manon-anim-1:hover .gallery-img-manon {
    transform: translateX(5%);
}

.manon-anim-2:hover .gallery-img-manon {
    transform: translateX(-5%);
}

.manon-anim-3:hover .gallery-img-manon {
    transform: translateY(-5%);
}

.manon-anim-4:hover .gallery-img-manon {
    transform: translateY(5%);
}

/* Animations de Glissement FANNY */
.fanny-anim-1:hover .gallery-img-manon {
    transform: translateX(5%);
}

.fanny-anim-2:hover .gallery-img-manon {
    transform: translateX(-5%);
}

.fanny-anim-3:hover .gallery-img-manon {
    transform: translateY(-5%);
}

.fanny-anim-4:hover .gallery-img-manon {
    transform: translateY(5%);
}

/* Animations de Glissement MARIUS */
.marius-anim-1:hover .gallery-img-manon {
    transform: translateX(5%);
}

.marius-anim-2:hover .gallery-img-manon {
    transform: translateX(-5%);
}

.marius-anim-3:hover .gallery-img-manon {
    transform: translateY(-5%);
}

.marius-anim-4:hover .gallery-img-manon {
    transform: translateY(5%);
}


/* --- Partie 3 : Détails Techniques --- */
.program-details {
    padding: 50px 0 80px 0;
    background-color: #000;
    border-top: 1px solid #222;
}

.details-grid {
    display: flex;
    gap: 40px;
    text-align: left;
}

.detail-column-left, .detail-column-right {
    flex: 1; 
}

.detail-title {
    font-size: 2em;
    font-weight: 700;
    color: #FFEB3B; 
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
    margin-top: 0;
}

.technology-title {
    margin-top: 30px;
}

.detail-text {
    font-size: 1em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
}

.detail-item {
    font-size: 1em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
}

.detail-item strong {
    color: #4D5EB2; 
    font-weight: 600;
}

/* ==================================== */
/* --- Styles pour la Page Technologie (technologie.html) --- */
/* ==================================== */

.technology-page {
    padding: 50px 0 80px 0;
    text-align: center; /* Centrage des titres */
}

.tech-intro {
    padding-bottom: 40px;
}

.tech-title {
    font-size: 3.5em;
    font-weight: 800;
    color: #FFEB3B; 
    margin-bottom: 5px;
}

.tech-sub-title {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.tech-chapters {
    background-color: #000; 
    padding: 30px 0;
}

.tech-emphasis {
    font-size: 1.1em;
    color: #4D5EB2; 
    font-style: italic;
    margin-top: 30px;
    margin-bottom: 0;
}

.tech-features {
    padding-top: 50px;
}

.tech-features-grid {
    display: flex;
    gap: 40px;
    text-align: left;
    max-width: 900px; /* Limiter la largeur de la grille */
    margin: 0 auto;
}

.tech-column {
    flex: 1; 
}

.tech-item {
    font-size: 1em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #222; 
}

.tech-item strong {
    color: #4D5EB2; 
    font-weight: 600;
}

/* ==================================== */
/* --- Styles pour la Page Contacts (contacts.html) --- */
/* ==================================== */

.contact-page {
    padding: 50px 0 80px 0;
}

.contact-title {
    font-size: 3.5em;
    font-weight: 800;
    color: #FFEB3B; 
    text-align: center;
    padding-bottom: 40px;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    max-width: 900px; /* Limiter la largeur de la grille */
    margin: 0 auto;
}

/* --- Colonne Info --- */
.contact-info {
    flex: 1; 
    color: #fff;
    text-align: left;
}

.company-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #4D5EB2; 
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 1em;
    line-height: 1.5;
    color: #ddd;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #FFEB3B; 
}

/* --- Colonne Formulaire --- */
.contact-form-container {
    flex: 1.5; 
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1em;
    color: #ccc;
    margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    background-color: #111; 
    color: #fff;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form select {
    appearance: none; 
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cccccc%22%20d%3D%22M287%20170.81l-131.6-131.6c-4.666-4.668-12.83-4.668-17.5%200L4.7%20170.81c-4.667%204.668-4.667%2012.834%200%2017.5l8.75%208.75c4.667%204.668%2012.833%204.668%2017.5%200l104.5-104.5%20104.5%20104.5c4.667%204.668%2012.833%204.668%2017.5%200l8.75-8.75c4.667-4.666%204.667-12.832%200-17.5z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}


.form-submit {
    text-align: right; 
}

.contact-form button {
    background-color: #4D5EB2; 
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #334499;
}