/* ===================== */
/*        FONTS          */
/* ===================== */
@font-face{
  font-family: 'Brittany';
  src: local('Brittany'), url("../polices/Brittany/BrittanySignature.woff2") format("woff2"),
       url("../polices/Brittany/BrittanySignature.ttf") format("truetype");
  font-display: swap;
}

@font-face{
  font-family: 'Cardo';
  src: local('Cardo Regular'), url("../polices/Cardo/Cardo-Regular.woff2") format("woff2"),
       url("../polices/Cardo/Cardo-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face{
  font-family: 'Bodoni_Moda';
  src: local('Bodoni Moda'), url("../polices/Bodoni_Moda/Bodoni.woff2") format("woff2"),
       url("../polices/Bodoni_Moda/Bodoni.ttf") format("truetype");
  font-display: swap;
}

@font-face{
  font-family: 'Lora';
  src: local('Lora SemiBold'), url("../polices/Lora/Lora-SemiBold.woff2") format("woff2"),
       url("../polices/Lora/Lora-SemiBold.ttf") format("truetype");
  font-display: swap;
}

/* ===================== */
/*    RESET LÉGER        */
/* ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

/* pas sur * pour éviter des bugs de composants */
html, body {
  margin: 0;
  scroll-behavior: smooth;
  overflow-x: hidden; /* garde le rendu attendu sans couper l’overflow-y */
}

/* ===================== */
/*     LAYOUT GLOBAL     */
/* ===================== */
body{
  background-color: var(--main_background);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  position: relative;
  min-height: 100vh;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.body_central{
  display: flex;
  flex-direction: row;
  width: 100vw;
  overflow: visible;
}

.body_gauche,
.body_droite{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 60vw;
}

.body_gauche{
  width: 50%;
  padding-left: 0;
  padding-right: 1vw;
  margin-top: 0;
  height: 70vw;
}

.body_droite{
  padding-top: 0;
  text-align: center;
  padding-left: 2vw;
  padding-right: 2vw;
  width: 50%;
}

/* ===================== */
/*       TITRAGES        */
/* ===================== */
h1{
  font-family: "Lora", serif;
  font-size: 3vw;
  overflow: visible;
}

h2{
  font-size: 2vw;
}

.titre_central{
  margin-top: 1vw;
  font-size: 3.5vw;
  text-shadow: 0 0 0.3vw rgba(0,0,0,0.35);
}

/* ===================== */
/*        BOUTONS        */
/* ===================== */
button {
  position: relative;           /* pour le ripple */
  overflow: hidden;             /* découpe le ripple */

  background-color: #fff;
  border: 0.25vw solid var(--back_header);
  border-radius: 1vw;
  max-width: 20vw;
  padding: 0 3vw;
  height: 5vw;

  font-size: 2vw;
  font-family: "Cardo", serif;
  text-align: center;
  cursor: pointer;
  margin: 12px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;

  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 10px rgba(0,0,0,0.15);
}

button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* ripple span créé dynamiquement */
button .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(0, 0, 0, 0.15);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.button_details{
  height: 3vw;
  font-size: 1.4vw;
  border-radius: 0.7vw;
  border: 0.15vw solid var(--back_header);
}

/* ===================== */
/*     FORMULAIRES       */
/* ===================== */
input,
textarea,
select{
  width: 20vw;
  border: 0;
  font-size: 1rem;
  padding: 0.5em;
}

input[type="password"],
input[type="email"],
input[type="tel"],
input[type="text"] {
  text-align: center;
  height: 3vw;
}

textarea{
  /* garde la largeur; hauteur auto par défaut */
}

select{
  margin-top: 2vw;
  height: 3vw;
}

input[type="submit"] {
  background-color: #a07040;
  color: #fff;
  border: none;
  padding: 0.75em 2em;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

input[type="submit"]:hover {
  background-color: #7a4e20;
}

input[type="submit"]:active {
  transform: scale(0.98);
}

/* ===================== */
/*     MEDIA QUERIES     */
/* ===================== */
@media only screen and (max-width:768px) {

  .body_central{
    flex-direction: column;
    align-items: center;
  }

  .body_gauche{
    width: 90%;
    padding-left: 0;
    padding-right: 0;
    height: auto;
  }

  .body_droite{
    padding-top: 0;
    width: 90%;
    height: auto;
  }

  .titre_central{
    margin-top: 8vw;
    font-size: 9vw;
  }

  h1{ font-size: 5vw; }
  h2{ font-size: 4vw; }

  input{
    width: 50vw;
    height: 10vw;
    font-size: 7vw;
  }

  textarea{
    width: 50vw;
  }

  button{
    border-width: 0.5vw;
    border-radius: 2vw;
    max-width: 80vw;
    padding-left: 2vw;
    padding-right: 2vw;
    height: 10vw;
    font-size: 4vw;
  }
}

/* ===================== */
/*   PRÉF. ACCESSIBLES   */
/* ===================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
