@charset "UTF-8";
/*
 * Ce fichier rassemble les différentes parties SCSS du site.
 * Il est compilé dans css/style.css, le fichier lu par le navigateur.
 * L'ordre des imports est volontaire : la base est chargée avant les styles propres aux pages.
 */
/*
 * Les polices sont enregistrées dans le projet pour que le site ne dépende
 * pas d'un service externe. Le navigateur les chargera depuis l'hébergement OVH.
 * font-display: swap affiche d'abord une police de secours afin de ne pas masquer le texte pendant le chargement.
 */
/* Inter est utilisée uniquement pour le grand titre de la page d'accueil sur ordinateur. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter/inter-latin.woff2") format("woff2");
}
/* Rajdhani sert aux titres et aux éléments forts de l'identité visuelle. */
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/rajdhani/rajdhani-regular-400.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/rajdhani/rajdhani-medium-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/rajdhani/rajdhani-semibold-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/rajdhani/rajdhani-bold-700.woff2") format("woff2");
}
/* Rubik est utilisée pour les textes courants, les boutons et les interfaces. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/rubik/rubik-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/rubik/rubik-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/rubik/rubik-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/rubik/rubik-latin.woff2") format("woff2");
}
/*
 * Ces règles posent une base commune à toutes les pages.
 * box-sizing évite que les bordures et les espacements agrandissent les éléments.
 * Elles évitent de recopier les mêmes réglages dans chaque page.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #2f3437;
  font-family: "Rubik", Arial, sans-serif;
}

/* Cette classe cache un texte visuellement tout en le laissant lisible par un lecteur d'écran. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * Les animations améliorent la perception de fluidité sans déplacer la mise en page.
 * Elles sont volontairement désactivées pour les personnes qui préfèrent réduire les
 * mouvements dans les réglages de leur appareil.
 */
@media (prefers-reduced-motion: no-preference) {
  .button,
  .site-navigation__cv,
  .timeline-filters__button,
  .projects-hero__github,
  .projects-filters__button,
  .projects-contact__link,
  .contact-form__submit,
  .contact-card__link,
  .project-card,
  .projects-card,
  .skill-card,
  .timeline-card,
  .contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .button:hover,
  .site-navigation__cv:hover,
  .timeline-filters__button:hover,
  .projects-hero__github:hover,
  .projects-filters__button:hover,
  .projects-contact__link:hover,
  .contact-form__submit:hover,
  .contact-card__link:hover,
  .project-card:hover,
  .projects-card:hover,
  .skill-card:hover,
  .timeline-card:hover,
  .contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(11, 11, 11, 0.12);
  }
}
/* Le contenu s'efface avant la navigation puis réapparaît à l'ouverture de la page suivante. */
@media (prefers-reduced-motion: no-preference) {
  main.page-transition--initial,
  main.page-transition--leaving {
    opacity: 0;
  }
  main.page-transition--entered {
    opacity: 1;
    transition: opacity 0.2s ease;
  }
  main.page-transition--leaving {
    transition: opacity 0.2s ease;
  }
}
/* Les animations d'apparition restent strictement limitées au contenu principal. */
@media (prefers-reduced-motion: no-preference) {
  main > section.content-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
  }
  main > section.content-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/*
 * Le bandeau reste fixé en bas de l'écran pour que le choix soit immédiatement accessible.
 * Il ne bloque pas la navigation : le visiteur peut lire la page avant de répondre.
 */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 24px;
  background-color: #ffffff;
  border-top: 4px solid #078fa7;
  box-shadow: 0 -8px 24px rgba(47, 52, 55, 0.18);
}

/* L'attribut hidden est piloté par JavaScript lorsque le choix a déjà été enregistré. */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  width: min(100%, 1120px);
  margin: 0 auto;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__content {
  max-width: 760px;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  color: #2f3437;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 26px;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.55;
}

.cookie-banner a {
  color: #057d92;
}

