/* Claude Dionne Consultants */

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --turquoise: #67acbf;
    --turquoise-pale: #eef6f8;
    --marine: #2d5875;
    --marine-fonce: #112a3b;
    --accent: #ed8c5c;
    --accent-fonce: #d9733f;
    --texte: #22323d;
    --texte-doux: #4f606b;
    --fond: #fcfcfb;
    --blanc: #fff;

    --police: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --hauteur-entete: 4.5rem;
    --rayon: 0.75rem;
    --ombre: 0 1px 2px rgb(17 42 59 / 0.06), 0 8px 24px rgb(17 42 59 / 0.08);
}

/* Base */

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

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

body {
    margin: 0;
    font-family: var(--police);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--texte);
    background: var(--fond);
}

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

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--marine-fonce);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--marine);
}

main {
    overflow-x: clip;
}

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

.conteneur {
    width: min(100% - 2.5rem, 72rem);
    margin-inline: auto;
}

.visuellement-cache {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.evitement {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--blanc);
    border-radius: var(--rayon);
}

.evitement:focus {
    top: 1rem;
}

.icone {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icone--pleine {
    fill: currentColor;
    stroke: none;
}

/* Boutons */

.bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, translate 0.2s, box-shadow 0.2s;
}

.bouton:hover {
    translate: 0 -2px;
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
}

.bouton--accent {
    background: var(--accent);
    color: var(--marine-fonce);
}

.bouton--accent:hover {
    background: var(--blanc);
}

.bouton--contour {
    border-color: rgb(255 255 255 / 0.7);
    color: var(--blanc);
}

.bouton--contour:hover {
    background: var(--blanc);
    border-color: var(--blanc);
    color: var(--marine-fonce);
}

.bouton--grand {
    padding: 1rem 1.75rem;
    font-size: 1.125rem;
}

@media (max-width: 26rem) {
    .bouton--grand {
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
    }
}

/* Le courriel n'existe qu'avec JavaScript (voir main.js) */
.courriel {
    display: none;
}

.js .courriel {
    display: inline-flex;
}

/* En-tête */

.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--marine-fonce);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
    transition: box-shadow 0.3s;
}

.entete--defile {
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.08), 0 8px 24px rgb(0 0 0 / 0.25);
}

.entete__interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--hauteur-entete);
}

.entete__logo img {
    width: 180px;
    height: auto;
}

.menu ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: rgb(255 255 255 / 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.menu a:hover,
.menu a[aria-current] {
    color: var(--blanc);
}

.menu a:not(.menu__action) {
    position: relative;
}

.menu a:not(.menu__action)::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--turquoise);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.menu a:hover::after,
.menu a[aria-current]::after {
    transform: scaleX(1);
}

.menu .menu__action {
    margin-left: 0.5rem;
    background: var(--turquoise);
    color: var(--marine-fonce);
}

.menu .menu__action:hover {
    background: var(--blanc);
    color: var(--marine-fonce);
}

.menu-bouton {
    display: none;
}

@media (max-width: 52rem) {
    /* Sans JavaScript, le menu reste visible sous le logo */
    .entete__interieur {
        flex-wrap: wrap;
    }

    .menu ul {
        flex-wrap: wrap;
    }

    .js .entete__interieur {
        flex-wrap: nowrap;
    }

    .js .menu-bouton {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 0;
        border-radius: 0.5rem;
        background: transparent;
        cursor: pointer;
    }

    .menu-bouton__barres,
    .menu-bouton__barres::before,
    .menu-bouton__barres::after {
        display: block;
        width: 1.5rem;
        height: 2px;
        background: var(--blanc);
        border-radius: 2px;
        transition: transform 0.2s, background-color 0.2s;
    }

    .menu-bouton__barres {
        position: relative;
    }

    .menu-bouton__barres::before,
    .menu-bouton__barres::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-bouton__barres::before {
        top: -7px;
    }

    .menu-bouton__barres::after {
        top: 7px;
    }

    .menu-bouton[aria-expanded="true"] .menu-bouton__barres {
        background: transparent;
    }

    .menu-bouton[aria-expanded="true"] .menu-bouton__barres::before {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-bouton[aria-expanded="true"] .menu-bouton__barres::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .js .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: var(--marine-fonce);
        box-shadow: 0 12px 24px rgb(0 0 0 / 0.25);
    }

    .js .menu.est-ouvert {
        display: block;
    }

    .js .menu ul {
        flex-direction: column;
        align-items: stretch;
    }

    .menu a {
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }

    .menu .menu__action {
        margin: 0.5rem 0 0;
        text-align: center;
    }
}

/* Sections */

section[id] {
    scroll-margin-top: var(--hauteur-entete);
}

