/* ===========================================================
   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 {

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 105px;

}

.logo {

    flex-shrink: 0;

}

.logo-text h1 {

    margin-bottom: 8px;

    font-family: "Cormorant Garamond", serif;
    font-size: 46px;
    font-weight: 600;
    line-height: 1;

    color: white;

}

.logo-text span {

    color: var(--blue-light);

    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;

}

nav ul {

    display: flex;

    list-style: none;

    gap: 45px;

    margin-left: auto;

}

nav a {

    color: white;

    font-size: 15px;
    font-weight: 500;

    transition: .25s;

}

nav a:hover {

    color: var(--blue-light);

}

.burger {

    display: none;

    background: none;
    border: none;

    color: white;

    font-size: 34px;

    cursor: pointer;

}

/* ================= 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: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 35px;
}

.card-particuliers {
    grid-column: 1;
    grid-row: 1 / 3;
}

.card-entreprises {
    grid-column: 2;
    grid-row: 1;
}

.card-dirigeants {
    grid-column: 2;
    grid-row: 2;
}

.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 h4 a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.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);

}

/* --- Domaines d'activité --- */

.card-particuliers .intro {
    margin-bottom: 28px;
}

.domain-list {
    display: block;
}

.domain-item {
    border-top: 1px solid #E6E6E6;
}

.domain-item:last-child {
    border-bottom: 1px solid #E6E6E6;
}

.domain-item summary {
    position: relative;
    padding: 16px 35px 16px 0;
    cursor: pointer;
    list-style: none;

    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: #223A54;
}

.domain-item summary::-webkit-details-marker {
    display: none;
}

.domain-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #223A54;
}

.domain-item[open] summary {
    font-size: 25px;
    font-weight: 900;
}

.domain-item[open] summary::after {
    content: "−";
}

.domain-item p {
    margin: 0;
    padding: 0 35px 18px 0;

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

.domain-item p strong {
    color: #223A54;
    font-weight: 500;
}

.card-dirigeants h4 {
    font-size: 28px;
    line-height: 1.15;
}

.card-dirigeants p {
    margin-bottom: 18px;
}

.access-info {
    text-align: center;
    margin: 30px auto 0;
    max-width: 700px;
}

.access-info p:first-child {
    margin-bottom: 8px;
}

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

.burger {

    display: none;

    background: none;

    border: none;

    color: white;

    margin-right: 15px;

    font-size: 34px;

    cursor: pointer;

}

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

@media (max-width:1100px) {

    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;

    }

    .card-particuliers,
    .card-entreprises,
    .card-dirigeants {
        grid-column: 1;
        grid-row: auto;
    }

    .domain-list {
        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;

    }

}