.cookie-banner a:hover,
.cookie-banner a:focus-visible {
  color: #045d6c;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

/*
 * Les deux choix ont exactement la même taille et la même présentation.
 * Cette égalité visuelle évite d'inciter le visiteur à accepter plutôt qu'à refuser.
 */
.cookie-banner__button {
  min-width: 128px;
  min-height: 48px;
  padding: 10px 20px;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background-color: #057d92;
  border: 2px solid #057d92;
  border-radius: 8px;
}

.cookie-banner__button:hover,
.cookie-banner__button:focus-visible {
  background-color: #045d6c;
  border-color: #045d6c;
}

.cookie-banner a:focus-visible,
.cookie-banner__button:focus-visible,
.site-footer__cookie-settings:focus-visible {
  outline: 3px solid #078fa7;
  outline-offset: 3px;
}

/* Le bouton du footer ressemble aux autres liens, tout en restant une vraie action HTML. */
.site-footer__cookie-settings {
  padding: 0;
  color: #2f3437;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
}

.site-footer__cookie-settings:hover,
.site-footer__cookie-settings:focus-visible {
  color: #078fa7;
  text-decoration: underline;
}

@media screen and (max-width: 760px) {
  /* Sur tablette et mobile, le texte et les actions s'empilent pour préserver la lisibilité. */
  .cookie-banner {
    padding: 20px 24px;
  }
  .cookie-banner__inner {
    display: grid;
    gap: 20px;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__button {
    width: 50%;
  }
}
@media screen and (max-width: 420px) {
  .cookie-banner__actions {
    display: grid;
  }
  .cookie-banner__button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* La transition reste discrète et n'est activée que si les mouvements sont autorisés. */
  .cookie-banner__button {
    transition: background-color 160ms ease, border-color 160ms ease;
  }
}
/*
 * Le même header est écrit dans chaque page HTML.
 * Ce fichier unique conserve néanmoins tous ses styles au même endroit.
 * Les classes is-open sont ajoutées et retirées seulement par js/header.js sur tablette et mobile.
 */
/*
 * Le lien d'évitement reste hors de l'écran pendant une navigation classique.
 * Il apparaît avec la touche Tab et conduit directement au contenu principal.
 */
.skip-link {
  position: absolute;
  top: 8px;
  left: 24px;
  z-index: 100;
  padding: 12px 16px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  background-color: #0b0b0b;
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

.site-header {
  /* sticky conserve la place du header dans la page tout en le gardant visible au défilement. */
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  border-bottom: 1px solid #d1e7ec;
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 1224px;
  min-height: 64px;
  margin: 0 auto;
}

.site-header__brand {
  display: flex;
  align-items: center;
  height: 64px;
  /* Ces deux couleurs reprennent exactement l'identité visuelle de la maquette. */
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 45px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

/*
 * Le fichier du logo contient une zone transparente réservée à son ombre.
 * La marge négative aligne le carré bleu avec le bord du contenu.
 * La translation compense l'espace transparent plus important sous le carré
 * afin que la partie visible du logo soit centrée verticalement dans le header.
 */
.site-header__logo {
  display: block;
  width: 76px;
  height: 74px;
  margin-left: -14px;
  transform: translateY(5px);
}

.site-header__surname {
  color: #d8894f;
}

.site-header__menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  margin-left: auto;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.site-header__menu-line {
  display: block;
  width: 20px;
  height: 3px;
  margin: 3px 0;
  background-color: rgb(7, 143, 167);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Les trois traits deviennent une croix lorsque le menu est ouvert. */
.site-header__menu-button.is-open .site-header__menu-line:first-of-type {
  transform: translateY(6px) rotate(45deg);
}

.site-header__menu-button.is-open .site-header__menu-line:nth-of-type(2) {
  opacity: 0;
}

.site-header__menu-button.is-open .site-header__menu-line:last-of-type {
  transform: translateY(-6px) rotate(-45deg);
}

.site-navigation {
  margin-left: auto;
}

.site-navigation__list {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation__link {
  display: block;
  padding: 19px 0 17px;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-navigation__link:hover,
.site-navigation__link:focus-visible,
.site-navigation__link[aria-current=page] {
  color: rgb(7, 143, 167);
  border-bottom-color: rgb(7, 143, 167);
}

/* Ce lien ouvre le CV dans un nouvel onglet pour permettre sa lecture avant téléchargement. */
.site-navigation__cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  min-height: 42px;
  padding: 8px 18px;
  color: #ffffff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background-color: rgb(7, 143, 167);
  border-radius: 8px;
}

.site-navigation__cv img {
  display: block;
  width: 16px;
  height: 16px;
}

.site-navigation__cv:hover,
.site-navigation__cv:focus-visible {
  background-color: #056f82;
}

.site-header__brand:focus-visible,
.site-header__menu-button:focus-visible,
.site-navigation__link:focus-visible,
.site-navigation__cv:focus-visible {
  outline: 3px solid rgb(7, 143, 167);
  outline-offset: 3px;
}

/* À partir de la tablette, le bouton remplace la navigation horizontale pour éviter qu'elle manque d'espace. */
@media screen and (max-width: 1023px) {
  .site-header__inner {
    width: 100%;
    min-height: 72px;
    padding: 0 40px;
  }
  .site-header__brand {
    font-size: 20px;
    line-height: 30px;
  }
  .site-header__logo {
    width: 54px;
    height: 53px;
    margin-left: -10px;
    transform: translateY(4px);
  }
  .site-header__menu-button {
    display: block;
  }
  .site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin-left: 0;
    background-color: #ffffff;
    border-top: 1px solid #d1e7ec;
    border-bottom: 1px solid #d1e7ec;
    box-shadow: 0 8px 18px rgba(11, 11, 11, 0.08);
  }
  /* Cette classe est posée par JavaScript après un clic sur le bouton du menu. */
  .site-navigation.is-open {
    display: block;
  }
  .site-navigation__list {
    display: block;
    padding: 12px 40px 20px;
  }
  .site-navigation__link {
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 0;
  }
  .site-navigation__link:hover,
  .site-navigation__link:focus-visible,
  .site-navigation__link[aria-current=page] {
    border-bottom-color: transparent;
  }
  .site-navigation__cv {
    width: 100%;
    margin-top: 12px;
  }
}
@media screen and (max-width: 480px) {
  .site-header__inner {
    min-height: 64px;
    padding: 0 24px;
  }
  .site-header__brand {
    font-size: 18px;
    line-height: 27px;
  }
  .site-navigation__list {
    padding-right: 24px;
    padding-left: 24px;
  }
}
/* Les animations sont retirées si l'utilisateur préfère moins de mouvements. */
@media (prefers-reduced-motion: reduce) {
  .site-header__menu-line {
    transition: none;
  }
}
/*
 * Styles propres à la page d'accueil et au footer commun aux pages.
 * Les variables regroupent les couleurs de la maquette afin de les modifier sans chercher chaque valeur.
 */
/* Ce conteneur aligne les différentes sections avec le header. */
.home-container {
  width: calc(100% - 48px);
  max-width: 1224px;
  margin: 0 auto;
}

.text-accent {
  color: #a95016;
}

.section-title {
  margin: 0 0 32px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
}

.section-title span {
  display: block;
}

.section-title--inline span {
  display: inline;
}

.home-section {
  padding: 80px 0;
}

/* Les boutons sont des liens car ils conduisent vers une autre page. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  color: rgb(7, 143, 167);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgb(7, 143, 167);
  border-radius: 8px;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), rgb(7, 143, 167);
}

.button--secondary {
  background-color: #ffffff;
}

.button--light {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.button:hover,
.button:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)), #056f82;
  border-color: #056f82;
}

.button:focus-visible {
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

/* Présentation principale */
.home-hero {
  padding: 82px 0;
  background: linear-gradient(135deg, #f8f3eb 0%, #eef9fb 100%);
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 96px;
  align-items: center;
  /* Le hero est plus étroit que la grille des projets sur la maquette desktop. */
  max-width: 1024px;
}

.home-hero__title {
  margin: 0 0 42px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.home-hero__title span {
  display: block;
}

.home-hero__description {
  max-width: 590px;
  margin: 0 0 42px;
  color: #0b0b0b;
  font-size: 19px;
  line-height: 1.55;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-hero__portrait {
  display: flex;
  justify-content: center;
}

.home-hero__portrait-image {
  display: block;
  /* La hauteur du portrait reste alignée sur le bloc de présentation à gauche. */
  width: 300px;
  max-width: 100%;
  /* Le ratio connu réserve la place du portrait avant son chargement et limite les décalages visuels. */
  aspect-ratio: 398/441;
}

/* Vision business */
.home-vision__inner {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 92px;
  align-items: center;
  /* Cette section reprend les mêmes marges latérales que le hero. */
  max-width: 1024px;
}

.home-vision__illustration {
  display: flex;
  justify-content: center;
}

.home-vision__image {
  display: block;
  width: 420px;
  max-width: 100%;
}

.benefit-list,
.choice-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list {
  display: grid;
  gap: 28px;
}

.benefit-list__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.benefit-list__check {
  display: block;
  width: 20px;
  height: 20px;
  padding: 3px;
  margin-top: 4px;
  border: 2px solid rgb(7, 143, 167);
  border-radius: 50%;
}

.benefit-list h3,
.choice-list h3,
.project-card h3 {
  margin: 0;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 700;
}

.benefit-list h3 {
  font-size: 23px;
}

.benefit-list p,
.choice-list p {
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Réalisations */
.home-projects {
  background-color: #f8f3eb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.project-grid__status {
  grid-column: 1/-1;
  margin: 0;
  text-align: center;
}

.project-card {
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #cbe5ea;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(11, 11, 11, 0.05);
}

.project-card__visual {
  position: relative;
}

.project-card__image {
  display: block;
  width: 100%;
  height: auto;
  /* Les captures 16:9 occupent tout le cadre de la carte, quelle que soit sa largeur. */
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  background-color: #eef9fb;
  border-bottom: 1px solid #cbe5ea;
}

/* Le texte du statut complète la couleur et reste discret dans le contenu de la carte. */
.project-card__status {
  display: inline-block;
  padding: 5px 9px;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 16px;
}

.project-card__status--production {
  background-color: #237a45;
}

.project-card__status--development {
  background-color: #a95016;
}

.project-card__content {
  padding: 24px;
}

.project-card h3 {
  /* Le titre utilise sa hauteur naturelle pour rapprocher la description, même lorsqu'il tient sur une ligne. */
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.project-card__technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 10px;
  list-style: none;
}

/* Les pastilles passent naturellement sur plusieurs lignes lorsque la carte devient plus étroite. */
.project-card__technology {
  padding: 5px 12px;
  color: rgb(7, 143, 167);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  border: 1px solid rgb(7, 143, 167);
  border-radius: 20px;
}

.project-card__description {
  margin: 0;
  line-height: 1.5;
}

.home-projects__action {
  margin-top: 48px;
  text-align: center;
}

/* Pourquoi me choisir */
.home-choice__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 80px;
  align-items: center;
  /* Le contenu reste centré dans la largeur réduite prévue par la maquette. */
  max-width: 1024px;
}

.home-choice__introduction {
  max-width: 700px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.55;
}

.choice-list {
  display: grid;
  gap: 26px;
}

.choice-list__item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.choice-list__icon {
  display: block;
  width: 48px;
  height: 48px;
  padding: 12px;
  background-color: rgb(7, 143, 167);
  border-radius: 10px;
}

.choice-list h3 {
  font-size: 23px;
}

.home-choice__illustration {
  display: flex;
  justify-content: center;
}

.home-choice__image {
  display: block;
  width: 330px;
  max-width: 100%;
}

/* Appel à l'action */
.home-contact {
  padding: 78px 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)), rgb(7, 143, 167);
}

.home-contact__inner {
  max-width: 850px;
}

.home-contact h2 {
  margin: 0 0 22px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 38px;
  line-height: 1.2;
}

.home-contact p {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.55;
}

/* Footer de la page d'accueil */
.site-footer {
  padding: 56px 0;
  background-color: #ffffff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 72px;
  align-items: start;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  /* Le nom conserve les couleurs exactes du logo, comme dans le header. */
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-decoration: none;
}

.site-footer__logo {
  display: block;
  width: 62px;
  margin-left: -11px;
}

.site-footer__surname {
  color: #d8894f;
}

.site-footer__socials,
.site-footer__navigation ul,
.site-footer__legal ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.site-footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgb(7, 143, 167);
  border-radius: 8px;
}

.site-footer__socials img {
  display: block;
  width: 22px;
  height: 22px;
}

.site-footer__navigation li + li {
  margin-top: 10px;
}

/* Les liens légaux restent groupés et faciles à retrouver sur chaque page. */
.site-footer__legal {
  grid-column: 1/-1;
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding-top: 24px;
  border-top: 1px solid #cfd8dc;
}

.site-footer__navigation a,
.site-footer__contact a,
.site-footer__legal a {
  color: #2f3437;
  text-decoration: none;
}

.site-footer__navigation a:hover,
.site-footer__navigation a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: rgb(7, 143, 167);
  text-decoration: underline;
}

.site-footer__contact {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  gap: 10px;
  font-style: normal;
}

/* L'icône permet d'identifier visuellement que le numéro ouvre WhatsApp. */
.site-footer__contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__contact-link img {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-footer__contact p {
  margin: 0;
}

.site-footer a:focus-visible {
  outline: 3px solid rgb(7, 143, 167);
  outline-offset: 3px;
}

/* Sur tablette, les colonnes se resserrent et la grille de projets passe de trois à deux cartes. */
@media screen and (max-width: 1023px) {
  .home-container {
    width: calc(100% - 80px);
  }
  .home-section {
    padding: 68px 0;
  }
  .home-hero {
    padding: 72px 0;
  }
  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 48px;
  }
  .home-hero__title {
    margin-bottom: 24px;
    font-size: 42px;
  }
  .home-hero__description {
    margin-bottom: 24px;
    font-size: 16px;
  }
  .home-hero__portrait-image {
    width: 288px;
  }
  .section-title {
    font-size: 30px;
  }
  .home-vision__inner {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 54px;
  }
  .home-vision__image {
    width: 250px;
  }
  .benefit-list h3,
  .choice-list h3 {
    font-size: 20px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .home-choice__inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 50px;
  }
  .choice-list__item {
    display: block;
  }
  .choice-list__icon {
    display: none;
  }
  .site-footer__inner {
    grid-template-columns: 1.2fr 0.7fr 1.2fr;
    gap: 40px;
  }
  .site-footer__brand {
    font-size: 20px;
    line-height: 27px;
  }
}
/* Sur mobile, les éléments s'empilent pour conserver des textes et des zones cliquables confortables. */
@media screen and (max-width: 600px) {
  .home-container {
    width: calc(100% - 48px);
  }
  .home-section {
    padding: 58px 0;
  }
  .home-hero {
    padding: 46px 0 40px;
  }
  .home-hero__inner,
  .home-vision__inner,
  .home-choice__inner {
    grid-template-columns: 1fr;
  }
  .home-hero__inner {
    gap: 46px;
  }
  .home-hero__title {
    margin-bottom: 24px;
    font-size: 36px;
  }
  .home-hero__description {
    font-size: 16px;
  }
  .home-hero__actions {
    flex-wrap: nowrap;
  }
  .button {
    min-height: 48px;
    padding: 10px 22px;
  }
  .home-hero__portrait-image {
    width: 260px;
  }
  .section-title {
    margin-bottom: 28px;
    font-size: 31px;
  }
  .home-vision__inner {
    gap: 44px;
  }
  .home-vision__image {
    width: 250px;
  }
  .benefit-list {
    gap: 26px;
  }
  .benefit-list h3,
  .choice-list h3 {
    font-size: 20px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-card h3 {
    font-size: 22px;
  }
  .home-choice__inner {
    gap: 48px;
  }
  .home-choice__introduction {
    font-size: 16px;
  }
  .home-choice__image {
    width: 270px;
  }
  .home-contact {
    padding: 58px 0;
  }
  .home-contact h2 {
    font-size: 29px;
  }
  .home-contact p {
    font-size: 16px;
  }
  .site-footer {
    padding: 42px 0;
  }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 36px 24px;
  }
  .site-footer__identity {
    grid-column: 1/-1;
  }
  .site-footer__contact {
    grid-column: 2;
    grid-row: 2;
  }
  .site-footer__legal ul {
    display: grid;
    gap: 10px;
    justify-items: center;
  }
  .site-footer__brand {
    font-size: 18px;
    line-height: 24px;
  }
  /* L'adresse e-mail peut ainsi revenir à la ligne sans élargir la page. */
  .site-footer__contact a {
    overflow-wrap: anywhere;
  }
}
/*
 * Styles propres à la page À propos : hero, filtres et frise chronologique.
 * Les couleurs distinguant formations et expériences restent regroupées pour faciliter leur maintenance.
 */
/* Le même conteneur aligne le hero et la frise avec les marges de la maquette. */
.about-container {
  width: calc(100% - 48px);
  max-width: 1024px;
  margin: 0 auto;
}

.about-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, #f8f3eb 0%, #eef9fb 100%);
}

.about-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 92px;
  align-items: center;
}

.about-hero__title {
  margin: 0 0 32px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
}

.about-hero__title span {
  display: block;
}

.about-hero__title-accent {
  color: #d8894f;
  font-size: 58px;
}

.about-hero__description {
  max-width: 530px;
  margin: 0 0 34px;
  color: #0b0b0b;
  font-size: 18px;
  line-height: 1.55;
}

.about-hero__cv {
  gap: 10px;
}

.about-hero__cv img {
  display: block;
  width: 20px;
  height: 20px;
}

.about-hero__illustration {
  display: flex;
  justify-content: center;
}

.about-hero__image {
  display: block;
  width: 410px;
  max-width: 100%;
}

.about-timeline {
  padding: 64px 0 96px;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.timeline-filters__button {
  min-height: 42px;
  padding: 9px 22px;
  color: rgb(7, 143, 167);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff;
  border: 2px solid rgb(7, 143, 167);
  border-radius: 6px;
}

.timeline-filters__button:hover,
.timeline-filters__button.is-active {
  color: #ffffff;
  background-color: rgb(7, 143, 167);
}

.timeline-filters__button:focus-visible {
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

/* Ce message est affiché seulement si le fichier JSON ne peut pas être chargé. */
.timeline-status {
  margin: 0 0 28px;
  color: #0b0b0b;
  text-align: center;
}

/* La ligne centrale est indépendante des cartes afin de rester continue. */
.timeline-list {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  content: "";
  background-color: rgb(7, 143, 167);
  transform: translateX(-50%);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1fr);
  align-items: center;
  min-height: 236px;
}

.timeline-entry[hidden] {
  display: none;
}

.timeline-entry::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  content: "";
  background-color: #ffffff;
  border: 4px solid rgb(7, 143, 167);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timeline-entry__date {
  z-index: 3;
  grid-column: 2;
  justify-self: center;
  min-width: 94px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 20px;
}

.timeline-entry--training .timeline-entry__date {
  background-color: rgb(7, 143, 167);
}

.timeline-entry--experience .timeline-entry__date {
  background-color: #d8894f;
}

.timeline-card {
  padding: 25px 28px;
  border: 1px solid;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(11, 11, 11, 0.06);
}

.timeline-entry--left .timeline-card {
  grid-column: 1;
  grid-row: 1;
}

.timeline-entry--right .timeline-card {
  grid-column: 3;
  grid-row: 1;
}

.timeline-entry--training .timeline-card {
  background-color: #eef9fb;
  border-color: #b9e1e8;
}

.timeline-entry--experience .timeline-card {
  background-color: #fff5eb;
  border-color: #f1d0b5;
}

.timeline-card h3 {
  margin: 0 0 8px;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.2;
}

.timeline-card p {
  margin: 0;
  line-height: 1.5;
}

.timeline-card__organization {
  margin-bottom: 14px !important;
  color: rgb(7, 143, 167);
  font-weight: 600;
}

.timeline-entry--experience .timeline-card__organization {
  color: #d8894f;
}

/* Sur tablette, la frise reste alternée mais les cartes sont plus compactes. */
@media screen and (max-width: 1023px) {
  .about-container {
    width: calc(100% - 80px);
  }
  .about-hero {
    padding: 66px 0;
  }
  .about-hero__inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }
  .about-hero__title {
    margin-bottom: 24px;
    font-size: 40px;
  }
  .about-hero__title-accent {
    font-size: 46px;
  }
  .about-hero__description {
    margin-bottom: 26px;
    font-size: 16px;
  }
  .about-hero__image {
    width: 280px;
  }
  .about-timeline {
    padding: 58px 0 80px;
  }
  .timeline-filters {
    /* La maquette tablette ne prévoit pas les filtres ; la frise complète reste donc accessible. */
    display: none;
  }
  .timeline-entry {
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    min-height: 250px;
  }
  .timeline-entry__date {
    min-width: 80px;
    padding: 7px 8px;
    font-size: 12px;
  }
  .timeline-card {
    padding: 20px;
  }
  .timeline-card h3 {
    font-size: 20px;
  }
  .timeline-card p {
    font-size: 14px;
  }
}
/* Sur mobile, toutes les cartes passent à droite d'une ligne unique. */
@media screen and (max-width: 600px) {
  .about-container {
    width: calc(100% - 48px);
  }
  .about-hero {
    padding: 44px 0 38px;
  }
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-hero__title {
    font-size: 36px;
  }
  .about-hero__title-accent {
    font-size: 41px;
  }
  .about-hero__description {
    font-size: 16px;
  }
  .about-hero__cv {
    width: 100%;
  }
  .about-hero__image {
    width: 255px;
  }
  .about-timeline {
    padding: 50px 0 66px;
  }
  .timeline-list {
    padding-left: 24px;
  }
  .timeline-list::before {
    left: 6px;
    transform: none;
  }
  .timeline-entry {
    display: block;
    min-height: 0;
    margin-bottom: 28px;
  }
  .timeline-entry::before {
    top: 18px;
    left: -18px;
    transform: translate(-50%, -50%);
  }
  .timeline-entry__date {
    position: relative;
    display: inline-block;
    min-width: 94px;
    margin: 0 0 -12px 16px;
    font-size: 13px;
  }
  .timeline-card {
    padding: 28px 18px 20px;
  }
  .timeline-card h3 {
    font-size: 20px;
  }
  .timeline-card p {
    font-size: 14px;
  }
}
/*
 * Styles propres à la page Compétences, dont les cartes sont générées depuis skills.json.
 * Le SCSS décrit leur apparence sans dépendre du nombre de catégories ou de cartes présentes.
 */
/* Ce conteneur aligne les cartes sur la même largeur que les autres pages. */
.skills-container {
  width: calc(100% - 48px);
  max-width: 1224px;
  margin: 0 auto;
}

.skills-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, #f8f3eb 0%, #eef9fb 100%);
}

.skills-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 92px;
  align-items: center;
  max-width: 1024px;
}

