/* ===========================================================
   YANN MEYER - AVOCAT
   STYLE V2
=========================================================== */

:root{

    --blue:#223A54;
    --blue-light:#8EA8C4;
    --white:#ffffff;
    --offwhite:#F7F7F5;
    --text:#404040;

    --container:1200px;

}

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

html{
    scroll-behavior:smooth;
}

body{

    background:#fff;
    color:var(--text);

    font-family:"Inter",sans-serif;
    line-height:1.7;

}

.container{

    max-width:1200px;

    width:100%;

    margin:0 auto;

    padding:0 20px;

}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
}

/* ================= HEADER ================= */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:105px;

    background:var(--blue);

    z-index:999;

}

nav{

    height:105px;

    display:flex;

    align-items:center;

    /*max-width:850px;*/


}

.logo{

    display:flex;

    align-items:center;

}


.logo-text h1{
    
    margin-bottom:8px;

    font-family:"Cormorant Garamond",serif;

    color:white;

    font-size:46px;

    font-weight:600;

    line-height:1;

}

.logo-text span{

    color:#8EA8C4;

    letter-spacing:3px;

    font-size:12px;

    text-transform:uppercase;

}

nav ul{

    display:none;

    flex-direction:column;

    width:100%;

    gap:0;

    margin-top:20px;

    background:var(--blue);

    padding:10px 0;

    border-radius:0px;

}

nav a{

    color:white;

    font-size:15px;

    font-weight:500;

    transition:.25s;

}

nav a:hover{

    color:var(--blue-light);

}

/* ================= HERO ================= */

.hero{

    padding-top:170px;

    padding-bottom:80px;

    background:white;

}

.hero-grid{

    display:grid;

    grid-template-columns:52% 48%;


}

.hero-right{

    display:flex;

    justify-content:flex-end;

}

.hero-right img{

    width:480px;

    border-radius:8px;

    box-shadow:0 25px 60px rgba(0,0,0,.18);

}

.small-title{

    color:var(--blue);

    text-transform:uppercase;

    letter-spacing:4px;

    font-size:13px;

    margin-bottom:25px;

}

.hero h2{

    font-family:"Cormorant Garamond",serif;

    color:var(--blue);

    font-size:56px;

    line-height:1.12;

    font-weight:600;

    margin-bottom:35px;

}

