/* Polices auto-hébergées (RGPD : plus aucun appel à Google, et plus rapide qu'un @import).
   Fichiers à déposer dans medias/fonts/ : voir LISEZ-MOI-DEPLOIEMENT.md */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../medias/fonts/orbitron-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../medias/fonts/roboto-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../medias/fonts/roboto-latin-700-normal.woff2') format('woff2');
}

/* charte graphique 

Bleu : #292459
Vert : #6CBE96
Noir : #2D2D2D
Blanc : #F4F4F4

*/

html {
  scroll-behavior: smooth;
  margin: 0px;
  padding: 0px;
}

body {
	font-family: Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	color: #2d2d2d;
	margin: 0px;
	padding: 0px;
}

/* Affichage menu */

/* Logo plein écran (début) */
.logo-full {
  text-align: center;
  padding: 40px 0;
  max-height: 200px;
  max-width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: 
    max-height 0.5s ease,
    padding 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s ease;
  overflow: hidden;
}

.logo-full img {
  max-width: 80%;
  max-height: 200px;
  transition: max-height 0.5s ease;
}

/* Menu caché au départ */
#main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: none;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo img {
  max-height: 60px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* SCROLL ACTIVÉ */
body.scrolled .logo-full {
  max-height: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-20px);
}

body.scrolled #main-nav {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Container */

.container {
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-between;
  padding: 40px 10%;
  scroll-margin-top: 50px;
}

.box-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  row-gap: 50px;
  column-gap: 10px;
}

.box {
  width: 20%;
  text-align: center;
  box-sizing: border-box;
  border-radius: 15px;
  transition: box-shadow 0.3s ease;
  padding: 0px 20px;
  box-shadow: -2px 2px 2px #2d2d2d80;
  justify-content: space-between;
  margin: auto;
}

.box:hover {
  box-shadow: -5px 5px 5px #2d2d2d80;
}

.noshadow {
  box-shadow: none;
}

.noshadow:hover {
  box-shadow: none;
}

.prestaBox {
  width: 30%;
  display: flex;
	flex-direction: column;
	justify-content: space-between; /* pousse le prix en bas */
	min-height: 300px;
}

.doubleFlex {
  flex: 2;
  margin: auto;
}

.column {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex; /* ← important */
  flex-direction: row;
  justify-content: space-between; /* ou space-between si tu veux les pousser */
  gap: 20px; /* 👈 espace horizontal entre les spans */
  flex-wrap: wrap;
}

.footerText {
  width: 60%;
}

.gapRow {
  row-gap: 15px;
}

.boxForm {
  width: 50%;
}

.boxImgFooter {
  width: 20%;
}

/* Colorisation des box */

.blue {
  background-color: #292459;
  color: white;
}

.white {
  background-color: #FFF;
  color: black;
}

.whitebreak {
  background-color: #F4F4F4;
  color: #2d2d2d;
}

.green {
  background-color: #6CBE96;
  color: #2d2d2d;
}

/* Colorisation des Textes */

.blueText {
  color: #292459;
}

.whiteText {
  color: #FFF;
}

.greenText {
  color: #6CBE96;
}

.blackText {
  color: #2d2d2d;
}

/* Séparateur */

hr {
  border: none;
  height: 7px;
  width: 10%; /* ou 100%, selon le rendu souhaité */
  margin: 15px auto;
  border-radius: 5px;
}

/* Boutton */

.button {
  border : none;
  color: #F4F4F4;
  border-radius: 15px;
  font-size: 1em;
  padding: 10px 30px;
  margin: 20px auto;
  box-shadow: -2px 2px 2px #2d2d2d80;
  transition: box-shadow 0.3s ease;
}

.button:hover {
  box-shadow: -5px 5px 5px #2d2d2d80;
}

/* Formatage de textes général */

a, a:hover, a:visited {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-family: Orbitron, 'Arial Black', Arial, sans-serif;
  padding: 0px;
  margin: 0px auto;
}

/* Réalisations */

.realpres {
  width: 75%;
}

.real {
  background-color: #6CBE96;
}

.realImg {
  width: 20%;
}

/* Prestations */

.prixPresta {
  display: inline-flex;
  margin: 20px auto 10px;
}

.prestaPic {
  background-repeat: no-repeat;
  background-size: 20%;
  background-position: bottom 10px right 15px;
}

.info {
  background-image: url(../medias/presta/info.webp);
}

.ddd {
  background-image: url(../medias/presta/3d.webp);
}

.forma {
  background-image: url(../medias/presta/forma.webp);
}

.prestaButton {
  margin: 20px 10px;
}

/* Qui suis-je */

.me {
  width: 90%;
}

/* Formulaire de contact */

.formText {
  color: #f4f4f4;
  font-weight: lighter;
}

label {
	margin-top: 15px;
}

input,
textarea {
	padding: 10px;
	border: none;
	border-radius: 5px;
	margin: 5px auto auto;
  width: 40%;
}

textarea {
  	resize: vertical;
}


/* Footer */

img.footer {
	max-height: 130px;
	max-width: 100%;
}

.dot {
  font-weight: bold;
}

.footerHr {
  display: none;
}

@media(max-width: 1910px) {

  img.footer {
    max-width: 100%;
    max-height: fit-content;
    margin: auto;
  }

  .boxImgFooter {
    width: 30%;
  }

}

@media(max-width: 900px) {
  
  .box {
    width: 40%;
  }

  .boxForm {
    width: 90%;
  }


  .nav-links {
    gap: 10px;
  }

  .boxFooter {
    flex-direction: column;
    width: 100%;
  }

  .footerText {
    width: 100%;
  }

  .footerHr {
    display: block;
  }
  
}