.skills-hero__title {
  margin: 0 0 32px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
}

.skills-hero__title span {
  display: block;
}

.skills-hero__title-accent {
  color: #a95016;
  font-size: 58px;
}

.skills-hero__description {
  max-width: 560px;
  margin: 0;
  color: #0b0b0b;
  font-size: 18px;
  line-height: 1.55;
}

.skills-hero__illustration {
  display: flex;
  justify-content: center;
}

.skills-hero__image {
  display: block;
  width: 400px;
  max-width: 100%;
}

.skills-status {
  width: calc(100% - 48px);
  max-width: 900px;
  padding: 56px 0;
  margin: 0 auto;
  text-align: center;
}

.skills-status:empty {
  display: none;
}

.skills-category {
  padding: 54px 0 58px;
  background-color: #ffffff;
}

/* Une section sur deux reprend le fond beige de la maquette. */
.skills-category:nth-child(even) {
  background-color: #f8f3eb;
}

.skills-category__title {
  margin: 0 0 42px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.skills-category__title-accent {
  color: #a95016;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d5e7eb;
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(11, 11, 11, 0.07);
}

.skill-card__highlight {
  position: absolute;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #0b0b0b;
  /* Une hauteur de ligne courte centre le symbole dans la bulle sans modifier sa taille. */
  font-size: 17px;
  line-height: 1;
  background-color: #f6c900;
  border: 1px solid #d6aa00;
  border-radius: 50%;
}

.skill-card__icon-background {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #eef5f7;
  border-radius: 8px;
}

.skill-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-card__name {
  margin: 0;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Le cercle est créé en CSS ; le HTML ne reçoit donc aucun style en ligne. */
.skill-card__level {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #075f70;
  font-size: 12px;
  font-weight: 700;
  background: conic-gradient(#16b995 0deg, #e8f4f7 0deg);
  border-radius: 50%;
}

.skill-card__level::before {
  position: absolute;
  width: 42px;
  height: 42px;
  content: "";
  background-color: #ffffff;
  border-radius: 50%;
}

.skill-card__level-value {
  position: relative;
  z-index: 1;
}

.skill-card__level--0 {
  background: conic-gradient(#e8f4f7 0deg 360deg);
}

.skill-card__level--50 {
  background: conic-gradient(#16b995 0deg 180deg, #e8f4f7 180deg 360deg);
}

.skill-card__level--55 {
  background: conic-gradient(#16b995 0deg 198deg, #e8f4f7 198deg 360deg);
}

.skill-card__level--65 {
  background: conic-gradient(#16b995 0deg 234deg, #e8f4f7 234deg 360deg);
}

.skill-card__level--70 {
  background: conic-gradient(#9b51e0 0deg 252deg, #e8f4f7 252deg 360deg);
}

.skill-card__level--75 {
  background: conic-gradient(#9b51e0 0deg 270deg, #e8f4f7 270deg 360deg);
}

.skill-card__level--80 {
  background: conic-gradient(#9b51e0 0deg 288deg, #e8f4f7 288deg 360deg);
}

.skill-card__level--unknown {
  color: #2f3437;
  background: conic-gradient(#e8f4f7 0deg 360deg);
}

/* Sur tablette, la grille garde deux cartes par ligne pour conserver des icônes bien visibles. */
@media screen and (max-width: 1023px) {
  .skills-container {
    width: calc(100% - 80px);
  }
  .skills-hero {
    padding: 66px 0;
  }
  .skills-hero__inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }
  .skills-hero__title {
    margin-bottom: 24px;
    font-size: 40px;
  }
  .skills-hero__title-accent {
    font-size: 46px;
  }
  .skills-hero__description {
    font-size: 16px;
  }
  .skills-hero__image {
    width: 280px;
  }
  .skills-category {
    padding: 46px 0 50px;
  }
  .skills-category__title {
    margin-bottom: 34px;
    font-size: 29px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
/* Sur mobile, une seule carte par ligne évite de réduire excessivement le texte et les indicateurs de niveau. */
@media screen and (max-width: 600px) {
  .skills-container {
    width: calc(100% - 48px);
  }
  .skills-hero {
    padding: 44px 0 38px;
  }
  .skills-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .skills-hero__title {
    font-size: 36px;
  }
  .skills-hero__title-accent {
    font-size: 41px;
  }
  .skills-hero__description {
    font-size: 16px;
  }
  .skills-hero__image {
    width: 245px;
  }
  .skills-category {
    padding: 38px 0 42px;
  }
  .skills-category__title {
    margin-bottom: 30px;
    font-size: 24px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .skill-card {
    grid-template-columns: 54px minmax(0, 1fr) 50px;
    min-height: 80px;
    padding: 11px 12px;
  }
  .skill-card__icon-background {
    width: 54px;
    height: 54px;
  }
  .skill-card__icon {
    width: 38px;
    height: 38px;
  }
  .skill-card__level {
    width: 48px;
    height: 48px;
    font-size: 11px;
  }
  .skill-card__level::before {
    width: 38px;
    height: 38px;
  }
}
/*
 * Styles propres à la page Contact : formulaire Formspree, informations et illustration de localisation.
 * Les couleurs sont regroupées pour rester cohérentes avec les autres pages sans style écrit dans le HTML.
 */
/* Ce conteneur conserve les mêmes marges que les autres pages du portfolio. */
.contact-container {
  width: calc(100% - 48px);
  max-width: 1224px;
  margin: 0 auto;
}

.contact-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, #f8f3eb 0%, #eef9fb 100%);
}

.contact-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 92px;
  align-items: center;
  max-width: 1024px;
}

.contact-hero__title {
  margin: 0 0 32px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
}

.contact-hero__title span {
  display: block;
}

.contact-hero__title-accent {
  color: #d8894f;
  font-size: 58px;
}

.contact-hero__description {
  max-width: 590px;
  margin: 0;
  color: #0b0b0b;
  font-size: 18px;
  line-height: 1.55;
}

.contact-hero__illustration {
  display: flex;
  justify-content: center;
}

.contact-hero__image {
  display: block;
  width: 370px;
  max-width: 100%;
}

.contact-content {
  padding: 86px 0 96px;
}

.contact-content__layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-form,
.contact-card {
  background-color: #ffffff;
  border: 1px solid #cbe5ea;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(11, 11, 11, 0.06);
}

.contact-form {
  padding: 34px 32px 38px;
}

.contact-form__title {
  margin: 0 0 8px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-form__title span {
  color: #d8894f;
}

.contact-form__required {
  margin: 0 0 26px;
  color: #2f3437;
  font-size: 13px;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field--full {
  grid-column: 1/-1;
}

.contact-field label {
  color: #0b0b0b;
  font-weight: 600;
}

.contact-field__optional {
  display: block;
  margin-top: 5px;
  color: #2f3437;
  font-size: 13px;
  font-weight: 400;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  color: #0b0b0b;
  font: inherit;
  background-color: #ffffff;
  border: 1px solid #cbe5ea;
  border-radius: 7px;
}

.contact-field input,
.contact-field select {
  min-height: 52px;
  padding: 11px 14px;
}

.contact-field select {
  cursor: pointer;
}

.contact-field textarea {
  min-height: 178px;
  padding: 15px 14px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #777f83;
  opacity: 1;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid rgb(7, 143, 167);
  outline-offset: 2px;
  border-color: rgb(7, 143, 167);
}

.contact-form__privacy {
  margin: -6px 0 0;
  color: #2f3437;
  font-size: 13px;
  line-height: 1.45;
}

/* Le lien vers la politique de confidentialité reste repérable au clavier. */
.contact-form__privacy a {
  color: rgb(7, 143, 167);
}

.contact-form__privacy a:focus-visible {
  outline: 3px solid rgb(7, 143, 167);
  outline-offset: 3px;
}

.contact-form__submit {
  min-height: 54px;
  padding: 12px 24px;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), rgb(7, 143, 167);
  border: 2px solid rgb(7, 143, 167);
  border-radius: 7px;
  box-shadow: 0 6px 12px rgba(7, 143, 167, 0.18);
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)), #056f82;
  border-color: #056f82;
}

.contact-form__submit:focus-visible {
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

.contact-sidebar {
  display: grid;
  gap: 24px;
}

.contact-card {
  padding: 30px 28px;
}

.contact-card h2 {
  margin: 0 0 25px;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-information,
.contact-benefits {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-information {
  display: grid;
  gap: 20px;
}

.contact-information li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.contact-information li > span:last-child {
  display: grid;
  gap: 4px;
}

.contact-information__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgb(7, 143, 167);
  border-radius: 8px;
}

.contact-information__icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.contact-information strong {
  font-size: 14px;
}

.contact-information a {
  color: #2f3437;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-information a:hover,
.contact-information a:focus-visible {
  color: rgb(7, 143, 167);
  text-decoration: underline;
}

.contact-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 26px;
  color: rgb(7, 143, 167);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgb(7, 143, 167);
  border-radius: 7px;
}

/* Le bouton WhatsApp est visuellement prioritaire sans changer la couleur de référence du site. */
.contact-card__link--primary {
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), rgb(7, 143, 167);
}

.contact-card__whatsapp-icon {
  display: block;
  width: 18px;
  height: 18px;
  /* L'icône source est bleue : ce filtre la rend blanche sur le fond bleu du bouton. */
  filter: brightness(0) invert(1);
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)), #056f82;
  border-color: #056f82;
}

.contact-card__link:focus-visible,
.contact-information a:focus-visible {
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

.contact-benefits {
  display: grid;
  gap: 13px;
}

.contact-benefits li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  line-height: 1.35;
}

.contact-benefits li span {
  color: rgb(7, 143, 167);
  font-weight: 700;
}

.contact-location {
  padding: 80px 0 96px;
  background: linear-gradient(135deg, #eef9fb 0%, #f8f3eb 100%);
}

.contact-location__inner {
  text-align: center;
}

.contact-location h2 {
  margin: 0 0 14px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
}

.contact-location h2 span {
  color: #d8894f;
}

.contact-location__profession {
  margin: 0 0 48px;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

/* L'image conserve le style doux de la maquette tout en restant légère et sans dépendance externe. */
.contact-map {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border: 1px solid #cbe5ea;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(11, 11, 11, 0.05);
}

/* Sur tablette, le formulaire et les informations s'empilent pour préserver la largeur des champs. */
@media screen and (max-width: 1023px) {
  .contact-container {
    width: calc(100% - 80px);
  }
  .contact-hero {
    padding: 62px 0;
  }
  .contact-hero__inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 44px;
  }
  .contact-hero__title {
    margin-bottom: 24px;
    font-size: 40px;
  }
  .contact-hero__title-accent {
    font-size: 46px;
  }
  .contact-hero__description {
    font-size: 16px;
  }
  .contact-hero__image {
    width: 260px;
  }
  .contact-content {
    padding: 50px 0 60px;
  }
  .contact-content__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-form {
    padding: 28px 24px 34px;
  }
  .contact-form__title {
    font-size: 32px;
    text-align: center;
  }
  .contact-form__submit {
    justify-self: center;
    min-width: 190px;
  }
  .contact-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .contact-card {
    padding: 24px 22px;
  }
  .contact-information li {
    display: block;
  }
  .contact-information__icon,
  .contact-card__link {
    display: none;
  }
  /* Le bouton WhatsApp reste une action de contact utile sur les petits écrans. */
  .contact-card__link--primary {
    display: flex;
  }
  .contact-location {
    padding: 58px 0 68px;
  }
  .contact-location h2 {
    font-size: 32px;
  }
  .contact-location__profession {
    margin-bottom: 34px;
    font-size: 20px;
  }
  .contact-map {
    height: 265px;
  }
}
/* Sur mobile, chaque champ prend toute la largeur afin de faciliter la saisie tactile. */
@media screen and (max-width: 600px) {
  .contact-container {
    width: calc(100% - 48px);
  }
  .contact-hero {
    padding: 44px 0 40px;
  }
  .contact-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact-hero__title {
    margin-bottom: 24px;
    font-size: 35px;
  }
  .contact-hero__title-accent {
    font-size: 41px;
  }
  .contact-hero__description {
    font-size: 15px;
  }
  .contact-hero__image {
    width: 245px;
  }
  .contact-content {
    padding: 48px 0 58px;
  }
  .contact-form {
    padding: 24px 18px 28px;
  }
  .contact-form__title {
    font-size: 27px;
  }
  .contact-form__fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-field--full {
    grid-column: auto;
  }
  .contact-field input,
  .contact-field select {
    min-height: 50px;
  }
  .contact-field textarea {
    min-height: 150px;
  }
  .contact-form__submit {
    width: 100%;
  }
  .contact-sidebar {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-card {
    padding: 24px 20px;
  }
  .contact-card h2 {
    font-size: 23px;
  }
  .contact-location {
    padding: 50px 0 58px;
  }
  .contact-location h2 {
    font-size: 28px;
  }
  .contact-location__profession {
    margin-bottom: 30px;
    font-size: 17px;
  }
  .contact-map {
    height: 225px;
  }
}
/*
 * Styles propres à la page Projets : filtres et cartes créées depuis projects.json.
 * Le rendu reste identique quel que soit le nombre de projets ajouté dans le fichier de données.
 */
/* Le même conteneur aligne le hero, les cartes et l'appel à l'action. */
.projects-container {
  width: calc(100% - 48px);
  max-width: 1224px;
  margin: 0 auto;
}

.projects-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, #f8f3eb 0%, #eef9fb 100%);
}

.projects-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 92px;
  align-items: center;
  max-width: 1024px;
}

.projects-hero__title {
  margin: 0 0 32px;
  color: rgb(7, 143, 167);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
}

.projects-hero__title span {
  display: block;
}

.projects-hero__title-accent {
  color: #d8894f;
  font-size: 58px;
}

.projects-hero__description {
  max-width: 570px;
  margin: 0;
  color: #0b0b0b;
  font-size: 18px;
  line-height: 1.55;
}

/* Le bouton reprend exactement le bleu du logo et des éléments principaux. */
.projects-hero__github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 22px;
  margin-top: 28px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background-color: rgb(7, 143, 167);
  border: 2px solid rgb(7, 143, 167);
  border-radius: 8px;
}

.projects-hero__github-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.projects-hero__github:hover,
.projects-hero__github:focus-visible {
  background-color: #056f82;
  border-color: #056f82;
}

.projects-hero__github:focus-visible {
  outline: 3px solid rgb(7, 143, 167);
  outline-offset: 3px;
}

.projects-hero__illustration {
  display: flex;
  justify-content: center;
}

.projects-hero__image {
  display: block;
  width: 370px;
  max-width: 100%;
}

.projects-listing {
  padding: 58px 0 96px;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.projects-filters:empty {
  display: none;
}

.projects-filters__button {
  min-height: 44px;
  padding: 9px 22px;
  color: rgb(7, 143, 167);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff;
  border: 2px solid rgb(7, 143, 167);
  border-radius: 8px;
}

.projects-filters__button:hover,
.projects-filters__button:focus-visible,
.projects-filters__button.is-active {
  color: #ffffff;
  background-color: rgb(7, 143, 167);
}

.projects-filters__button:focus-visible {
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

.projects-status,
.projects-noscript {
  margin: 0 0 30px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 32px;
}

.projects-card {
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #cbe5ea;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(11, 11, 11, 0.06);
}

.projects-card[hidden] {
  display: none;
}

.projects-card__visual {
  position: relative;
}

.projects-card__image {
  display: block;
  width: 100%;
  height: auto;
  /* Le ratio des captures remplit toute la largeur sans conserver l'ancien cadre intérieur bleu. */
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  background-color: #eef9fb;
  border-bottom: 1px solid #cbe5ea;
}

.projects-card__featured {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  margin: 0;
}

.projects-card__featured img {
  display: block;
  width: 32px;
  height: 32px;
}

/* Le statut reste discret entre les technologies et le titre, tout en étant identifiable par sa couleur. */
.projects-card__status {
  display: inline-block;
  padding: 5px 9px;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 16px;
}

.projects-card__status--production {
  background-color: #237a45;
}

.projects-card__status--development {
  background-color: #a95016;
}

.projects-card__content {
  padding: 24px;
}

.projects-card__technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 10px;
  list-style: none;
}

/* Chaque technologie est isolée dans une pastille pour faciliter la lecture et le retour à la ligne. */
.projects-card__technology {
  padding: 5px 12px;
  color: #075f70;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #a9dce5;
  border-radius: 20px;
}

.projects-card h3 {
  /* Le titre utilise sa hauteur naturelle afin de ne pas créer un grand vide avant la description. */
  margin: 0 0 8px;
  color: #0b0b0b;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}

.projects-card__description {
  margin: 0;
  line-height: 1.5;
}

.projects-contact {
  padding: 72px 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)), rgb(7, 143, 167);
}

.projects-contact__inner {
  max-width: 900px;
}

.projects-contact h2 {
  margin: 0 0 24px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
}

.projects-contact p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
}

.projects-contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 28px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.12);
  border: 2px solid #ffffff;
  border-radius: 8px;
}

.projects-contact__link:hover,
.projects-contact__link:focus-visible {
  color: #ffffff;
  background-color: #056f82;
  border-color: #056f82;
}

.projects-contact__link:focus-visible {
  outline: 3px solid #0b0b0b;
  outline-offset: 3px;
}

/* Sur tablette, les filtres sont masqués comme sur la maquette et toutes les cartes restent visibles. */
@media screen and (max-width: 1023px) {
  .projects-container {
    width: calc(100% - 80px);
  }
  .projects-hero {
    padding: 62px 0;
  }
  .projects-hero__inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 44px;
  }
  .projects-hero__title {
    margin-bottom: 24px;
    font-size: 40px;
  }
  .projects-hero__title-accent {
    font-size: 46px;
  }
  .projects-hero__description {
    font-size: 16px;
  }
  .projects-hero__image {
    width: 260px;
  }
  .projects-listing {
    padding: 50px 0 64px;
  }
  /* Les filtres ne figurent pas sur les maquettes tablette et mobile. */
  .projects-filters {
    display: none;
  }
  /* Les filtres étant masqués, cette règle garantit que toutes les cartes restent visibles après un redimensionnement. */
  .projects-card[hidden] {
    display: block;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .projects-card__content {
    padding: 20px 18px 24px;
  }
  .projects-card h3 {
    font-size: 21px;
  }
  .projects-contact {
    padding: 56px 0;
  }
  .projects-contact h2 {
    font-size: 31px;
  }
}
/* Sur mobile, la grille passe à une colonne pour laisser suffisamment de place au contenu de chaque carte. */
@media screen and (max-width: 600px) {
  .projects-container {
    width: calc(100% - 48px);
  }
  .projects-hero {
    padding: 44px 0 40px;
  }
  .projects-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .projects-hero__title {
    margin-bottom: 24px;
    font-size: 35px;
  }
  .projects-hero__title-accent {
    font-size: 41px;
  }
  .projects-hero__description {
    font-size: 15px;
  }
  .projects-hero__image {
    width: 245px;
  }
  .projects-listing {
    padding: 48px 0 56px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .projects-card h3 {
    font-size: 21px;
  }
  .projects-contact {
    padding: 48px 0;
  }
  .projects-contact h2 {
    font-size: 28px;
  }
  .projects-contact p {
    font-size: 15px;
  }
}
/*
 * Les pages légales partagent une présentation volontairement sobre.
 * Une largeur de lecture limitée rend les informations longues plus confortables
 * à consulter, quel que soit le format d'écran.
 */
.legal-page {
  padding: 72px 0;
  background-color: #f7fbfc;
}

.legal-container {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 16px;
  color: #078fa7;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 44px;
  line-height: 1.1;
}

.legal-page__introduction {
  max-width: 720px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.6;
}

.legal-page__section {
  padding: 28px;
  margin-top: 20px;
  background-color: #ffffff;
  border: 1px solid #c8e4e9;
  border-radius: 10px;
}

/* L'ancre Analytics reste visible sous le header sticky après un clic depuis le bandeau. */
.legal-page__section[id] {
  scroll-margin-top: 88px;
}

.legal-page h2 {
  margin: 0 0 16px;
  color: #2f3437;
  font-size: 24px;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
}

.legal-page p:last-child,
.legal-page ul:last-child {
  margin-bottom: 0;
}

.legal-page a {
  color: #057d92;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  color: #045d6c;
}

.legal-page a:focus-visible {
  outline: 3px solid #078fa7;
  outline-offset: 3px;
}

@media screen and (max-width: 600px) {
  /* Sur mobile, des cartes plus compactes évitent de réduire la taille du texte. */
  .legal-page {
    padding: 48px 0;
  }
  .legal-page h1 {
    font-size: 36px;
  }
  .legal-page__introduction {
    font-size: 16px;
  }
  .legal-page__section {
    padding: 22px;
  }
}
