:root {
--primary: #0a192f;
--secondary: #00ADEF;
--text: #8892b0;
--light: #e6f1ff;
--dark: #0a192f;
--white: #fff;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', 'Arial', sans-serif;
line-height: 1.6;
color: var(--text);
background-color: var(--dark);
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.logo {
display: flex;
align-items: center;
}

.logo img {
max-height: 48px;
width: auto;
}

/* Header */
header {
background-color: var(--primary);
color: var(--light);
padding: 22px 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.10);
transition: all 0.3s ease;
}

header.scrolled {
padding: 12px 0;
background-color: rgba(10, 25, 47, 0.92);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}

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

nav ul {
display: flex;
list-style: none;
}

nav ul li {
margin-left: 28px;
}

nav ul li a {
color: var(--light);
text-decoration: none;
position: relative;
padding-bottom: 4px;
font-weight: 500;
font-size: 1rem;
letter-spacing: 0.2px;
transition: color 0.3s;
}

nav ul li a:hover {
color: var(--secondary);
}

nav ul li a.active {
color: var(--secondary);
}

nav ul li a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
background-color: var(--secondary);
bottom: 0;
left: 0;
transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
width: 100%;
}

/* Hero section */
.hero {
background: linear-gradient(135deg, var(--primary) 70%, #1d2d50 100%);
padding: 140px 0 90px;
color: var(--light);
text-align: center;
min-height: 420px;
}

.hero-logo img {
max-width: 340px;
width: 35vw;
margin-bottom: 18px;
}

.hero h1 {
font-size: 2.6rem;
margin-bottom: 18px;
color: var(--light);
letter-spacing: 2px;
font-weight: 700;
}

.hero p {
font-size: 1.22rem;
max-width: 700px;
margin: 0 auto 35px;
color: var(--text);
}

.hero-btns {
display: flex;
gap: 18px;
justify-content: center;
}

.hero-btn {
display: inline-block;
background-color: transparent;
color: var(--secondary);
border: 2px solid var(--secondary);
padding: 13px 34px;
border-radius: 5px;
font-size: 1.03rem;
text-decoration: none;
font-weight: 600;
margin: 0 6px;
transition: all 0.3s;
box-shadow: 0 2px 12px rgba(0,173,239,0.06);
min-width: 170px;
text-align: center;
}

.hero-btn:hover {
background-color: rgba(0, 173, 239, 0.12);
color: var(--light);
transform: translateY(-2px) scale(1.03);
box-shadow: 0 4px 24px rgba(0,173,239,0.13);
}

.hero-btn.secondary {
background: var(--secondary);
color: var(--primary);
border: none;
}

.hero-btn.secondary:hover {
background: #fff;
color: var(--secondary);
border: 2px solid var(--secondary);
}

/* Section générale */
section {
padding: 90px 0;
}

section h2 {
font-size: 2.2rem;
margin-bottom: 40px;
color: var(--light);
text-align: center;
position: relative;
font-weight: 600;
}

section h2::after {
content: '';
position: absolute;
left: 50%;
bottom: -14px;
transform: translateX(-50%);
width: 70px;
height: 3px;
background-color: var(--secondary);
border-radius: 2px;
}

/* About */
.about p {
font-size: 1.17rem;
line-height: 1.8;
max-width: 950px;
margin: 0 auto;
text-align: center;
color: var(--text);
}

/* Companies - Filiales */
.companies {
background-color: #0c1b2b;
padding: 90px 0;
}

.company-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
gap: 36px;
margin-top: 50px;
}

.company-card {
background: linear-gradient(145deg, #0f2339, #0d1c2c);
border-radius: 13px;
padding: 36px 27px 32px;
text-align: center;
box-shadow: 0 10px 30px rgba(0,0,0,0.19);
transition: all 0.25s ease;
border: 1.5px solid rgba(100, 255, 218, 0.10);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}

.company-card:hover {
transform: translateY(-8px) scale(1.03);
box-shadow: 0 15px 38px rgba(0,0,0,0.26);
border-color: var(--secondary);
}

.company-icon {
font-size: 2.5rem;
color: var(--secondary);
margin-bottom: 16px;
text-shadow: 0 2px 8px rgba(0,173,239,0.07);
}

.company-card h3 {
margin-bottom: 16px;
color: var(--light);
font-size: 1.25rem;
font-weight: 600;
}

.company-card p {
color: var(--text);
font-size: 1.05rem;
line-height: 1.6;
margin-bottom: 22px;
flex-grow: 1;
}

.company-card .hero-btn {
margin: 0 auto;
width: fit-content;
}

/* Contact */
.contact-info {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 38px;
}

.contact-info p {
margin-bottom: 13px;
font-size: 1.08rem;
display: flex;
align-items: center;
color: var(--light);
}

.contact-info i {
color: var(--secondary);
margin-right: 9px;
font-size: 1.16rem;
}

/* Patch : liens contact blanc sans souligné */
.contact-info a {
color: var(--light);
text-decoration: none;
}

.contact-info a:hover {
color: var(--secondary);
text-decoration: none;
}

.cta-corporate {
margin-top: 34px;
display: flex;
gap: 16px;
justify-content: center;
}

/* Footer */
.footer {
background-color: var(--primary);
color: var(--text);
padding: 42px 0 32px;
text-align: center;
margin-top: 30px;
border-top: 1px solid #233554;
}

.footer-links {
margin-bottom: 18px;
}

.footer-links a {
color: var(--secondary);
margin: 0 12px;
font-size: 1rem;
transition: color 0.3s;
text-decoration: none;
}

.footer-links a:hover {
color: var(--light);
text-decoration: underline;
}

.social-links {
margin-bottom: 13px;
}

.social-links a {
color: var(--text);
margin: 0 8px;
font-size: 23px;
transition: color 0.3s;
vertical-align: middle;
}

.social-links a:hover {
color: var(--secondary);
}

/* Accessibilité liens uniquement texte caché */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* Gouvernance page - CORRECTIONS ALIGNEMENT */
.governance {
background-color: #0c1b2b;
color: var(--light);
padding: 120px 0 90px;
text-align: center;
}

.gov-intro {
font-size: 1.15rem;
max-width: 800px;
margin: 0 auto 45px;
color: var(--text);
}

.governance-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 34px;
justify-items: center;
}

