/*
Theme Name: Mon Portfolio
Author: Théo Charlot
Description: - Mon thème personnalisé pour la création de mon portfolio
Version: 0.0.1
*/

/* ----- Reset ----- */

html,
body {
  border: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
address,
big,
cite,
code,
em,
font,
img,
small,
strike,
sub,
sup,
li,
fieldset,
form,
label,
legend,
button,
table,
caption,
tr,
th,
td {
  border: none;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
}

blockquote::before,
blockquote::after {
  content: "";
}

body {
  box-sizing: border-box;
  font-family: "Lexend Deca", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: rgb(18 17 17);
  color: #000000;
  overflow-x: hidden;
  /* évite un débordement horizontal */
}

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

#site-content {
  overflow: hidden;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  word-break: normal;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  right: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

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

/* ----- Typographie ----- */

h1 {
  font-size: 40px;
  margin-top: 10px;
  margin-bottom: 15px;
  color: whitesmoke;
}

h2 {
  font-size: 30px;
  margin-top: 10px;
  margin-bottom: 15px;
  justify-content: center;
  display: flex;
  color: whitesmoke;
}

h3 {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

p {
  margin-top: 5px;
  margin-bottom: 10px;
}

/* ----- Components ----- */

.button {
  color: #ffffff;
  background-color: #000000;
  border: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  display: inline-block;
}

/* ----- Global ----- */

.section-inner {
  width: calc(100% - 2rem);
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
  box-sizing: border-box;
}


/* ----- Navbar ----- */

.navbar {
  display: flex;
  flex-direction: column;
  /* Aligne les éléments verticalement sur mobile */
  justify-content: center;
  /* Centre verticalement */
  align-items: center;
  /* Centre horizontalement TOUS les éléments (titre, liens, recherche) */
  padding: 15px 30px;
  background-color: #121212;
  color: #ffffff;
  border-bottom: 1px solid #333;
  margin: 0 auto;
  /* Force le centrage du bloc lui-même */
  width: 100%;
  box-sizing: border-box;
  /* Évite que le padding ne fasse déborder la barre */
  text-align: center;
}

@media screen and (min-width: 768px) {
  .navbar {
    flex-direction: row;
    /* Repasse en ligne sur PC */
    justify-content: space-between;
    /* Écarte le titre à gauche et les liens à droite */
    text-align: left;
  }
}

/* Menu */
.main-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-menu li {
  list-style: none;
  margin-right: 30px;
}

.main-menu li:last-child {
  margin-right: 0;
}

.main-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: #ffcc00;
  /* couleur au survol */
}

/* Formulaire de recherche */
.search-form {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 30px;
  overflow: hidden;
}

.search-form input[type="text"] {
  border: none;
  padding: 8px 15px;
  background: transparent;
  color: #fff;
  width: 180px;
  outline: none;
}

.search-form button {
  border: none;
  background-color: #ffcc00;
  color: #000;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  border-left: 1px solid #333;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #e6b800;
}

/* Responsive */
@media (max-width: 768px) {
  .main-menu {
    flex-direction: column;
    width: 100%;
  }

  .main-menu li {
    margin: 10px 0;
  }

  .search-form {
    width: 100%;
    margin-top: 10px;
  }

  .search-form input[type="text"] {
    width: 100%;
  }
}

/* ----- Footer ----- */

footer {
  background-color: #121212;
  color: #ccc;
  padding: 30px 0;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer Left */
.footer-left p {
  margin: 0;
}

/* Footer Center - Navigation */
.footer-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 0 15px;
}

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #ffcc00;
}

/* Footer Right - Social */
.social-icons {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.social-icons li {
  margin-left: 15px;
}

.social-icons a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffcc00;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-menu,
  .social-icons {
    margin-top: 15px;
    gap: 15px;
  }

  .footer-menu li,
  .social-icons li {
    margin: 10px 0;
  }
}


/* ----- Post ----- */

.post {
  padding-top: 30px;
}

/* Conteneur général des projets */
.section-inner.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Grille adaptable */
  gap: 20px;
  /* Espacement entre les cartes */
  padding: 20px;
  background-color: #f9f9f9;
  /* Couleur de fond pour démarquer la section */
  border-radius: 8px;
  /* Coins arrondis pour la section globale */
  margin-bottom: 20px;
}

/* Style des cartes des projets */
.section-inner.post-list .post {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
}

.section-inner.post-list .post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Image du projet */
.section-inner.post-list .post img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
  object-fit: cover;
  max-height: 200px;
  /* Limite la hauteur pour uniformiser */
}

