/* ==================================================
   RESET & BASE
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px; /* lisible mobile & desktop */
    line-height: 1.6;
    color: #111;
    background-color: #fff;
}

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


/* ==================================================
   LAYOUT GLOBAL
================================================== */

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}


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

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
}

header h1 {
    margin: 0;
    font-size: 4rem;
    font-weight: 700;
}

header address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.4;
}


/* ==================================================
   SECTIONS
================================================== */

section {
    padding: 1rem 0;
}

section h2 {
    margin: 0 0 1.25rem 0;
    font-size: 2rem;
    font-weight: 700;
}


/* ==================================================
   SECTION CONTENT (IMAGE + TEXTE)
================================================== */

.section-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.section-content.reverse {
    flex-direction: row-reverse;
}

.section-content .section-image {
    flex: 0 0 35%;
}

.section-content .section-text {
    flex: 1;
}

#qui-suis-je {
    align-items: center;
}


/* ==================================================
   LISTES – HIERARCHIE VISUELLE SANS PUCES
================================================== */

ul {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* repère visuel vertical */
li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 4px;
    height: 1.2em;
    background-color: #e25822; /* couleur repère */
    border-radius: 2px;
}

/* titre de l’item */
li strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}


/* ==================================================
   LISTES AVEC IMAGES
================================================== */

li.with-image {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

li.with-image .li-text {
    flex: 1;
}

li.with-image img {
    flex: 0 0 240px;
    max-width: 240px;
    height: auto;
}

textarea {
    width: 100%;
    min-height: 180px;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical; /* autorise l’agrandissement par l’utilisateur */
}
input, textarea {
    width: 100%;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

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

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }
    header {
        flex-direction: column;
        gap: 0.75rem;
    }
    header h1 {
        font-size: 2.2rem;
    }
    header address {
        font-size: 1rem;
        width: 100%;
    }
    section {
        padding: 1rem 0 0 0;
    }
    section h2 {
        font-size: 1.6rem;
    }
    .section-content,
    .section-content.reverse {
        flex-direction: column;
    }
    .section-content .section-image {
        width: 100%;
        margin-bottom: 1.25rem;
    }
    li.with-image {
        flex-direction: column;
        align-items: flex-start;
    }
    li.with-image img {
        width: 80%;
        max-width: 400px;
        margin: 0.5rem auto 0 auto;
    }
}
