/* style.css - Feuille de style globale pour OGO Group (VERSION DÉFINITIVE) */

:root {
    /* Couleurs Primaires */
    --color-background-dark: #0f1621; /* Bleu foncé presque noir */
    --color-header-footer: #1a2230; /* Gris-bleu foncé pour les blocs */
    --color-text-light: #f0f0f0; /* Texte principal clair */
    --color-border-dark: #333d47; /* Bordures subtiles */
    
    /* Couleurs d'Accentuation OGO (Jaune) */
    --color-highlight: #ffc400; /* Jaune vif OGO */
    --color-button-primary: #ffc400;
    --color-button-primary-hover: #e0a800;
    
    /* Couleurs d'Accentuation ARS/Privé (Cuivre/Bronze) */
    --color-ars-highlight: #a86c3a; /* Couleur Cuivre/Bronze */
    --color-ars-border: #a86c3a;
    
    /* Typographie */
    --font-family-primary: 'Roboto', Arial, sans-serif;
}

/* -------------------------------------------------------------------
 * RESET ET BASE
 * ------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    line-height: 1.6;
}

a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-ars-highlight);
}

h1, h2, h3 {
    color: var(--color-highlight);
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border-dark);
    display: inline-block;
}

h2 {
    font-size: 1.8em;
    font-weight: 500;
    margin-top: 25px;
}

h3 {
    font-size: 1.4em;
    font-weight: 400;
}

ul {
    padding-left: 20px;
}

/* -------------------------------------------------------------------
 * HEADER ET NAVIGATION
 * ------------------------------------------------------------------- */
.main-site-header {
    background-color: var(--color-header-footer);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* CORRECTION LOGO GÉANT : Conteneur (le <a>) */
.header-logo-container { 
    height: 50px; 
    filter: brightness(1.2); 
    display: flex;
    align-items: center;
}

/* CORRECTION LOGO GÉANT : Image (l'enfant) */
.header-logo-container img {
    height: 100%; 
    width: auto;
    max-height: 50px; 
    display: block;
}

/* NAVIGATION (Compactage pour la ligne complète) */
.main-nav {
    display: flex;
    gap: 15px; /* Compacter les liens */
    align-items: center;
    flex-wrap: nowrap;
}

.menu-link {
    color: var(--color-text-light);
    font-size: 0.9em; /* Taille de police pour tous les liens */
    text-transform: uppercase;
    padding: 5px 8px; 
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.menu-link:hover, .menu-link.active {
    color: var(--color-highlight);
    border-bottom: 2px solid var(--color-highlight);
}

/* MENU DÉROULANT */
.dropdown {
    position: relative;
    height: 100%; 
    display: flex; 
    align-items: center;
    padding: 0 5px; 
}

.dropdown-content {
    display: none; /* Masqué par défaut */
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--color-header-footer);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border-top: 2px solid var(--color-highlight); 
    padding: 0;
    flex-direction: column; 
}

.dropdown-content .menu-link {
    color: var(--color-text-light);
    padding: 10px 16px; 
    display: block; 
    text-align: left;
    border-bottom: none; 
    
    /* CORRECTION DE TAILLE : Utilise la même taille que les liens principaux (0.9em) */
    font-size: 0.9em; 
    
    text-transform: none; 
    white-space: nowrap;
}

.dropdown-content .menu-link:hover {
    background-color: #2c3a4f; 
    color: var(--color-highlight);
}

.dropdown:hover .dropdown-content {
    display: flex; /* Affichage vertical au survol */
}

.header-right {
    display: flex;
    align-items: center;
}

.access-button {
    background-color: var(--color-ars-highlight);
    color: var(--color-background-dark);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.access-button:hover {
    background-color: #c98e54;
}

.key-icon {
    height: 18px;
    width: auto;
    margin-right: 8px;
    filter: brightness(0.9); 
}


/* -------------------------------------------------------------------
 * CONTENU PRINCIPAL
 * ------------------------------------------------------------------- */
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    text-align: center;
    margin-bottom: 40px;
}

.content-block {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-dark);
}

/* Styles spécifiques à emploi.php (Carrières) */
.hero-emploi .logo-emplois {
    margin-bottom: 20px;
    text-align: center;
}

.hero-emploi .logo-emplois img {
    max-width: 180px; /* Taille maximale du logo Carrières */
    height: auto;
    display: inline-block;
}

/* Neutralise les lignes indésirables causées par content-block successifs sur la page Carrières */
.contenu-philosophie {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 40px; 
}

/* Style du bloc CTA (Envie de nous rejoindre) */
.contenu-philosophie .call-to-action-block {
    background-color: var(--color-header-footer);
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px; 
    text-align: center;
    border: 1px solid var(--color-border-dark);
    border-bottom: 5px solid var(--color-highlight); 
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.1);
}

.contenu-philosophie .call-to-action-block p {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.1em;
    font-weight: 300;
}
/* Fin styles emploi.php */