/* Titre du projet */
.section-inner.post-list .post h2 {
  font-size: 18px;
  color: #333;
  margin: 15px 0;
  font-weight: bold;
  text-transform: uppercase;
}

/* Termes du projet */
.section-inner.post-list .post div {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
  font-style: italic;
}

/* Bouton */
.section-inner.post-list .post .button {
  display: inline-block;
  background-color: black;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.section-inner.post-list .post .button:hover {
  background-color: #444;
}

/* Pagination */
.section-inner.post-list-pagination {
  text-align: center;
  margin-top: 30px;
}

.section-inner.post-list-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  font-size: 14px;
  color: black;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section-inner.post-list-pagination .page-numbers:hover {
  background-color: black;
  color: white;
}

.section-inner.post-list-pagination .current {
  background-color: black;
  color: white;
  font-weight: bold;
  border-color: black;
}


/* ----- Archive ----- */

.post-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  column-gap: 20px;
  row-gap: 20px;
}

.post-list-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  font-size: 18px;
}

.post-list-pagination a {
  color: #000000;
  text-decoration: none;
}

/* ---- Page d'accueil ---- */

.home-hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.home-hero-background {
  height: 100%;
  width: 100%;
  position: absolute;
  filter: blur(3px);
}

.home-hero-background::after {
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: black;
  opacity: 20%;
  top: 0;
  left: 0;
}

.home-hero-background-image {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
  max-width: none;
}

.home-hero-content {
  height: 100%;
  width: 100%;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.button-cta {
  background-color: #fbeee0;
  border: 2px solid #422800;
  border-radius: 30px;
  box-shadow: #422800 4px 4px 0 0;
  color: #422800;
  cursor: pointer;
  display: inline-block;
  margin-top: 2%;
  font-weight: 600;
  font-size: 18px;
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-cta:hover {
  background-color: #fff;
}

.button-cta:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

@media (min-width: 768px) {
  .button-cta {
    min-width: 120px;
    padding: 0 25px;
  }
}

.arrow:hover {
  opacity: 0.7;
}



/* On s'assure que le parent est le référentiel */
.home-hero {
  position: relative;
  height: 100vh;
  /* S'assure que la section prend toute la hauteur de l'écran */
  display: flex;
  align-items: center;
  /* Centre le titre/bouton verticalement */
  justify-content: center;
}

/* Le conteneur ne change pas */
.scroll-indicator {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* On enlève le transform d'ici car l'animation va le gérer */
.arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 3px solid #f2ead3;
  border-right: 3px solid #f2ead3;
  cursor: pointer;
  animation: bounce 2s infinite;
}

/* On répète le rotate(45deg) à CHAQUE étape pour qu'il ne saute pas */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  40% {
    transform: translateY(-10px) rotate(45deg);
  }

  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* Optionnel : défilement fluide (Smooth Scroll) */
html {
  scroll-behavior: smooth;
}

.a-propos-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  /* espace entre la photo et le texte */
  margin: 50px 0;
}

.a-propos-photo img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.a-propos-texte {
  max-width: 600px;
}

.a-propos-texte h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: whitesmoke;
}

.a-propos-texte p {
  font-size: 1.1em;
  line-height: 1.6;
  color: whitesmoke;
  /* SUPPRESSION du min-width qui cassait tout */
  width: 100%;
  max-width: 100%;
  /* S'assure de ne jamais dépasser le parent */
}

/* On rend la section entière flexible pour le mobile */
@media screen and (max-width: 768px) {
  .a-propos-section {
    flex-direction: column;
    /* Empile la photo et le texte verticalement */
    text-align: center;
    /* Centre le texte pour un meilleur look mobile */
    gap: 20px;
    padding: 0 20px;
    /* Ajoute une marge de sécurité sur les côtés */
  }

  .a-propos-photo img {
    width: 200px;
    /* On réduit un peu la photo sur mobile */
  }
}

/* ----- Affichage taxonomy ----- */

/* Conteneur principal des genres */
.section-inner-tax ul {
  display: grid;
  /* CORRECTION : On utilise auto-fill pour que les colonnes passent à la ligne toutes seules */
  /* On baisse le minmax à 250px (ou moins) pour que ça rentre sur les petits écrans */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 15px;
  /* Ajout d'un padding pour que les blocs ne collent pas aux bords de l'écran */
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
}

