/* Variables de couleur */
:root {
    --primary-bg: #F8F5F0;      /* Blanc cassé */
    --secondary: #E8C39E;      /* Beige doux */
    --accent: #D4A76A;         /* Beige doré */
    --text: #333333;           /* Gris foncé */
    --light-text: #666666;     /* Gris moyen */
    --white: #FFFFFF;          /* Blanc pur */
    --card-bg: #FFFFFF;        /* Fond des cartes */
    --alt: #eaceb2;
    --color-bg-blue: rgba(14, 75, 95, 1);
}

/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--primary-bg);
    /*background-image:
        linear-gradient(#ccc 1px, transparent 1px),
        linear-gradient(90deg, #ccc 1px, transparent 1px);
    background-size: 20px 20px;*/
    background-position: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
        
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 1.5rem 0 1rem;
}

h1 { 
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1.5rem;
}

h3 { 
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin: 1.8rem 0 1rem;
}

h4 { 
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--light-text);
    margin: 1.5rem 0 0.8rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Liens */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Header & Navigation */
.header {
    
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.header h1 {
    margin: 0;
    font-size: 3rem;
    color: var(--accent);
    text-align: center;
    
}

header.card{
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
    margin: 4rem;
}

ul>div.card{

    background-color: var(--primary-bg);
    padding: 1rem;
   border:none;
    
    border-radius: 25px;
    box-shadow: none;
    margin-bottom:0;
}

li.card{

    padding: 0.5rem 2rem;
    margin-bottom:0;
    border-radius: 80% 8px 80% 8px;
    position: relative;
    
    font-weight: normal;
    background-color: var(--color-bg-blue);
}

li.card::before{
    position: absolute;
    inset: 0;
    content:"";
    z-index: 0;
    background-color: white;
    border-radius: 8px 40% 8px 40%;
}


.connect p{
    background: var(--card-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: inline;
  
}

.connect{
    float:left;
    margin-top: -2.7rem;
    background: var(--primary-bg);
    border-radius: 20px;
    /*border: 2px solid var(--accent);*/
    padding: 0.4rem 0.5rem;

   
}

.banner p{
    margin-bottom:0;
    color: var(--text);
    font-size: 16px;
    line-height: normal;
}

.banner a{
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: var(--text);
}

.banner a::after{
    content: none;
}

.inner-title{
    margin-top: 0;
    color: var(--text);

}

b{
    color: rgba(14, 75, 95, 1)
}

.card-content{
    margin-left: 0.5rem;
}

.content{
    padding-left: 20px;
    border-left: 2px solid var(--text);
}

.content h4{
    margin-top: 10px;
    margin-bottom: 10px;
    color: #003b4d;
}

.midh4{
    font-size:105%;
    color: var(--light-text) !important;
}

#leftwave{
 float: left;
 background-color: var(--card-bg);  
 margin-top: -8rem;
 margin-left: 4rem; 
 padding: 1rem;
 height: 8rem;
 width: 5rem;
 border-top-right-radius: 12px;
 border-top-left-radius: 12px;
 border-bottom-left-radius: 22px;
 border-bottom-right-radius: 0%;
 border: none;
 /*background: var(--alt);*/
}

#middlewave{
    float:left;
    width: 89%;
    height: 3rem;
    margin-top: -2.5rem;
    margin-left: -5rem; 
    border-bottom-left-radius: 22px;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    border:none;
    padding: 0;
    box-shadow: none;
    /*background: var(--alt);*/
}

#rightwave{
    float:right;
    height: 7rem;
    margin-top: -5rem;
    margin-right: 4rem;
    border: none;
    width: 3rem;
    box-shadow: none;
   /* background: var(--alt);*/
}


.container{
    /*clear: both;*/
    margin: 4rem;
    /*margin-top: 10rem;*/
    
}

.container>.card>h2{
    margin-bottom: 4rem;
}

.embed{
    
    /*border-radius: 12px;*/
    /*border: 2px solid red;*/
    height: 25rem;
   
}


.in{
    
    margin-right: 7rem; 
    margin-left: 12rem;
    background-color: var(--card-bg);
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    
}


.banner{
    max-width: 45rem;
    margin-left: 15rem;
    padding: 2rem;
    padding-top: 1rem;
    margin-top: -11.5rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    height: 9.5rem;
    width: 45rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    background: var(--primary-bg);
    border-radius: 12px;
   padding-bottom: 1rem;
   border-top: 2px solid var(--accent);
   border-bottom: 2px solid var(--accent);
}

nav{
    position:relative;
    margin: 4rem;
    margin-left: 7rem;
    width: max-content;
    top: -7rem;
    transition: all 0.5s ease;
}

/*nav:hover{
    margin-left: 6.5rem;
    top: -7.5rem;
    box-shadow: 10px 2px 20px 5px rgba(0, 0, 0, 0.5);
    
    border-radius: 25px;
}*/

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Sections */
.card {
    background-color: var(--card-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Listes */
ul {
    list-style-type: none;
    margin: 1rem 0;
    width: max-content;
}

li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

li:before {
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Timeline */

.timeline-container {
    position: relative;
}

.timeline {
    position: absolute;
    left: 4rem;     /* ajuste selon ton esthétique */
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--accent);
    z-index: 0;
}



/* Les dates avec data-start / data-end */

.startdate {
    position: absolute;
    left: -8.5rem;
    top: -1rem;
    font-weight: bold;
    font-size: large;
    background-color: var(--card-bg);
    color: var(--text);
}

.specify{
    position: absolute;
    font-size: small;
    left: -7.5rem;
    top: 0.5rem;
    font-style: italic;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .header h1 {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    body {
        padding: 1rem;
    }
    
    #formation, #experience, #competences {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
}

.icon{
    transform: scale(1.8);
}

.active{
    background-color: var(--accent) !important;
    
}

.active a {
    color: var(--accent);
}

.responsive{
    display: none;
}