.section {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.section--teinte {
    background: var(--turquoise-pale);
}

.section__entete {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.surtitre {
    margin-bottom: 0.5rem;
    color: var(--marine);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.surtitre--clair {
    color: var(--turquoise);
}

/* Hero */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(46rem, calc(100svh - var(--hauteur-entete)));
    padding-block: 5rem;
    overflow: hidden;
    background: var(--marine-fonce);
    color: var(--blanc);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 30%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgb(17 42 59 / 0.94) 0%,
            rgb(45 88 117 / 0.82) 38%,
            rgb(103 172 191 / 0.25) 68%,
            rgb(103 172 191 / 0) 85%);
}

.hero__contenu {
    position: relative;
    z-index: 2;
}

.hero .surtitre {
    color: #a9dbe7;
    text-shadow: 0 1px 8px rgb(17 42 59 / 0.6);
}

.hero h1 {
    max-width: 14ch;
    color: var(--blanc);
}

.hero__texte {
    max-width: 32rem;
    margin-bottom: 2rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgb(255 255 255 / 0.9);
}

.hero__texte strong {
    color: var(--accent);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__defiler {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: -1.375rem;
    border: 2px solid rgb(255 255 255 / 0.5);
    border-radius: 50%;
    color: var(--blanc);
}

.hero__defiler:hover {
    border-color: var(--blanc);
}

@media (max-width: 52rem) {
    .hero {
        align-items: flex-end;
        min-height: calc(100svh - var(--hauteur-entete));
        padding-block: 3rem;
    }

    .hero__image {
        object-position: 72% 20%;
    }

    .hero__defiler {
        display: none;
    }

    .hero::before {
        background: linear-gradient(0deg,
                rgb(17 42 59 / 0.96) 0%,
                rgb(17 42 59 / 0.9) 55%,
                rgb(17 42 59 / 0.6) 68%,
                rgb(45 88 117 / 0.1) 90%);
    }
}

/* À propos */

.a-propos {
    display: grid;
    grid-template-columns: minmax(12rem, 20rem) 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.a-propos__portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--rayon);
    box-shadow: 1.25rem 1.25rem 0 var(--turquoise-pale), var(--ombre);
}

.a-propos__texte {
    max-width: 42rem;
}

.a-propos__texte strong {
    color: var(--marine);
}

.passions {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: passion;
}

.passions li {
    position: relative;
    padding-left: 2.75rem;
    counter-increment: passion;
}

.passions li::before {
    content: counter(passion);
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--turquoise-pale);
    color: var(--marine);
    font-weight: 800;
    font-size: 0.95rem;
}

@media (max-width: 44rem) {
    .a-propos {
        grid-template-columns: 1fr;
    }

    .a-propos__portrait {
        width: 14rem;
    }
}

/* Expertises */

.cartes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.carte {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--blanc);
    border-radius: var(--rayon);
    border-top: 4px solid var(--turquoise);
    box-shadow: var(--ombre);
    transition: translate 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.carte:hover {
    translate: 0 -6px;
    border-top-color: var(--accent);
    box-shadow: 0 2px 4px rgb(17 42 59 / 0.06), 0 18px 40px rgb(17 42 59 / 0.14);
}

.carte p {
    color: var(--texte-doux);
    font-size: 1rem;
}

.carte .carte__cle {
    margin: auto 0 0;
    padding-top: 0.5rem;
    color: var(--marine);
    font-weight: 700;
}

@media (max-width: 60rem) {
    .cartes {
        grid-template-columns: 1fr 1fr;
    }

    .carte {
        grid-column: auto;
    }

    .carte:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 40rem) {
    .cartes {
        grid-template-columns: 1fr;
    }

    .carte:nth-child(3) {
        grid-column: auto;
    }
}

.approche {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: clamp(3rem, 7vw, 5rem);
}

.approche__photo {
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
}

.approche h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
}

.pastilles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.pastilles li {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--marine);
    color: var(--blanc);
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 52rem) {
    .approche {
        grid-template-columns: 1fr;
    }
}

/* Témoignages */

.temoignages {
    position: relative;
    background: var(--marine) url("../images/fond-temoignages.webp") center / cover no-repeat;
    color: var(--blanc);
}

.temoignages::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(45 88 117 / 0.93), rgb(103 172 191 / 0.9));
}

.temoignages .conteneur {
    position: relative;
}

.temoignages h2 {
    color: var(--blanc);
}

.temoignages .surtitre--clair {
    color: rgb(255 255 255 / 0.8);
}

.temoignages__grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.temoignage {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 2rem;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: var(--rayon);
    transition: background-color 0.25s, translate 0.25s, box-shadow 0.25s;
}

