@import url("https://use.typekit.net/dbp7zuy.css");


/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "museo-sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background: #F2E4D3;
  color: #9B6224;
}

main {
  margin-top: 30px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5%;
}

/* Typography */
h1, h2, h3, h4, h5, p {
  font-family: "museo-sans", sans-serif;
  text-align: left;
  color: #9B6224;
}

h1 {
  font-family: "sirenia", sans-serif;
  font-weight: 100;
  font-size: 3em;
  margin-bottom: 30px;
  line-height: 1;
}

h2 {
  font-weight: 900;
  font-size: 0.9em;
}

h3 {
  font-weight: 300;
  font-size: clamp(24px, 3vw, 40px);
}

h4 {
  font-weight: 500;
  font-size: 2em;
}

h5 {
  font-weight: 900;
  font-size: 1.2em;
  color: #F2E4D3;
}

p {
  font-weight: 300;
  font-size: 1em;
  line-height: 30px;
}

/* Utilities */
.tbeige { color: #F2E4D3; }
.tmarron { color: #9B6224; }
.tvert { color: #586D4D; }
.tbleu { color: #1F2D44; }
.tjaune { color: #CE9729; }
.bold { font-weight: 900; }
.souligne { text-decoration: underline; }

/* Links and buttons */
a { all: unset; text-decoration: none; }

button {
  all: unset;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: 0.3s;
}

/* Header bandeau */
.bandeau-refonte {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #9b6224;
  color: #f2e4d3;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 5%;
  z-index: 2000;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #F2E4D3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  z-index: 1000;
  transition: background 0.3s;
}

.navbar.scrolled { background: #1f2d44; }
.navbar.scrolled a { color: #F2E4D3; }
.navbar.scrolled a:hover { color: #CE9729; }

.logo img { height: 20px; }

.menu {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.menu a {
  font-weight: 900;
  color: #915a23;
  transition: color 0.3s;
}

.menu a:hover { color: #1F2D44; }


/* Bloc intro */

.intro {
  display: flex;
  gap: 5%;
  margin-top: 50px;
  background-color: #F2E4D3;
}

.intro-texte {
  flex: 1 1 55%;
  min-width: 300px;
  max-width: 1000px;
  display: flex;
  align-items: center;
}

.intro-image {
  flex: 1 1 35%;
  min-width: 300px;
  background-color: #665546;
  height: auto;
  overflow: hidden;
  border-radius: 30px;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-texte p {
  max-width: 80%;
}

/* Galerie projets */
.projets {
  background-color: #1F2D44;
  padding: 5%;
}

.projets h2 {
  margin-bottom: 20px;
}

.projets h4 {
  margin-bottom: 50px;
}

.vignette-projet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #162233;
  border-radius: 30px;
  padding: 30px;
  margin-bottom: 40px;
  gap: 30px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.vignette-projet:link,
.vignette-projet:visited {
  text-decoration: none;
  color: inherit;
}

.projet-texte {
  flex: 1 1 50%;
  color: #9B6224;
}

.tags {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom:30px;
}

.tag {
  background-color: #1f2d44;
  color: #f2e4d3;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-lien {
  transition:0.3s;
  cursor: pointer;
}
.tag-lien:hover {background-color: #9b6224;}

.projet-texte h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #f2e4d3;
}



.projet-texte p {
  font-size: 1em;
  margin-bottom: 40px;
  max-width: 90%;
  text-align: left;
  color: #f2e4d3;
}

.vignette-bouton {
  background-color: #F2E4D3;
  color: #1f2d44;
  padding: 15px;
  border-radius: 30px;
  transition: 0.3s;
}

.vignette-bouton:hover {
  background-color: #1f2d44;
  color: #F2E4D3;
}

.projet-image {
  flex: 1 1 45%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.4s ease;

}

.vignette-projet:hover .projet-image img {
  transform: scale(1.05);
}

.projets button {
  background-color: #F2E4D3;
  color: #1f2d44;
  margin: 0 auto;
  display: block;
}

.projets button:hover {
  background-color: #162233;
  color: #F2E4D3;
}



/*Pages projets */

.resume-projet {
display: flex;
    gap: 30px;
    align-items: stretch;
    background-color: #f2e4d3;
    border-radius: 30px;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* pour forcer le passage en colonne si nécessaire */

}

.resume-image {
  flex: 1 1 40%;
  overflow: hidden;
  background-color: #eaddce;
  border-radius: 20px;
}

.resume-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resume-texte {
  flex: 1 1 50%;
  display:flex;
  flex-direction: column;
  justify-content: center;
}

.resume-texte h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color:#1f2d44;
}

.resume-texte h4.sous-titre {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 1rem;
  color: #9b6224;
}

.resume-texte p {
  margin-bottom: 12px;
  color:#1f2d44;
}

.resume-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #1f2d44;
  color: #f2e4d3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}


/* SECTION PARENT */
.contenu-projet {
  background-color: #f3e3d3; /* à adapter selon ta charte (ex : beige doux) */
  padding-top: 30px;
  padding-bottom: 30px;
}

/* BLOCS GÉNÉRIQUES */
.bloc {
  width: 100%;
  padding-left:5%;
  padding-right: 5%;
  padding-top: 15px;
  padding-bottom:15px;
  background-color: #f2e4d3;
}

.bloc h3 {color:#1f2d44;font-size: 1.3em;font-weight: 700;}

/* IMAGE + TEXTE (50/50) */
.bloc-image-texte {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
  align-items: center;
  /*padding-top:50px;
  padding-bottom:50px;*/
  color:#1f2d44;
}

.bloc-image-texte .bloc-visuel,
.bloc-image-texte .bloc-texte {
  flex: 1 1 45%;
}


.bloc-image-texte img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

/* TEXTE SEUL (100%) */
.bloc-texte-seul {
  background-color: #e0ceba;
  padding-top:50px;
  padding-bottom:50px;
  color:#1f2d44;
}


/* IMAGE SEULE (100%) */


.bloc-image-seule img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}


/* Bloc approche */

.approche {
  display: flex;
  gap: 5%;
  background-color: #1f2d44; /* Couleur de fond spécifique */
  overflow: hidden; /* Empêche l'image de déborder */
}

.approche-texte {
  flex: 1 1 50%;
  min-width: 300px;
  max-width:1200px;
}

.approche-image {
  flex: 1 1 50%;
  min-width: 100px;
}

.approche-image {
  background-color: #9b6224;
  border: solid 1px #f2e4d3;  height: auto; /* Important : laisse la hauteur s'adapter */
  overflow: hidden; /* Evite que l'image dépasse du conteneur */
  border-radius: 30px;

}

.approche-image img {
  width: 100%; /* L'image prend toute la largeur du bloc */
  height: 100%; /* L'image prend toute la hauteur du bloc */
  object-fit: cover;
  object-position: center;}


.approche-texte p {
  max-width: 80%;
  color:#f2e4d3;
}

/* Compétences */
.competences {
  background-color: #9b6224; /* Couleur de fond spécifique */
  text-align: center;
}

.competences button {
  background-color: #f2e4d3; /* Couleur personnalisée */
  color: #9b6224;
  margin-top:40px;
}

.competences button:hover {
  background-color: #7f4c18; /* Couleur personnalisée */
  color: #F2E4D3;}

.competences-ligne {
  display: flex;
  justify-content: space-between;
  gap: 2%;
  flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
}

.competence-item {
  flex: 1 1 30%;
  min-width: 200px; /* Pour éviter que ça rétrécisse trop */
  padding: 20px;
  text-align: center;
  background-color: #eaddce;
  border-radius: 50px;
}

.competence-item .img {
  height: auto;
  margin-bottom: 10px;
}

.competence-item h3 {
  text-align: center;
  font-size: 1.3em;
  font-weight: 900;
}

.competence-item p {
  text-align: center;
}



/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  background: #162233;
  padding: 5% 5%;
  align-items: center;
  gap: 5%;
}

.contact-image {
  flex: 1 1 30%;
  border-radius: 30px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-contenu {
  flex: 1 1 65%;
  color: #F2E4D3;
}

.contact-contenu h1,
.contact-contenu p {
  color: #F2E4D3;
}

.contact-contenu p {
  font-size:1.5em;
}

.contact-contenu a {
  text-decoration: underline;
  transition:0.3s;
}
.contact-contenu a:hover{
  color:#ce9729;
}



/* Footer */
footer {
  font-size: 0.8rem;
  background: #9B6224;
  padding: 20px 5%;
}
footer p {text-align: center;}

footer a {
  font-weight: 900;
  color: #f2e4d3;
  transition: 0.3s;
}

footer a:hover {
  color: white;
}




/* PAGE CV*/

/* Bloc intro */

.cv.intro {
}

.cv.intro-texte{
  flex: 1 1 70%;
  min-width: 300px;
  max-width:1200px;
}

.cv.intro-image {
  flex: 1 1 30%;
  min-width: 100px;
}

.cv.intro-image {
  background-color: #8e5a25;
  border: solid 1px #f2e4d3;
}

.cv.intro-texte p {
  max-width: 80%;
  color:#9b6224;
}

.cv-header h1 {
  font-size: 3.5em;
  color:#9b6224;

}

.cv-header {
  margin-top:30px;
  margin-bottom:20px;
  margin-right:5%;
  margin-left: 5%;
  padding:0;
}

.cv-infos {
  margin-top:0px;
  margin-bottom:30px;
  margin-right:5%;
  margin-left: 5%;
  padding:0;
}

/* ÉTIQUETTES */
.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.etiquette {
  background-color: #e5d6c6;
  color: #9b6224;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.9em;
  font-weight: 300;
  display: inline-block;
}

.etiquette.date {
  background-color: #9B6224;
  color: #F2E4D3;
  font-weight: bold;
}

.etiquette.datebleue {
  background-color: #c9bcaa;
  color: #1F2D44;
  font-weight: bold;
}

.lien {
  cursor: pointer;
  background-color: #9b6224;
  color:#f2e4d3;
  transition:0.3s;
}

.lien:hover {
  cursor: pointer;
  background-color: #1f2d44;
}

.lien-entreprise:hover {
  transition:0.3s;
  color:#586d4d;
}




/* EXPÉRIENCES */
.cv-experiences .experience,
.cv-formations .formation ,
.cv-logiciels .logiciels {
  margin-bottom: 30px;
}

.cv-experiences ,
.cv-formations ,
.cv-logiciels  {
  margin-right:5%; margin-left:5%;
  margin-bottom:30px;
  background-color: #e5d6c6;  /* beige clair ou autre */
  border-radius: 40px;
  padding: 40px;
}

.cv-experiences h2,
.cv-formations h2,
.cv-logiciels h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
  font-weight: 300;
}

.cv-experiences h3,
.cv-formations h3,
.cv-logiciels h3 {
  margin-top: 10px;
  font-size: 1.3em;
}

.cv-experiences h4,
.cv-formations h4,
.cv-logiciels h4 {
  font-size: 1em;
  margin-bottom: 5px;
  font-weight: 900;
  color:#1F2D44;
}

.cv-experiences p {
  font-style: italic;
  color: #9B6224;
}

.formation h3 {color:#1F2D44;}





/* Responsive */

@media (max-width: 768px) {

  h4 {font-size: 1.5em;}


  .bandeau-refonte {
    font-size: 0.7em;
    height:40px;
  }

  .menu li {font-size: 0.8em;}

  .logo img { height: 10px;}

  .approche {
    flex-direction: column;
  }

  .vignette-projet {
    flex-direction: column;
    padding:40px;
  }

  .projet-texte, .projet-image {
    flex: 1 1 100%;
    text-align: left;
  }

  .projet-texte p {
    max-width: 100%;
  }

  .etiquettes {
    justify-content: flex-start;
  }

  .contenu-projet {padding-top: 20px;padding-bottom: 20px;}
  .bloc-image-texte {flex-direction: column;}

  .bloc-image-texte .bloc-visuel,
  .bloc-image-texte .bloc-texte {
    flex: 1 1 100%;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .bloc-image-texte h3 {margin-bottom:10px;}


  .resume-projet {
    flex-direction: column;
  }

  .resume-image, .resume-texte {
    flex: 1 1 100%;
  }

  .resume-image {
    margin-bottom: 20px;
  }

  .contact {
    flex-direction: column;
  }

  .contact-image,
  .contact-contenu {
    flex: 1 1 100%;
    width: 100%;
  }

  .contact-image img {
display:none;
  }

  .contact-reseaux {
    justify-content: flex-start;
  }

  h1 {margin-top:30px;}

  .intro {
    flex-direction: column-reverse; /* Inverser l'ordre pour mobile */
  }

  .intro-texte {
    order: -1; /* Le texte passe au dessus de l'image */
    margin-top:30px;
  }

  .vignette {
    flex: 1 1 100%;
    margin-bottom: 50px;
  }

  .competence-item {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .competences button {margin-top:20px;}

  .cv-header h1 {
    font-size: 2.5em;}

  .menu {
    justify-content: center;
  }

  .contact-texte {width:100%;}
}