/* On force le conteneur à ne jamais dépasser 100% de la largeur de l'écran */
.section-inner-tax {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .section-inner-tax ul {
    /* Sur mobile vertical, on passe à une colonne pleine largeur */
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-inner-tax ul li {
    height: 150px;
    /* On peut réduire un peu la hauteur sur mobile pour gagner de la place */
  }
}

/* Chaque genre (élément de la grille) */
.section-inner-tax ul li {
  position: relative;
  height: 200px;
  /* Hauteur fixe */
  background-size: cover;
  /* Image de fond couvrant tout l'espace */
  background-position: center;
  /* Centre l'image */
  border-radius: 8px;
  /* Coins arrondis */
  overflow: hidden;
  /* Évite les débordements */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Légère ombre */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Texte centré et visible sur le genre */
.section-inner-tax ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* Prend toute la hauteur */
  width: 100%;
  /* Prend toute la largeur */
  text-align: center;
  text-transform: uppercase;
  /* Texte en majuscules */
  color: white;
  /* Couleur du texte */
  text-decoration: none;
  /* Pas de soulignement */
  background-color: rgba(0, 0, 0, 0.3);
  /* Fond semi-transparent */
  font-size: 18px;
  /* Taille du texte */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* Effets au survol */
.section-inner-tax ul li:hover {
  transform: translateY(-5px);
  /* Légère élévation */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.section-inner-tax ul li a:hover {
  background-color: rgba(0, 0, 0, 0.7);
  /* Fond plus sombre au survol */
}



/* ---- Page single projet ---- */

/* Centrage principal */
.post.section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  /* Largeur max pour éviter une trop grande largeur */
  margin: 0 auto;
  /* Centrer le conteneur */
  padding: 20px;
  text-align: center;
  /* Centrer le texte */
}

/* Image principale */
.post.section-inner img {
  max-width: 100%;
  /* Ajuste à la largeur du conteneur */
  height: auto;
  border-radius: 10px;
  /* Coins arrondis (optionnel) */
  margin-bottom: 20px;
}

/* Titre */
.post-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 20px 0;
}

/* Texte descriptif */

.post.section-inner p {
  font-size: 1rem;
  line-height: 1.6;
  color: whitesmoke;
  margin-bottom: 15px;
}

/* Vidéo */
.video {
  position: relative;
  padding-bottom: 56.25%;
  /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  /* Centrer la vidéo */
  margin-bottom: 20px;
  width: 100%;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 20px 0;
  border-radius: 8px;
  /* Coins arrondis pour la vidéo */
}

/* Conteneur pour l'image (si elle est générée directement après la vidéo) */
.post.section-inner img {
  /* Ajoute une marge en haut pour séparer l'image de la vidéo précédente */
  margin-top: 30px;

  /* Assure que l'image ne dépasse pas la zone de contenu (déjà bien configuré dans votre CSS global) */
  max-width: 100%;
  height: auto;

  /* Mise en forme simple pour mettre en valeur l'image de produit */
  border-radius: 8px;
  /* Coins légèrement arrondis */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  /* Ombre légère pour effet de profondeur */
}

/* Lien d'image */
.post.section-inner a {
  color: #0073e6;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 20px;
}

.post.section-inner a:hover {
  text-decoration: underline;
}


/* ----- Formulaire de contact ----- */

.wpcf7-form {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.contact.section-inner p {
  font-size: 1rem;
  line-height: 1.6;
  color: black;
  margin-bottom: 15px;
}

.contact.section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  /* Largeur max pour éviter une trop grande largeur */
  margin: 0 auto;
  /* Centrer le conteneur */
  padding: 20px;
  text-align: center;
  /* Centrer le texte */
}

.contact.section-inner img {
  max-width: 100%;
  /* Ajuste à la largeur du conteneur */
  height: auto;
  border-radius: 10px;
  /* Coins arrondis (optionnel) */
  margin-bottom: 20px;
}


/* Titres du formulaire */
.wpcf7-form h1,
.wpcf7-form h2,
.wpcf7-form h3 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Champs de texte */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

/* Focus sur les champs */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}

/* Boutons */
.wpcf7-form input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background-color: #ffcc00;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #ffcc00;
  box-shadow: 0 5px 10px rgba(0, 91, 181, 0.2);
}

/* Checkbox et texte associé */
.wpcf7-form input[type="checkbox"] {
  margin-right: 10px;
}

.wpcf7-form .wpcf7-list-item-label {
  display: inline-block;
  font-size: 14px;
  color: #555;
}

/* Messages d'erreur et de validation */
.wpcf7-not-valid-tip {
  color: red;
  font-size: 14px;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  border-radius: 5px;
}