@media(max-width: 800px) {

  
  hr {
    width: 60%;
  }

  .box {
    width: 90%;
  }

  .realImg {
    width: 90%;
  }

  input, textarea {
    width: 80%;
  }

  .formText {
    color: #f4f4f4;
    font-weight: normal;
  }

  .dot {
    display: none;
  }

  .footerText {
    flex-direction: column;
  }
}

/* ==========================================================
   Correctifs du 06/10/2026 : accessibilité, contrastes, formulaire
   ========================================================== */

/* Liens stylés en bouton (remplacent <a><button>, HTML invalide) */
a.button {
  display: inline-block;
  text-decoration: none;
}

/* Menu : invisible ET non focalisable tant qu'on n'a pas scrollé */
#main-nav {
  visibility: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, visibility 0s linear 0.3s;
}
body.scrolled #main-nav {
  visibility: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease, visibility 0s;
}

/* Contrastes WCAG AA (le blanc sur #6CBE96 ne faisait que 2,2:1) */
.green,
.green .whiteText,
.green .formText,
.green label {
  color: #2d2d2d;
}
.green .button.blue,
.green .button.blue.whiteText {
  color: #fff;
}
.greenText {
  color: #2F7A58;            /* 5,2:1 sur blanc */
}
.blue .greenText {
  color: #6CBE96;            /* 6,3:1 sur le bleu de la charte */
}
.green a {
  text-decoration: underline;
}
.green a.button {
  text-decoration: none;
}

/* Focus clavier visible partout */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #292459;
  box-shadow: 0 0 0 6px #fff;
}

/* Formulaire */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formStatus {
  font-weight: bold;
  margin: 20px auto;
}
.hrHalf {
  width: 50%;
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ==========================================================
   Étape 2 (09/10/2026) : titres, pages légales, accessibilité
   ========================================================== */

/* Les titres de section sont des <h2 class="titre"> (un seul <h1> par page) : même rendu que l'ancien <h1> */
h2.titre {
  font-family: Orbitron, 'Arial Black', Arial, sans-serif;
  font-size: 2em;
  font-weight: bold;
  padding: 0px;
  margin: 0px auto;
}

/* Lien d'évitement (clavier / lecteurs d'écran) */
a.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: #292459;
  padding: 10px 16px;
}
a.skip-link,
a.skip-link:visited,
a.skip-link:hover {
  color: #fff;
}
a.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* Pages légales (mentions, CGV) : texte aligné à gauche, largeur de lecture confortable */
.legal {
  text-align: left;
  align-items: stretch;
}
.legal > * {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.legal h1 { text-align: center; }
.legal h2 {
  font-family: Orbitron, 'Arial Black', Arial, sans-serif;
  font-size: 1.25em;
  color: #292459;
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.legal h3 {
  font-size: 1.05em;
  color: #292459;
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}
.legal a {
  color: #292459;
  text-decoration: underline;
}
.legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: 0.4em; }
.legal .maj { color: #555; font-size: 0.9em; text-align: center; }


/* ==========================================================
   Page Professionnels (09/10/2026)
   ========================================================== */
.offre {
  width: 44%;
  margin: 0;
  min-height: 0;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.offre h3 {
  font-family: Orbitron, 'Arial Black', Arial, sans-serif;
  color: #292459;
  margin-top: 0;
}
ul.offreListe {
  text-align: left;
  padding-left: 1.2em;
  margin: 0 0 auto;
}
ul.offreListe li { margin-bottom: 0.4em; }
.offre .prixPresta {
  display: block;
  font-weight: bold;
  color: #292459;
  margin-top: 20px;
}
.noteTarifs {
  font-size: 0.9em;
  color: #555;
  margin-top: 30px;
}
.etape { padding-top: 10px; }
.etapeNum {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: #292459;
  color: #fff;
  font-family: Orbitron, 'Arial Black', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.4em;
  margin: 0 auto 10px;
}
#deroulement h3, #faq h3 { color: #292459; }
.faq {
  text-align: left;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
.faq h3 { margin-bottom: 0.2em; margin-top: 1.4em; }
.faq p { margin-top: 0; }

@media (max-width: 800px) {
  .offre { width: 90%; }
}
@media (max-width: 600px) {
  #main-nav { flex-wrap: wrap; padding: 4px 8px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 0; margin: 4px 0; font-size: 0.9em; }
}


/* ==========================================================
   Boutons en texte blanc + texte de la zone contact agrandi (09/10/2026)
   ========================================================== */
/* Le vert de la charte (#6CBE96) ne tient pas un texte blanc (2,2:1) : les boutons verts prennent
   le vert foncé #2F7A58 (blanc dessus = 5,2:1) avec un liseré clair pour rester visibles sur fond bleu. */
a.button,
a.button:visited,
a.button:hover,
button.button {
  color: #fff;
}
a.button.green,
a.button.real,
button.button.green {
  background-color: #2F7A58;
  border: 2px solid #6CBE96;
}
.green a.button,
.green a.button:visited {
  color: #fff;
}

/* Zone contact (fond vert) : texte un peu plus grand et plus lisible */
#contact {
  font-size: 1.15em;
  line-height: 1.5;
}
#contact .formText {
  font-weight: normal;
  font-size: 1em;
}
#contact input,
#contact textarea {
  font-family: inherit;
  font-size: 1em;
}


/* Pages locales (09/10/2026) */
.zoneTexte {
  text-align: left;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
.zoneTexte h2 {
  font-family: Orbitron, 'Arial Black', Arial, sans-serif;
  font-size: 1.25em;
  color: #292459;
  margin: 1.6em 0 0.4em;
}
.zoneTexte h2:first-child { margin-top: 0; }
.lienTexte,
.lienTexte:visited {
  color: #292459;
  text-decoration: underline;
}