/* Styles spécifiques à index.php (Hero) */
.hero-home {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-home h1 {
    font-size: 3.5em; 
    margin-bottom: 20px;
}

.hero-home .hero-subtitle {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.5em;
    color: var(--color-text-light);
}


/* Structure de contenu à deux colonnes */
.split-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.split-content .text-content,
.split-content .image-content {
    flex: 1;
}

.split-content .image-content {
    text-align: center;
}

/* -------------------------------------------------------------------
 * ELEMENTS SPÉCIFIQUES (ACTIVITÉS, FORMULAIRE, TABLEAUX)
 * ------------------------------------------------------------------- */

/* Activités / Liste d'Entités */
.entites-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.entite-card {
    background-color: var(--color-header-footer);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--color-highlight);
    transition: transform 0.3s;
}

.entite-card:hover {
    transform: translateY(-5px);
}

.entite-card.entite-focus {
    border: 3px solid var(--color-ars-highlight);
    border-top: 5px solid var(--color-ars-highlight);
    box-shadow: 0 0 15px var(--color-ars-highlight);
}

.entite-card h3 {
    color: var(--color-highlight);
    margin-top: 0;
    border-bottom: 1px solid var(--color-border-dark);
    padding-bottom: 10px;
}

.entite-logo {
    height: 60px;
    margin-bottom: 15px;
    /* Filtre appliqué aux logos d'entité sur les cartes pour les rendre cuivrés */
    filter: invert(1) brightness(0.7) sepia(1) hue-rotate(-50deg) saturate(3) contrast(1);
    opacity: 0.9;
}

/* Formulaire de Contact */
.contact-form-block {
    background-color: var(--color-header-footer);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 40px auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border-dark);
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    border-radius: 4px;
    font-size: 1em;
}

.button-submit {
    background-color: var(--color-button-primary);
    color: var(--color-background-dark);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.button-submit:hover {
    background-color: var(--color-button-primary-hover);
}

/* Tableaux ESG (Nickel Vert) */
.esg-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.esg-table th, .esg-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--color-border-dark);
}

.esg-table th {
    background-color: var(--color-background-dark);
    color: var(--color-highlight);
    font-weight: bold;
    text-transform: uppercase;
}

.esg-table tr:nth-child(even) {
    background-color: #1f2735;
}


/* Liens Rapides (boutons secondaires) */
.quick-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--color-button-primary);
    color: var(--color-background-dark);
    border: 2px solid var(--color-button-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-highlight);
    border: 2px solid var(--color-highlight);
}

.btn-primary:hover {
    background-color: var(--color-button-primary-hover);
    border-color: var(--color-button-primary-hover);
}

.btn-secondary:hover {
    background-color: var(--color-highlight);
    color: var(--color-background-dark);
}

/* -------------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------------- */
.main-site-footer {
    background-color: var(--color-header-footer);
    color: var(--color-text-light);
    padding: 30px 40px;
    border-top: 3px solid var(--color-highlight);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 0.9em;
}

.main-site-footer h3 {
    color: var(--color-highlight);
    margin-bottom: 10px;
}

.main-site-footer a {
    color: var(--color-text-light);
}

.main-site-footer a:hover {
    color: var(--color-ars-highlight);
}

.main-site-footer ul {
    list-style-type: none;
    padding: 0;
}

/* Pied de page thématique d'accueil (index.php) */
.themed-homepage-footer {
    background-color: #000; /* Fond noir pour le bloc SIAHRROW */
    padding: 60px 20px;
    text-align: center;
    border-top: 5px solid var(--color-ars-highlight);
}

.themed-homepage-footer h2 {
    color: var(--color-ars-highlight);
    font-size: 2.2em;
    margin-bottom: 10px;
}

.themed-homepage-footer p {
    color: var(--color-text-light);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.themed-homepage-footer .btn-primary {
    /* Style spécifique pour le bouton sur la section à thème */
    background-color: var(--color-ars-highlight);
    color: var(--color-background-dark);
    border-color: var(--color-ars-highlight);
}

.themed-homepage-footer .btn-primary:hover {
    background-color: #c98e54; /* Un peu plus clair que l'original au survol */
    border-color: #c98e54;
}

.sijahrrow-themed-logo {
    /* Filtre pour rendre le logo SIAHRROW (jaune sur noir) de couleur bronze/cuivre */
    filter: brightness(0.8) sepia(1) hue-rotate(-50deg) saturate(3) contrast(1);
    height: 120px;
    width: auto;
}

/* -------------------------------------------------------------------
 * ICÔNE LINKEDIN (Correction d'Affichage)
 * ------------------------------------------------------------------- */

.main-site-footer .fa-brands.fa-linkedin {
    /* FORCE l'affichage de la couleur OGO (Jaune) */
    color: var(--color-highlight) !important; 
    /* FORCE l'utilisation de la police Font Awesome Brands */
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 6 Free', sans-serif !important;
    /* Assure que l'icône est un bloc en ligne et visible */
    display: inline-block !important; 
    /* Définit la taille */
    font-size: 1.5em !important; 
    /* Assure que ce n'est pas traité comme du texte normal */
    font-weight: 400 !important; 
    line-height: 1;
}

/* Règle pour le survol: change pour la couleur cuivre/bronze */
.main-site-footer a[title="OGO Group sur LinkedIn"]:hover .fa-brands.fa-linkedin {
    color: var(--color-ars-highlight) !important;
}