.hero p{

    max-width:620px;

    font-size:20px;

    color:#666;

    margin-bottom:45px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.btn-primary{

    background:var(--blue);

    color:white;

    padding:16px 34px;

    border-radius:3px;

    transition:.3s;

}

.btn-primary:hover{

    background:#16293d;

}

.btn-secondary{

    border:1px solid var(--blue);

    color:var(--blue);

    padding:16px 34px;

}

/* ===========================================================
SECTION EXPERIENCE
=========================================================== */

.presentation{

    padding:140px 0;

    background:#faf9f7;

}

.presentation .container{

    display:block;

}

.section-title{

    font-family:"Cormorant Garamond", serif;

    font-size:44px;

    font-weight:600;

    color:#1D3147;

    line-height:1.15;

    margin-bottom:40px;

}

.presentation-text{

    text-align:justify;
    text-justify:inter-word;
    hyphens:auto;
    max-width:850px;

    padding-top:10px;

}

.presentation-text p{

    font-size:18px;

    line-height:1.8;

    color:#4d4d4d;

    margin-bottom:30px;

}

/* ==========================================================
   DOMAINES D'ACTIVITÉ
========================================================== */

.activites{

    padding:120px 0;
    background:#fff;

}

.cards{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:35px;
    /*max-width:850px;*/
}

.card{

    background:#fff;
    padding:35px;
    border:1px solid #e6e6e6;
    border-radius:8px;
    transition:.25s;

}

.card:hover{

    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.card h4{

    font-family:"Cormorant Garamond",serif;
    font-size:30px;
    color:#223A54;
    margin-bottom:18px;

}

.card p{

    font-size:17px;
    line-height:1.8;
    color:#555;

}

/* ==========================================================
PARCOURS PROFESSIONNEL
========================================================== */

.parcours{

    padding:120px 0;

    background:#FAF9F7;

}

.timeline{

    position:relative;

    margin-top:60px;

    padding-left:180px;

}

.timeline::before{

    content:"";

    position:absolute;

    left:70px;

    top:0;

    bottom:0;

    width:2px;

    background:#223A54;

}

.timeline-item{

    position:relative;

    margin-bottom:70px;

}

.timeline-item:last-child{

    margin-bottom:0;

}

.timeline-item::before{

    content:"";

    position:absolute;

    left:-122px;

    top:8px;

    width:14px;

    height:14px;

    border-radius:50%;

    background:#223A54;

    border:4px solid white;

    box-shadow:0 0 0 2px #223A54;

}

.timeline-date{

    position:absolute;

    left:-180px;

    top:0;

    width:120px;

    font-weight:600;

    color:#223A54;

}

.timeline-content{

    background:white;

    padding:30px;

    border-radius:8px;

    border:1px solid #E5E5E5;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.timeline-content h4{

    font-family:"Cormorant Garamond",serif;

    font-size:32px;

    color:#223A54;

    margin-bottom:12px;

}

.timeline-content p{

    font-size:17px;

    color:#555;

    line-height:1.7;

}

/* ==========================================================
MES ENGAGEMENTS
========================================================== */

.valeurs{

    padding:120px 0;

    background:#FAF9F7;

}

.values{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

    margin-top:50px;

}

.values article{

    background:white;

    padding:35px;

    border:1px solid #E6E6E6;

    border-radius:8px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

    transition:.25s;

}

.values article:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.values h4{

    font-family:"Cormorant Garamond",serif;

    font-size:32px;

    color:var(--blue);

    margin-bottom:15px;

}

.values p{

    font-size:17px;

    line-height:1.7;

    color:#555;

}

/* ==========================================================
CONTACT
========================================================== */

.contact{

    padding:120px 0;

    background:white;

}

.contact-grid{

    display:grid;

    grid-template-columns:380px 1fr;

    gap:70px;

    align-items:stretch;

}

.contact-grid > div:first-child{

    display:flex;

    flex-direction:column;

}

.contact h3{

    font-family:"Cormorant Garamond",serif;

    font-size:44px;

    color:var(--blue);

    margin-bottom:35px;

}

.contact h4{

    font-family:"Cormorant Garamond",serif;

    font-size:38px;

    font-weight:600;

    color:var(--blue);

    margin-bottom:5px;

}

.profession{

    font-size:20px;

    color:#777;

    margin-bottom:35px;

}

.contact strong{

    font-size:22px;

    color:var(--blue);

}

.contact p{

    font-size:18px;

    line-height:1.45;

    color:#555;

    margin-bottom:12px;

}

.contact-grid > div:first-child{

    background:#FAF9F7;

    padding:40px;

    border-radius:8px;

    border:1px solid #E8E8E8;

}

.contact a:not(.btn-primary){

    color:var(--blue);

}

.adresse{
    margin-bottom:20px;
}

.telephone{
    margin-bottom:20px;
}

.contact .btn-primary{

    display:inline-block;

    margin-top:40px;   /* ou 45px si tu préfères */

    color:white;

}

.map{

    min-height:420px;

    border-radius:8px;

    overflow:hidden;

    border:1px solid #E6E6E6;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

/* ==========================================================
BURGER MENU
========================================================== */

.burger{

    display:none;

    background:none;

    border:none;

    color:white;

    margin-right:15px;

    font-size:34px;

    cursor:pointer;

}

/* ==========================================================
RESPONSIVE
========================================================== */

@media (max-width:768px){

    header{

        position:fixed;

        height:auto;

    }

    nav{

        max-width:100%;

        display:flex;

        justify-content:space-between;

        align-items:center;

        flex-wrap:wrap;

        padding:20px 0;

    }

    .burger{

        display:block;

    }

    nav ul{

    display:none;

    position:absolute;

    top:100%;

    left:0;

    width:100%;

    flex-direction:column;

    gap:0;

    margin:0;

    padding:0;

    list-style:none;

    background:var(--blue);

    z-index:1000;

}

    nav ul.active{

        display:flex;
        background:var(--blue);
    }

    nav li{

        border-top:none;

    }

    nav a{

        display:block;

        padding:12px 24px;

    }

    /* HERO */

    .hero{

        padding-top:140px;

    }

    .hero-grid{

        grid-template-columns:1fr;

    }

    .hero-right{

        justify-content:center;

        margin-bottom:40px;

    }

    .hero-right img{

        width:100%;

        max-width:360px;

    }

    .hero h2{

        font-size:40px;

    }

    .hero-buttons{

        flex-direction:column;

    }

    /* Sections */

    .cards,
    .values{

        grid-template-columns:1fr;

    }

    .contact-grid{

        grid-template-columns:1fr;

    }

    .timeline{

        padding-left:40px;

    }

    .timeline::before{

        left:10px;

    }

    .timeline-item::before{

        left:-28px;

    }

    .timeline-date{

        position:static;

        width:auto;

        margin-bottom:12px;

        font-size:15px;

    }

}