


/* 1. Modèle de boîte logique */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Supprime les marges par défaut pour un meilleur contrôle */
* {
  margin: 0;
  padding: 0;
}

/* 3. Paramètres de base du corps */
body {
  /* Hauteur minimale pour remplir l'écran */
  min-height: 100dvh; 
  /* Lisibilité et anticrénelage */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: var(--texte);
  background-color: var(--blanc);
}

/* 4. Gestion des médias (Images, Vidéos) */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 5. Les éléments de formulaire héritent de la police (ce n'est pas le cas par défaut) */
input, button, textarea, select {
  font: inherit;
}

/* 6. Évite les débordements de texte sur les petits écrans */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 7. Isolation pour éviter les problèmes de z-index (Stacking Context) */
#root, #__next {
  isolation: isolate;
}

/* 8. Accessibilité : Respect des préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
}
/* 9. Classe et style de base pour les éléments */
a{
  text-decoration: none;
  color: inherit;
}

h1 {
  font-family: var(--titre);
  color: var(--noir);
}

h2 {
  font-family: var(--titre);
  color: var(--marron);
}

h3 {
  color: var(--noir);
  font-family: var(--texte);
  font-size: 1.3rem;
  font-weight: 600;
}

.content-txt {
    width: 45vw;
    margin: 2rem auto;
}

/* 10. Style personnel du site */

/* couleur et typographie */
  :root {
    --jaune :  #F2D479;
    --beige : #F2EBC4;
    --marron : #59402A;
    --noir : #262423;
    --blanc : #FFFDF2;
    --titre :  "Playfair Display SC", serif;
    --texte : "Red Hat Text", sans-serif;
    --manus : "Thuressia";

  }

/* SECTION */

.header {
    text-align: center;
    background-color: var(--jaune);
    height: 7rem;
    padding: 1rem;
}

/* CARTE */

  .cards {
    display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        padding: 1rem 3rem;
  }

  .card {
    flex-basis: 26%;
    min-width: 14rem;
    margin: 1rem;
    padding: 1rem;

    display: flex;
        flex-direction: column;
        align-items: center;

    background-color: var(--beige);
    border: solid 2px var(--jaune);
    border-radius: 10px;
  }

  .card p {
    color: var(--marron);
    text-align: center;
  }

/* BOUTONS */

  .bouton {
    padding: 0.5rem 1rem;
    margin: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    display: inline-block;
  }

  .bouton:hover {
    transform: scale(1.05);
  }

  .btn-brown {
    background-color: var(--marron);
    color: var(--jaune);
    font-family: var(--texte);
    font-size: 1rem;
  }

  .btn-yellow { 
    background-color: var(--jaune);
    color: var(--marron);
    font-family: var(--manus);
  }

/* image ronde */
  .img_ronde {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    aspect-ratio: 1/1;
    border: solid 1px var(--blanc);
    object-fit: cover;
    object-position: center;
  }