.gov-member {
background: linear-gradient(145deg, #0f2339, #0d1c2c);
border: 1.5px solid rgba(100,255,218,0.12);
border-radius: 14px;
padding: 30px 20px;
box-shadow: 0 6px 20px rgba(0,0,0,0.22);
text-align: center;
transition: transform .25s ease;
width: 100%;
max-width: 300px;
/* Correction alignement - hauteur minimum uniforme */
min-height: 320px;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.gov-member:hover {
transform: translateY(-6px) scale(1.03);
border-color: var(--secondary);
}

.gov-member img {
width: 130px;
height: 130px;
border-radius: 50%;
object-fit: cover;
margin: 0 auto 14px auto;
border: 3px solid var(--secondary);
}

.gov-member h3 {
margin-bottom: 6px;
color: var(--light);
font-size: 1.25rem;
flex-grow: 0;
}

.gov-member .role {
margin-bottom: 20px;
font-size: 1.05rem;
color: var(--text);
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
}

/* CORRECTION ALIGNEMENT DES RÉSEAUX SOCIAUX */
.gov-socials {
display: flex;
justify-content: center;
align-items: center;
gap: 16px;
height: 40px; /* Hauteur fixe pour uniformiser */
margin-top: auto; /* Pousse vers le bas */
}

.gov-socials a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
font-size: 1.4rem;
color: var(--secondary);
transition: color 0.3s, transform 0.3s;
border-radius: 50%;
background: rgba(0, 173, 239, 0.1);
}

.gov-socials a:hover {
color: var(--light);
transform: scale(1.1);
background: rgba(0, 173, 239, 0.2);
}

/* Organigramme */
.org-chart {
background: #fff;
padding: 60px 0 48px 0;
text-align: center;
}

.org-chart h2 {
color: #0a192f;
margin-bottom: 38px;
font-size: 2.1rem;
font-weight: 700;
position: relative;
letter-spacing: 1px;
}

.org-chart h2::after {
content: '';
display: block;
margin: 18px auto 0 auto;
width: 90px;
height: 5px;
background: #00ADEF;
border-radius: 3px;
}

.org-root {
display: flex;
flex-direction: column;
align-items: center;
}

.org-main {
background: #f6fbff;
border: 2.2px solid #00ADEF;
border-radius: 24px;
padding: 34px 56px;
box-shadow: 0 6px 30px rgba(0,173,239,0.10);
margin-bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
min-width: 240px;
}

.org-main img {
height: 52px;
margin-bottom: 14px;
}

.org-title {
font-weight: 800;
font-size: 1.22rem;
color: #0a192f;
letter-spacing: 1.2px;
margin-bottom: 2px;
}

.org-type {
font-size: 1.02rem;
color: #00ADEF;
font-weight: 600;
letter-spacing: 1.7px;
margin-bottom: 0;
}

.org-connectors {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
width: 100%;
}

.org-line-vert {
width: 4px;
height: 44px;
background: #00ADEF;
margin: 0 auto;
border-radius: 2px;
}

.org-line-horiz {
width: 75vw;
max-width: 620px;
height: 4px;
background: #00ADEF;
margin: 0 auto;
border-radius: 2px;
position: relative;
top: 0;
z-index: 2;
}

.org-branches-row {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 44px;
margin-top: -12px;
position: relative;
z-index: 2;
}

.org-branch {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}

.org-line-vert-branch {
width: 4px;
height: 44px;
background: #00ADEF;
margin-bottom: -2px;
border-radius: 2px;
}

.org-box {
background: #fff;
border: 1.8px solid #cce6f9;
border-radius: 18px;
box-shadow: 0 2px 12px rgba(0,173,239,0.10);
padding: 28px 40px 22px 40px;
min-width: 170px;
display: flex;
flex-direction: column;
align-items: center;
transition: box-shadow .2s, transform .2s;
margin-top: 0;
}

.org-box img {
height: 42px;
margin-bottom: 10px;
}

.org-box:hover {
box-shadow: 0 6px 32px rgba(0,173,239,0.19);
transform: translateY(-5px) scale(1.04);
}

/* Responsive */
@media (max-width: 950px) {
.container { padding: 0 9px; }
.company-grid { gap: 24px; }
}

@media (max-width: 720px) {
header { padding: 12px 0; }
.hero { padding: 100px 0 54px; }
.hero h1 { font-size: 1.5rem; }
.company-grid { grid-template-columns: 1fr; }
section { padding: 58px 0; }
/* Gouvernance responsive */
.governance { padding: 100px 0 58px; }
.governance h2 { font-size: 1.8rem; }
.governance-grid { grid-template-columns: 1fr; }
.gov-member { min-height: 280px; }
}

@media (max-width: 550px) {
.hero { padding: 70px 0 34px; }
nav ul li { margin-left: 10px; }
.footer { padding: 27px 0 16px; }
.governance { padding: 80px 0 40px; }
}