@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Merriweather:wght@400;700&display=swap');

:root {
    --text: #222;
    --background: #fff;
    --navigation: #111;
    --border: #ddd;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #3268a8;
    outline-offset: 3px;
}

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

.content-wrap {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 1000;
    padding: 10px 15px;
    background: white;
}

.skip-link:focus {
    top: 10px;
}

/* En-tête et bannière originale */

.site-header {
    width: 100%;
    min-height: 250px;
    margin: 0;
    background-color: #fff;
    background-image: url('../assets/cropped-AdobeStock_711644715-c-3.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.site-header__inner {
    width: 1180px;
    max-width: 90%;
    min-height: 250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-branding {
    max-width: 58%;
    text-align: center;
}

.site-branding__name {
    margin: 0 0 8px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.25;
}

.site-branding__profession {
    margin: 0;
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.5;
}

/* Navigation principale */

.main-navigation {
    position: relative;
    z-index: 10;
    background: var(--navigation);
}

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a {
    display: block;
    padding: 16px;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu a[aria-current="page"] {
    background: #333;
}

.menu-toggle {
    display: none;
    padding: 15px 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

/* Citations */

.header-widgets-wrapper,
.quote-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 30px auto;
}

.header-widget,
.quote-card {
    padding: 18px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
}

.header-widget p,
.quote-card p {
    margin: 0 0 10px;
}

/* Contenu et colonne latérale */

.site-content {
    display: flow-root;
    width: 100%;
    margin: 30px auto 50px;
}

.featured-content {
    width: 66%;
    margin-right: 4%;
    float: left;
}

.featured-sidebar {
    width: 30%;
    float: left;
}

.featured-content h1,
.featured-content h2,
.featured-content h3 {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.4;
}

.featured-content h1 {
    font-size: clamp(25px, 2.5vw, 34px);
}

.featured-content p {
    margin: 0 0 1.2em;
}

.featured-sidebar img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.content-panel,
.sidebar-panel {
    padding: 20px;
    border: 1px solid var(--border);
    background: #fff;
}

/* Pied de page */

.site-footer {
    width: 100%;
    padding: 35px 0 15px;
    background: #000;
    color: #fff;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.footer-column h2 {
    margin: 0 0 15px;
    font-size: 19px;
    line-height: 1.4;
}

.footer-column p {
    margin: 0;
    font-size: 15px;
}

.site-info {
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 13px;
}

.site-info p {
    margin: 0;
}

/* Tablettes et téléphones */

@media (max-width: 768px) {
    .site-header,
    .site-header__inner {
        min-height: 210px;
    }

    .site-branding {
        max-width: 70%;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
    }

    .primary-menu.is-open {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        border-top: 1px solid #333;
    }

    .header-widgets-wrapper,
    .quote-columns {
        grid-template-columns: 1fr;
    }

    .featured-content,
    .featured-sidebar {
        width: 100%;
        margin-right: 0;
        float: none;
    }

    .featured-sidebar {
        margin-top: 30px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .site-header,
    .site-header__inner {
        min-height: 180px;
    }

    .site-header {
        background-position: 35% center;
    }

    .site-branding {
        max-width: 75%;
    }

    .site-branding__name {
        font-size: 25px;
    }

    .site-branding__profession {
        font-size: 13px;
    }

    .content-wrap {
        max-width: 92%;
    }

    .content-panel,
    .sidebar-panel {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* P0401M097 — Rapprochement graphique du site original */

/* Bandeau */
.site-header {
    min-height: 185px;
    background-size: 100% auto;
    background-position: center center;
}

.site-header__inner {
    min-height: 185px;
    justify-content: center;
}

.site-branding {
    max-width: 60%;
}

.site-branding__name {
    font-size: 40px;
    font-weight: 400;
}

.site-branding__profession {
    font-size: 15px;
}

/* Navigation */
.main-navigation {
    background: #000;
}

.primary-menu a {
    padding: 13px 17px;
    font-size: 14px;
}

.primary-menu a[aria-current="page"],
.primary-menu a:hover {
    background: #990000;
}

/* Citations */
.quote-columns {
    gap: 18px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.quote-card {
    position: relative;
    padding: 28px 18px 16px;
    border: 1px solid #333;
}

.quote-card__author {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    padding: 0 18px;
    background: #fff;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
}

.quote-card__author strong {
    font-weight: 400;
}

.quote-card__text {
    font-size: 14px;
    line-height: 1.6;
}

/* Colonnes et encadrés */
.site-content {
    margin-top: 35px;
}

.featured-content {
    width: 66%;
    margin-right: 4%;
}

.featured-sidebar {
    width: 30%;
}

.page-content {
    padding: 28px 30px;
    border: 1px solid #333;
    background: #fff;
}

.page-content h1 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 29px;
    font-weight: 700;
}

.entry-content {
    font-size: 14px;
    line-height: 1.7;
}

.featured-sidebar img {
    display: block;
    width: 100%;
    height: auto;
    padding: 20px;
    margin-bottom: 28px;
    border: 1px solid #333;
    background: #fff;
}

/* Adaptation aux écrans mobiles */
@media (max-width: 768px) {
    .site-header,
    .site-header__inner {
        min-height: 170px;
    }

    .site-header {
        background-size: cover;
    }

    .site-branding {
        max-width: 75%;
    }

    .site-branding__name {
        font-size: 29px;
    }

    .featured-content,
    .featured-sidebar {
        width: 100%;
        margin-right: 0;
        float: none;
    }

    .page-content {
        padding: 22px;
    }

    .page-content h1 {
        font-size: 25px;
    }

    .quote-card {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .site-branding__name {
        font-size: 25px;
    }

    .site-branding__profession {
        font-size: 13px;
    }

    .page-content {
        padding: 16px;
    }
}

/* P0401M099 — Hauteur du bandeau et alignement des colonnes */

@media (min-width: 769px) {
    .site-header,
    .site-header__inner {
        min-height: 150px;
    }

    .site-header {
        background-size: 100% auto;
    }
}

.site-content.content-wrap {
    width: 1180px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .site-content.content-wrap {
        max-width: 92%;
    }
}

/* P0401M102 — Positionnement du bandeau original */

@media (min-width: 769px) {
    .site-header {
        height: 150px;
        min-height: 150px;
        background-position: left top;
        background-size: 100% auto;
    }

    .site-header__inner {
        height: 150px;
        min-height: 150px;
    }
}

/* P0401M104 — Ajustement vertical de l'image du bandeau */
@media (min-width: 769px) {
    .site-header {
        background-position: left -40px;
    }
}
