/***************************************************************
Palette commune : modifier les couleurs du site ici
***************************************************************/

:root {
    /* Couleurs principales */
    --ink: #05112b;
    --pink: #f51b86;
    --pink-strong: #c6005f;
    --cyan: #00afe3;
    --green: #73ce26;
    --yellow: #ffdc24;
    --white: #fff;

    /* Textes secondaires, fonds et bordures */
    --muted: #45577e;
    --surface: #f2f5fa;
    --surface-blue: #e8f7ff;
    --border: #cbd3df;

    /* Transparences liées à la palette */
    --shadow: color-mix(in srgb, var(--ink) 8%, transparent);
    --shadow-accent: color-mix(in srgb, var(--pink) 10%, transparent);
    --border-on-color: color-mix(in srgb, var(--ink) 30%, transparent);
    --border-on-dark: color-mix(in srgb, var(--white) 30%, transparent);
    --overlay: color-mix(in srgb, var(--ink) 67%, transparent);

    /* Image décorative commune */
    --image-confetti: url('../img/decorations/gouttelettes.svg');
}

/***************************************************************
Styles généraux et typographie
***************************************************************/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    outline-offset: 5px;
}

button {
    font: inherit;
    outline-offset: 5px;
    cursor: pointer;
}

input {
    font: inherit;
    outline-offset: 5px;
}

select {
    font: inherit;
    outline-offset: 5px;
}

textarea {
    font: inherit;
    outline-offset: 5px;
}

header nav a:not(.button):hover {
    color: var(--pink-strong);
}

.wrap {
    max-width: 1160px;
    width: calc(100% - 64px);
    margin: auto;
}

h1 {
    font-size: clamp(38px,4.4vw,59px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 0 0 18px;
    max-width: 500px;
    font-weight: 900;
}

h1 em {
    display: block;
    color: var(--pink-strong);
    font-style: normal;
}

.section {
    padding-top: 40px;
    padding-bottom: 15px;
}

h2 {
    font-size: clamp(27px,3vw,36px);
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 900;
}

h3 {
    font-size: 25px;
    letter-spacing: -.8px;
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 900;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--pink-strong);
    display: block;
    margin-bottom: 15px;
}

details {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    color: var(--muted);
}

.skip {
    position: absolute;
    left: 15px;
    top: -100px;
    background: var(--white);
    padding: 10px;
    z-index: 20;
}

.skip:focus {
    top: 10px;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 4px;
}

/***************************************************************
En-tête et navigation
***************************************************************/

header {
    min-height: 85px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1260px;
    margin: auto;
    padding: 18px 35px;
    padding-top: 8px;
    padding-bottom: 8px;
}

header nav {
    display: flex;
    gap: 29px;
    margin: auto;
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
    margin-right: 0;
    align-items: center;
}

.logo {
    font-size: 26px;
    var(--white)-space: nowrap;
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.header-cta {
    border-radius: 13px;
    font-size: 14px;
    display: inline-flex;
    color: var(--white);
}

.menu {
    display: none;
}

.site-footer .logo {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 24px;
}

.site-footer .logo img {
    width: 165px;
}

header .logo img {
    width: 205px;
}

.logo img {
    display: block;
    width: 155px;
    height: auto;
}

footer .logo img {
    width: 150px;
}

header nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/***************************************************************
Boutons et liens
***************************************************************/

.button {
    border: 0;
    border-radius: 30px;
    color: var(--white);
    padding: 15px 25px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s,background .2s;
    background: var(--pink-strong);
    box-shadow: 0 5px 0 var(--shadow-accent);
}

.button:hover {
    transform: translateY(-2px);
    background: var(--pink-strong);
    filter: brightness(0.9);
}

.textlink {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--pink);
    color: var(--pink-strong);
    padding: 3px 0;
    font-weight: 600;
}

/***************************************************************
Décorations et titres de section
***************************************************************/

.heading {
    text-align: center;
    margin-bottom: 30px;
}

.heading p {
    margin: 0;
    color: var(--muted);
}