.wpcf7-mail-sent-ok {
  color: #28a745;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.wpcf7-mail-sent-ng {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* Lien vers la politique de confidentialité */
.wpcf7-form p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.wpcf7-form a {
  color: #0073e6;
  text-decoration: none;
}

.wpcf7-form a:hover {
  text-decoration: underline;
}


/* ----- Media queries ----- */

@media (min-width: 768px) {

  .section-inner {
    max-width: 748px;
  }
}

@media (min-width: 992px) {

  .section-inner {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {

  .section-inner {
    max-width: 1180px;
  }
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.politique-content {
  color: whitesmoke;
}

.mentions-content {
  color: whitesmoke;
}

/* ====================================
   STYLES SPÉCIFIQUES A LA PAGE CV (IMAGE SEULE)
   ==================================== */

/* 1. Conteneur principal (Centrage horizontal et hauteur) */
/* Cible le div #primary avec la classe .cv-page-container */
.cv-page-container {
  /* Utilise flexbox pour centrer le contenu principal (la balise <main>) */
  display: flex;
  justify-content: center;
  /* Centre horizontalement l'image */
  align-items: flex-start;
  /* Aligne le contenu en haut (si l'image n'est pas trop haute) */

  padding: 40px 20px;
  min-height: 100vh;
  /* Assure que le conteneur prend toute la hauteur de l'écran */

  /* Le fond du body est déjà noir, on n'a pas besoin de le redéfinir ici */
}

/* 2. Cible le contenu WordPress qui enveloppe l'image */
/* Cible l'article et le conteneur de contenu standard de WordPress pour s'assurer qu'ils sont centrés */
.cv-page-container .site-main,
.cv-page-container article,
.cv-page-container .entry-content {
  width: 100%;
  /* Permet à la largeur de se contracter à la taille max de l'image */
  max-width: 800px;
  /* Limite la largeur du contenu standard */
  text-align: center;
  /* Assure que le titre et le contenu (si non vide) sont centrés */
  margin: 0 auto;
  padding: 0;
  /* On enlève la couleur blanche par défaut si elle est appliquée par d'autres styles du thème */
  background: transparent !important;
}

/* 3. Style de l'image de CV (Cible la classe .cv-image) */
.cv-image {
  /* Taille et mise en page */
  max-width: 800px;
  /* Largeur maximale du document CV */
  width: 100%;
  /* Prend toute la largeur disponible jusqu'à 800px */
  height: auto;
  display: block;
  /* Nécessaire pour les marges et le centrage si besoin */

  /* Mise en valeur du "document" */
  background-color: #FFFFFF;
  /* Fond blanc simulant le papier */
  border: 1px solid #333;
  /* Bordure légère */
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  /* Ombre forte sur le fond sombre */

  margin: 20px 0;
  /* Marge au-dessus et en dessous de l'image */
}

/* Surcharge du titre de page pour qu'il soit visible sur le fond sombre (il est en #000000 par défaut dans votre CSS) */
.cv-page-container h1 {
  color: whitesmoke;
}

/* Réactivité pour les petits écrans */
@media (max-width: 850px) {
  .cv-image {
    /* Laisse une petite marge sur les côtés sur mobile */
    max-width: 95%;
  }
}

.download-button {
  background-color: #fbeee0;
  border: 2px solid #422800;
  border-radius: 30px;
  box-shadow: #422800 4px 4px 0 0;
  color: #422800;
  cursor: pointer;
  display: inline-block;
  margin-top: 2%;
  font-weight: 600;
  font-size: 18px;
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.download-button:hover {
  background-color: #fff;
}

.download-button:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

@media (min-width: 768px) {
  .download-button {
    min-width: 120px;
    padding: 0 25px;
  }
}

/* ====================================
   CORRECTION DIMENSIONS CARROUSEL SWIPER
   ==================================== */

/* 1. Conteneur principal : ON SUPPRIME LA HAUTEUR FIXE ! */
.swiper.carousel-container {
  /* Supprimez : height: 600px; */
  height: auto !important;
  /* Force la hauteur à s'ajuster (pour Swiper autoHeight) */
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  overflow: hidden;
  position: relative;
}

/* 2. Le Slide individuel et l'Image */
/* On s'assure que l'image est bien contenue dans la slide */
.swiper-slide {
  padding: 20px 0;
  /* Ajoute un peu de marge verticale */
  /* Assurez-vous que display: flex est enlevé si vous avez des images seulement, 
       ou laissez-le si vous avez des éléments à centrer. */
}

/* 3. L'Image : Elle doit s'adapter entièrement au conteneur */
.carousel-image {
  width: 100%;
  max-height: 100%;
  display: block;

  /* Maintient les proportions sans couper, l'image sera entière. */
  object-fit: contain;
}

/* voila le trvail ! */