/* ============================================
   RESET & BASE
   ============================================ */
/* Suppression des marges/paddings par défaut */

    * {
    margin: 0;
    padding: 0;
    /* outline: 1px solid red; */ /* Debug visuel, décommenter si besoin */
    }

/* Modèle de boîte uniforme sur tous les éléments */
    *,
    *::before,
    *::after {
    box-sizing: border-box;
    }

/* ============================================
       TOKENS — toutes les couleurs en un seul endroit
=========================================== */
    :root {
      --off:      #cfc9c9;          /* fond body */
      --paper:    #ede9e2;          /* fond logo-frame */
      --ink:      #3e3d3d;          /* texte principal */
      --ink-mid:  #C4B6A9;          /* fond hero + footer */
      --rust:     #9b3a23;          /* labels de section */
      --gold:     #6b5a40;          /* kicker + italique titre */
      --muted:    #8a7f74;          /* textes secondaires */
      --line:     #b8ae9f;          /* séparateurs */
      --body-bg:  #E3E1D9;          /* fond zone contenu */
      --body-txt: #5a4f46;          /* texte paragraphes */
      --bg:       #cfc9c9;
      --font-size: 16px;
    }

 

/* ============================================
       BASE
=========================================== */
    
    html {
    scroll-behavior: smooth;
    }

    body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    padding-top:95px;
    padding-bottom:10px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cline x1='0' y1='0' x2='40' y2='40' stroke='%23C4BAA8' stroke-width='0.4' opacity='0.5'/%3E%3Cline x1='40' y1='0' x2='0' y2='40' stroke='%23C4BAA8' stroke-width='0.4' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 40px 40px;
    }


/* ============================================
       ANIMATIONS
=========================================== */
    .fade-in {
        opacity: 0;
        animation: fadeIn 1s ease forwards;
    }
    
    @keyframes fadeIn {
    to {
        opacity: 1;
        }
    }
    


/* ============================================
   ACCESSIBILITÉ — Texte visible uniquement par les lecteurs d'écran
   ============================================ */

  .seo-only {
    border: 0;
    clip: rect(0 0 0 0);       /* Masquage visuel (ancienne méthode) */
    clip-path: inset(50%);     /* Masquage visuel (méthode moderne) */
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;       /* Évite le retour à la ligne qui agrandirait le bloc */
    position: absolute;        /* Sort du flux normal */
    }


/* ============================================
   TYPOGRAPHIE GLOBALE
   ============================================ */

    h2 {
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
    margin: 10px 0;
    font-family: 'EB Garamond', serif;
    }


/* ============================================
   LAYOUT — Wrapper centré avec largeur max
   ============================================ */

    .page-wrapper {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 10px;        /* ← marges gauche/droite */
    overflow: hidden;
    }


/* ============================================
   SECTIONS — Alternance gauche / droite + couleurs
   ============================================ */

.section {
  display: flex;
  align-items: stretch;
  padding: 40px 0;
  margin-inline: auto;
  background-color: #f5f5f5;
}

/* Sections impaires : image à gauche, texte à droite (row = défaut) */
.section:nth-child(odd) {
  flex-direction: row;
  background-color: #e3e1d9;
}

/* Sections paires : image à droite, texte à gauche (inversion) */
.section:nth-child(even) {
  flex-direction: row-reverse;
  background-color: #c4b6a9;
}

/*
.section:first-child {
  border-radius: 6px 6px 0 0;   /* ← arrondi en haut 
}

.section:last-child {
  border-radius: 0 0 6px 6px;   /* ← arrondi en bas 
}
*/

/* ============================================
   BLOC TEXTE
   ============================================ */

.text {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* color: #382920; */
  font-size:var(--font-size);
  font-weight: 300;
  color: var(--body-txt);
  line-height: 1.85;
}

/* Titre dans le bloc texte */
.text h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #3e3d3d;
  font-style: italic; 
  font-family: 'EB Garamond', serif;
}

/* Paragraphe dans le bloc texte */
.text p {
  line-height: 1.6;
  color: #3e3d3d;
}


/* ============================================
   BLOC IMAGE
   ============================================ */

.image-container {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px;
}

/* Image étirée pour remplir son conteneur avec recadrage si nécessaire */
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* ============================================
   RESPONSIVE — Mobile (>= 769px)
   ============================================ */
@media only screen and (min-width: 769px) {
  html {
    overflow-y: scroll;
  }
}

/* ============================================
   RESPONSIVE — Mobile (< 768px)
   ============================================ */
@media (max-width: 768px) {

  body {
    padding-top: 0;
    font-size: 14px;       /* ← base réduite */
    line-height: 1.5;      /* ← espacement global réduit */
  }

  .section {
    flex-direction: column !important;
    background-color: #bdbbb4;
    padding: 20px 0;       /* ← réduit le padding vertical des sections */
  }

  .image-container {
    padding: 10px;
  }

  .text {
    padding: 10px 14px;    /* ← un peu d'air sur les côtés */
    line-height: 1.5;      /* ← remplace le 1.85 du desktop */
    font-size: 14px;
  }

  .text h2 {
    font-size: 1.3rem;     /* ← réduit de 26px */
    line-height: 1.2;      /* ← titre plus serré */
    margin-top: 8px;
    margin-bottom: 10px;
    text-align: left;      /* ← plus naturel sur mobile */
  }

  .text p {
    font-size: 14px;
    line-height: 1.55;     /* ← remplace le 1.6 du desktop, légèrement réduit */
    margin-bottom: 0.75rem;
  }

}