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

body{
font-family:'Inter',system-ui,-apple-system,sans-serif;
background:#f4f6f8;
color:#111;
}

/* HEADER */

header{
background:linear-gradient(135deg,#EDEDED,#1FFFFFF);
color: #43436E;
padding:20px 40px;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
display:flex;
align-items:center;
position:relative;
}

.header-text{
width:80%;
text-align:center;
}

.logo{
position:absolute;
right:40px;
height:70px;
width:auto;
}

header h1{
font-size:42px;
letter-spacing:1px;
}

header h2{
margin-top:10px;
font-weight:300;
font-size:18px;
}

/* SEPARATEUR */

.separator{
height:4px;
background:#43436E;
}

/* BURGER */

.burger{
position: fixed;
top: 20px;
left: 20px;
z-index: 9999;
font-size:28px;
background: transparent;
color:white;
cursor:pointer;
border-radius:8px;
box-shadow:0 0px 0px rgba(0,0,0,0.25);
transition:transform 0.2s;
}

.burger:hover{
transform:scale(1.05);
}

.burger img {
pointer-events: none;
height:50px;
width: auto;
}

/* MENU */

nav{
background:#FFFFFF;
box-shadow:0 8px 25px rgba(0,0,0,0.15);
}

nav.closed{
display:none;
}

.menu{
display:flex;
justify-content:center;
list-style:none;
}

.menu a{
display:block;
padding:22px 34px;
color:#43436E;
text-decoration:none;
position:relative;
font-weight:500;
letter-spacing:0.4px;
transition:color 0.3s;
}

.menu a:hover

.menu a::after{
content:"";
position:absolute;
left:0;
bottom:0;
width:0%;
height:3px;
background:#e63946;
transition:width 0.3s;
}

.menu a:hover::after{
width:100%;
}

.menu a.active{
font-weight:600;
}

.menu a.active::after{
width:100%;
}

/* SOUS MENU */

.submenu{
width:100%;
background:#FFFFFF;
max-height:0;
overflow:hidden;
transition:max-height 0.35s ease;
box-shadow:0 8px 30px rgba(0,0,0,0.2);
}

.submenu ul{
list-style:none;
display:flex;
justify-content:center;
gap:50px;
padding:30px;
}

.submenu a{
color:#43436E;
text-decoration:none;
font-weight:500;
position:relative;
}

.submenu a::after{
content:"";
position:absolute;
left:0;
bottom:-5px;
width:0%;
height:2px;
background:#e63946;
transition:width 0.3s;
}

.submenu a:hover::after{
width:100%;
}

/* CONTENU */

.content{
padding:60px 12%;
}

.page{
display:none;
animation:fade 0.4s ease;
}

.page.active{
display:block;
}

.page h1{
font-size:32px;
margin-bottom:25px;
}

.page p{
font-size:17px;
line-height:1.7;
text-align: justify;
color:#333;
}

@keyframes fade{
from{
opacity:0;
transform:translateY(10px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* ========================= */
/* SPLIT CARD (CORRIGÉ PROPRE) */
/* ========================= */

.split-card {
display: grid;
grid-template-columns: var(--left, 50%) var(--right, 50%);
width: 100%;
max-width: 1400px;
margin: 20px auto;
border-radius: 16px;
overflow: hidden;
background: #ffffff;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
align-items: stretch;
}

/* IMAGE */

.split-card__image {
width: 100%;
display: flex;
}

.split-card__image img {
width: 100%;
height: auto; /* clé du problème corrigé */
display: block;
object-fit: cover;
}

/* TEXTE */

.split-card__content {
padding: 32px;
display: flex;
flex-direction: column;
justify-content: center;
min-width: 0;
}

.split-card__content h2 {
margin: 0 0 16px;
font-size: 32px;
line-height: 1.2;
}

.split-card__content p {
margin: 0 0 20px;
font-size: 16px;
line-height: 1.6;
}

/* FIX BUG GRID */

.split-card__image,
.split-card__content {
min-width: 0;
}

/* HOVER */

.split-card:hover img {
transform: scale(1.05);
transition: transform 0.3s ease;
}

/* BOUTON */

.split-card__button {
display: inline-block;
align-self: flex-start;
padding: 12px 20px;
background: #111;
color: #fff;
text-decoration: none;
border-radius: 8px;
}

.btn {
padding: 12px 24px;
background: black;
color: white;
text-decoration: none;
border-radius: 8px;
transition: background 0.3s ease;
width: fit-content;
}

.btn:hover {
background: #333;
}

/* RESPONSIVE */

@media (max-width: 768px) {
.split-card {
grid-template-columns: 1fr !important;
}

.split-card__image {
min-height: 240px;
}

.split-card__content {
padding: 24px;
}

.split-card__content h2 {
font-size: 24px;
}
}

/* ========================= */
/* PAGE AVENIR MODERNE */
/* ========================= */

.avenir-container{
max-width: 900px;
margin: 0 auto;
background: #ffffff;
padding: 40px 50px;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.avenir-year{
text-align: center;
font-size: 42px;
color: #2f3e4e;
margin-bottom: 30px;
}

.avenir-hero{
width: 100%;
height: auto;
border-radius: 10px;
margin-bottom: 25px;
}

.avenir-title{
text-align: center;
font-size: 26px;
color: #2f4a6d;
margin-bottom: 25px;
}

.avenir-title span{
font-style: italic;
}

.avenir-text{
margin-bottom: 30px;
}

.avenir-text p{
margin-bottom: 15px;
}

.highlight{
font-weight: 600;
color: #2f4a6d;
}

.avenir-section{
text-align: center;
color: #c26a2e;
margin: 40px 0 20px;
position: relative;
}

.avenir-section::before,
.avenir-section::after{
content: "";
display: inline-block;
width: 80px;
height: 1px;
background: #ccc;
margin: 0 15px;
vertical-align: middle;
}

.avenir-block{
background: #f9f9fb;
padding: 18px 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.avenir-block h3{
color: #2f4a6d;
margin-bottom: 8px;
}

.avenir-footer{
margin-top: 40px;
}

.avenir-footer p{
margin-bottom: 12px;
}

/* image */

.ligne-img {
width: 100%;
max-height: 350px;
height: auto;
display: block;
object-fit: contain;
}