.heading :is(h1, h2) {
    position: relative;
    display: inline-block;
    max-width: calc(100% - 110px);
    padding-inline: 3px;
}

.heading :is(h1, h2)::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 54px;
    height: 54px;
    background: var(--image-confetti) center/contain no-repeat;
    pointer-events: none;
    right: 100%;
    transform: translateY(-55%) rotate(12deg);
}

.heading :is(h1, h2)::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 54px;
    height: 54px;
    background: var(--image-confetti) center/contain no-repeat;
    pointer-events: none;
    left: 100%;
    transform: translateY(-55%) scaleX(-1) rotate(12deg);
}

/***************************************************************
Bandeau de contact commun
***************************************************************/

.banner {
    background: var(--surface-blue);
    border-radius: 30px;
    width: calc(100% - 32px);
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 35px 0;
    color: var(--ink);
}

.banner>.wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    padding-inline: 25px;
}

.banner img {
    width: 100%;
    object-fit: cover;
    height: 195px;
    border-radius: 35px 65px 30px 35px;
}

.banner p {
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 15px;
    color: var(--muted);
}

.banner h2 {
    font-size: 38px;
}

.banner .button {
    color: var(--white);
    background: var(--pink-strong);
}

.banner .button:hover {
    background: var(--pink-strong);
    filter: brightness(0.9);
}

.banner>.wrap::before {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    background: var(--image-confetti) center/contain no-repeat;
    pointer-events: none;
    left: -25px;
    bottom: 4px;
    transform: rotate(-15deg);
}

.banner>.wrap::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    background: var(--image-confetti) center/contain no-repeat;
    pointer-events: none;
    right: -20px;
    bottom: 10px;
    transform: scaleX(-1) rotate(-15deg);
}

/***************************************************************
Fenêtres de dialogue
***************************************************************/

dialog {
    border: 0;
    border-radius: 22px;
    max-width: 570px;
    width: calc(100% - 32px);
    padding: 30px;
    color: var(--ink);
    max-height: 90vh;
    overflow: auto;
}

dialog::backdrop {
    background: var(--overlay);
}

dialog img {
    width: 100%;
    border-radius: 13px;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    border: 0;
    background: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/***************************************************************
Heroes des pages intérieures
***************************************************************/

.page-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
    padding-top: 35px;
    padding-bottom: 45px;
}

.page-hero h1 {
    font-size: clamp(36px, 4vw, 54px);
}

.page-hero p {
    color: var(--muted);
    font-size: 20px;
}

.page-hero-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 60px 25px 65px 30px;
}

.page-hero > div {
    position: relative;
}

.page-hero > div::before {
    content: "";
    position: absolute;
    width: 65px;
    height: 65px;
    top: -42px;
    right: 25px;
    background: var(--image-confetti) center / contain no-repeat;
}

.page-hero-compact {
    display: block;
    padding-top: 40px;
    padding-bottom: 20px;
}

.page-hero-compact .heading {
    margin-bottom: 0;
}

.page-hero-compact .eyebrow {
    display: block;
    margin-bottom: 12px;
}

.page-hero-compact h1 {
    font-size: clamp(32px, 3.5vw, 44px);
    margin: 0 0 16px;
}

.page-hero-compact > div::before {
    content: none;
}

.page-hero-compact p {
    max-width: 700px;
    margin-inline: auto;
    font-size: 18px;
}

.hero-figure {
    margin: 0;
}

.hero-figure figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