.temoignage:hover {
    translate: 0 -4px;
    background: rgb(255 255 255 / 0.16);
    box-shadow: 0 16px 36px rgb(17 42 59 / 0.2);
}

.temoignage blockquote {
    position: relative;
    margin: 0 0 1.25rem;
    padding-top: 1.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.temoignage blockquote::before {
    content: "«";
    position: absolute;
    top: -0.75rem;
    left: -0.1rem;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.temoignage blockquote p {
    margin: 0;
}

.temoignage figcaption {
    margin-top: auto;
    font-weight: 700;
}

.temoignage figcaption span {
    display: block;
    font-weight: 400;
    color: rgb(255 255 255 / 0.8);
}

@media (max-width: 44rem) {
    .temoignages__grille {
        grid-template-columns: 1fr;
    }
}

/* Clients */

.clients {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.clients__intro p:last-child {
    color: var(--texte-doux);
}

.clients__partenaires > p {
    color: var(--marine);
    font-weight: 700;
}

.clients__liste {
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    color: var(--marine-fonce);
}

.clients__liste li {
    padding: 0.7rem 0 0.7rem 1.1rem;
    border-bottom: 1px solid rgb(17 42 59 / 0.08);
    position: relative;
}

.clients__liste li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.35rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--turquoise);
}

@media (max-width: 52rem) {
    .clients {
        grid-template-columns: 1fr;
    }
}

/* Nous joindre */

.joindre {
    position: relative;
    background: var(--marine-fonce) url("../images/fond-contact-800.webp") center / cover no-repeat;
    color: var(--blanc);
    text-align: center;
}

@media (min-width: 50rem) {
    .joindre {
        background-image: url("../images/fond-contact-1600.webp");
    }
}

.joindre::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(17 42 59 / 0.82);
}

.joindre__interieur {
    position: relative;
    max-width: 48rem;
}

.joindre h2 {
    color: var(--blanc);
}

.joindre h2 span {
    display: block;
    color: var(--turquoise);
}

.joindre__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
}

.joindre__noscript {
    margin-top: 1.5rem;
}

/* Pied de page */

.pied {
    padding-block: 1.5rem;
    background: var(--marine-fonce);
    border-top: 1px solid rgb(255 255 255 / 0.08);
    color: rgb(255 255 255 / 0.7);
    font-size: 0.9rem;
}

.pied__interieur {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.pied p {
    margin: 0;
}

.pied a {
    color: inherit;
    text-decoration: none;
}

.pied a:hover {
    color: var(--blanc);
}

.pied__contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pied__linkedin {
    display: inline-flex;
}

/* Page 404 */

.erreur {
    display: grid;
    place-content: center;
    min-height: calc(100svh - var(--hauteur-entete) - 4.5rem);
    padding-block: 4rem;
    text-align: center;
}

.erreur__code {
    margin: 0;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--turquoise);
}

.erreur .bouton {
    justify-self: center;
    margin-top: 1rem;
}

/* Animations */

/* Apparition au défilement (façon AOS) : voir main.js, qui ajoute .aos-actif et .aos-visible */
.aos-actif [data-aos] {
    opacity: 0;
    transition-property: opacity, transform, translate, box-shadow, background-color, border-color;
    transition-duration: 0.8s, 0.8s, 0.25s, 0.25s, 0.25s, 0.25s;
    transition-timing-function: ease, cubic-bezier(0.22, 1, 0.36, 1), ease, ease, ease, ease;
    transition-delay: var(--aos-delai, 0ms), var(--aos-delai, 0ms), 0s, 0s, 0s, 0s;
}

.aos-actif [data-aos="fade-up"] {
    transform: translateY(2rem);
}

.aos-actif [data-aos="fade-right"] {
    transform: translateX(-2.5rem);
}

.aos-actif [data-aos="fade-left"] {
    transform: translateX(2.5rem);
}

.aos-actif [data-aos="zoom-in"] {
    transform: scale(0.92);
}

.aos-actif [data-aos].aos-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    /* Entrée du hero au chargement */
    .hero__image {
        animation: hero-zoom 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .hero__contenu > * {
        animation: hero-entree 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .hero__contenu > :nth-child(2) {
        animation-delay: 0.12s;
    }

    .hero__contenu > :nth-child(3) {
        animation-delay: 0.24s;
    }

    .hero__contenu > :nth-child(4) {
        animation-delay: 0.36s;
    }

    .hero__defiler {
        animation: hero-entree 0.9s 0.8s both, rebond 2.4s 1.7s ease-in-out infinite;
    }
}

@keyframes hero-zoom {
    from {
        transform: scale(1.08);
    }
}

@keyframes hero-entree {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
}

@keyframes rebond {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 8px;
    }
}

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

    * {
        transition: none !important;
    }
}