/***************************************************************
Coordonnées communes
***************************************************************/

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;
    margin: 22px 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-details a {
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-details a:hover {
    color: var(--pink-strong);
}

/***************************************************************
Pied de page : trois colonnes et ligne de mentions séparée
***************************************************************/

.site-footer {
    background: var(--ink);
    color: var(--white);
    border-radius: 0;
    padding: 45px 0 24px;
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: auto 1fr 1.3fr;
    align-items: start;
    gap: 65px;
}

.site-footer h2 {
    font-size: 18px;
    margin: 0 0 18px;
}

.footer-navigation nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.site-footer .contact-details {
    align-items: flex-start;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    gap: 12px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-on-dark);
    margin-top: 35px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 30px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.site-footer a:hover {
    color: var(--yellow);
}

.site-footer :focus-visible {
    outline-color: var(--yellow);
}

/***************************************************************
Page introuvable
***************************************************************/

.error-page {
    text-align: center;
    padding-block: 80px;
}

.error-page h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 18px 0;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

/***************************************************************
Adaptations : @media(max-width:1000px)
***************************************************************/

@media(max-width:1000px) {
    header {
        gap: 15px;
        padding: 15px 25px;
    }

    .logo {
        font-size: 23px;
    }

    header nav {
        gap: 18px;
    }

}

/***************************************************************
Adaptations : @media(max-width:720px)
***************************************************************/

@media(max-width:720px) {
    html {
        scroll-padding-top: 20px;
    }

    .wrap {
        width: calc(100% - 36px);
    }

    h1 {
        font-size: 43px;
        letter-spacing: -1.5px;
        max-width: 450px;
    }

    .section {
        padding-top: 35px;
    }

    header {
        flex-wrap: wrap;
        padding: 12px 18px;
        position: relative;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .logo {
        font-size: 22px;
    }

    .menu {
        display: block;
        margin-left: auto;
        border: 0;
        background: var(--surface);
        color: var(--ink);
        padding: 9px;
        border-radius: 8px;
    }

    .header-cta {
        display: inline-flex;
        color: var(--white);
    }

    header nav {
        display: none;
        width: 100%;
        padding: 15px 0;
        gap: 20px;
        flex-wrap: wrap;
        margin: 0;
    }

    header nav.open {
        display: flex;
    }

    .site-footer .logo img {
        width: 140px;
    }

    header .logo img {
        width: 155px;
    }

    .logo img {
        width: 125px;
    }

    footer .logo img {
        width: 140px;
    }

    .button {
        font-size: 14px;
        padding: 14px 22px;
        background: var(--pink-strong);
        color: var(--white);
    }

    .banner>.wrap {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-inline: 0;
    }

    .banner img {
        height: 170px;
    }

    .banner {
        padding-bottom: 30px;
        border-radius: 25px;
    }

    .banner h2 {
        font-size: 31px;
    }

    .banner>.wrap::before {
        left: 0;
        bottom: -22px;
        width: 36px;
        height: 36px;
    }

    .banner>.wrap::after {
        right: 0;
        bottom: -20px;
        width: 36px;
        height: 36px;
    }

    .site-footer .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
        text-align: center;
    }

    .footer-navigation nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 22px;
    }

    .site-footer .contact-details {
        align-items: center;
    }

    .site-footer {
        padding: 32px 0 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-bottom nav {
        justify-content: center;
    }

    .heading :is(h1, h2) {
        max-width: calc(100% - 66px);
    }

    .heading :is(h1, h2)::before {
        width: 34px;
        height: 40px;
    }

    .heading :is(h1, h2)::after {
        width: 34px;
        height: 40px;
    }

}

/***************************************************************
Adaptations : @media(max-width:400px)
***************************************************************/

@media(max-width:400px) {
    h1 {
        font-size: 37px;
    }

}

/***************************************************************
Adaptations : @media(prefers-reduced-motion:reduce)
***************************************************************/

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

    * {
        transition: none;
    }

}

/***************************************************************
Adaptations : @media (max-width: 720px)
***************************************************************/

@media (max-width: 720px) {
    .page-hero {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 35px;
    }

    .page-hero-image {
        height: 250px;
    }

    header {
        flex-wrap: wrap;
    }

}

/***************************************************************
Adaptations : @media (prefers-reduced-motion: reduce)
***************************************************************/

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

    .button {
        transition: none;
    }

}

/***************************************************************
Adaptations : @media (min-width: 721px) and (max-width: 1000px)
***************************************************************/

@media (min-width: 721px) and (max-width: 1000px) {
    header {
        padding-inline: 24px;
        gap: 16px;
    }

    header nav {
        gap: 14px;
        font-size: 13px;
    }

    header .logo img {
        width: 160px;
    }

}


