:root {
  --fond_clair: #f9f5f0;
  --beige_clair: #ead7c4;
  --beige_foncé: #a67c52;
  --police_grise: #6d6d6d;
  --vert: #d6d4c8;
  --text-block-height: 380px;
}



/* Conteneur principal : les éléments sont alignés verticalement au centre */
.accueil_presentation {
  display: flex;
  justify-content: center;
  align-items: center; /* centre verticalement image / texte / vidéo */
  padding: 20px;
  gap: 20px;
}

/* IMAGE : hauteur contrôlée par la variable, largeur fixe */
.photo_accueil_1 {
  flex: 0 0 220px;         /* largeur fixe (220px) mais peut être ajustée */
  width: 220px;
  height: var(--text-block-height); /* s'aligne sur la hauteur du bloc texte */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  display: block;
}

/* Conteneur vidéo : centrer la vidéo à l'intérieur */
.accueil_video {
  flex: 2 1 400px; /* grandit si espace disponible, mais la hauteur est contrôlée par la vidéo */
  display: flex;
  align-items: center;     /* centre verticalement la vidéo par rapport au conteneur */
  justify-content: center;
}

/* VIDÉO : même hauteur que le texte */
.video_cathy {
  width: 100%;
  height: var(--text-block-height); /* s'aligne sur la hauteur du bloc texte */
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
}

/* TEXTE : hauteur réglable via la variable ; contenu centré verticalement */
.accueil_presentation_texte {
  background: var(--beige_clair);
  border-radius: 16px;
  padding: 20px;                       /* padding interne */
  flex: 2 1 360px;                     /* laisse le texte grandir en largeur si besoin */
  height: var(--text-block-height);    /* hauteur contrôlée ici */
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;             /* centre verticalement le contenu texte */
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;                    /* évite que le texte dépasse visuellement */
}

/* Texte / typographies */
.texte1 {
  font-size: 4em;
  color: var(--police_grise);
  margin: 0;
  font-family: 'Flatlion', sans-serif;
  line-height: 1;
}

.texte2 {
  font-size: 1.2em;
  font-style: italic;
  color: var(--beige_foncé);
  margin: 0;
  font-family: 'PlayfairDisplay-Italic', sans-serif;
  font-weight: bold;
}

.texte3 {
  font-size: 1em;
  color: var(--beige_foncé);
  margin: 0;
  font-family: 'PlayfairDisplay-Italic', sans-serif;
}

/* Signature alignée en bas à droite du bloc texte (si nécessaire) */
.accueil_presentation_signature {
  font-family: 'Flatlion', sans-serif;
  font-size: 2.5em; /* réduit pour éviter que la signature force la hauteur */
  color: var(--beige_foncé);
  text-align: right;
  margin: 0;
  align-self: flex-end;
}

/* Option utile : si le texte est trop long, on garde la hauteur et on scroll à l'intérieur */
.accueil_presentation_texte.long-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Petit ajustement esthétique : éviter que images/vidéos dépassent des arrondis sur certains navigateurs */
.photo_accueil_1,
.video_cathy {
  /* crée un nouveau stacking context pour respecter les border-radius */
  background-clip: padding-box;
  -webkit-mask-image: -webkit-linear-gradient(white, black);
}


@font-face {
  font-family: 'Flatlion';
  src: url('Flatlion2.ttf') format('truetype');
  /*font-weight: normal;
  font-style: normal;*/
}
@font-face {
  font-family: 'PlayfairDisplay-Italic';
  src: url('PlayfairDisplay-Italic.ttf') format('truetype');
  /*font-weight: normal;
  font-style: normal;*/
}

/* supprimez toute hauteur fixe qui force le conteneur à déformer les images */
.accueil_2_fond {
  height: auto;    /* laisser le contenu définir la hauteur */
  padding: 20px 0;
  background-color: var(--beige_clair);
}
.accueil_2_images {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* aligne les cartes en haut si texte plus long */
  gap: 96px;               /* espace entre les colonnes */
  margin-top: 20px;        /* ajuste selon besoin */
  padding: 20px;
  flex-wrap: wrap;         /* permet le passage en colonne sur petit écran */
}
/* texte / cartes : s'alignent correctement à côté des images */
.accueil_2_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
}
/* images conservent toutes le même ratio et la même taille max */
.accueil_2_item img {
  width: clamp(220px, 24vw, 360px); /* min 220px, max 360px, élastique entre */
  aspect-ratio: 4 / 3;              /* garantit le même format pour toutes */
  object-fit: cover;                /* recadre proprement sans déformer */
  object-position: center;          /* centre le recadrage */
  display: block;                   /* évite espaces blancs indésirables */
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.accueil_2_carre_texte,
.accueil_2_carre_texte2 {
  width: 360px;
  height: 400px;
  background: var(--fond_clair);
  border-radius: 16px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;  /* on empile le contenu */
  align-items: center;
  justify-content: flex-start;
  color: var(--beige_foncé);
  font-size: 1em;
  box-shadow: 0 2px 8px #457b9d0d;
  text-align: center;
  padding: 10px;
}

.accueil_2_carre_texte2 {
  background: #e1c3a5; /* la variante verte */
  color: #fff;
}

/* cibler le <p> contenant le lien */
.accueil_2_carre_texte p:last-child,
.accueil_2_carre_texte2 p:last-child {
  margin-top: auto; /* pousse le lien en bas */
}

/*---------------@MEDIA-------------------------------------------------------------------------------*/
/* --------------- @MEDIA (REMPLACER L'ANCIEN) ------------------- */

/* Tablette large / desktop réduit (<=1100px) */
@media (max-width:1100px) {
  .accueil_presentation {
    --text-block-height: 320px;
    gap: 10px;
    padding: 16px;
    align-items: center;
  }

  .photo_accueil_1 {
    flex: 0 0 180px;
    width: 180px;
    height: var(--text-block-height);
    object-fit: cover;
    display: block;
    margin: 0;
  }

  .video_cathy {
    height: var(--text-block-height);
    object-fit: cover;
    display: block;
    margin: 0;
  }

  .accueil_presentation_texte {
    height: var(--text-block-height);
    padding: 16px;
    flex: 2 1 320px;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
  }
  .texte1 {
    font-size: calc(4em * 1.5); /* +50% */
  }

  /* cartes/colonnes */
  .accueil_2_images { gap: 48px; padding: 16px; }
  .accueil_2_item img { width: clamp(200px, 22vw, 320px); display:block; margin:0; }
  .accueil_2_carre_texte, .accueil_2_carre_texte2 { width:320px; min-height:320px; padding:14px; }
}

/* Tablette / petits écrans : passage en colonne (<=800px) */
@media (max-width:800px) {

  /* Conteneur compact */
  .accueil_presentation {
    flex-direction: column;
    gap: 8px;                /* serré */
    align-items: stretch;    /* s'étendent sur toute la largeur utile */
    padding: 12px 14px;
    --text-block-height: auto;
  }

  /* RESET DES MARGES/PADDING PARASITES pour les enfants directs */
  .accueil_presentation > * { margin: 0; padding: 0; }
  .accueil_presentation p,
  .accueil_presentation h1,
  .accueil_presentation h2,
  .accueil_presentation h3,
  .accueil_presentation figure {
    margin: 0 0 .6em 0; /* garde un petit espacement interne cohérent */
    padding: 0;
  }

  /* Forcer les images/vidéo à être des blocs sans marges */
  .accueil_presentation img,
  .accueil_presentation video,
  .accueil_presentation iframe {
    display: block;
    margin: 0 auto;
    padding: 0;
    height: auto !important;
    max-height: 56vh;        /* limite la hauteur pour éviter grand vide */
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Photo */
  .photo_accueil_1 {
    width: 92%;
    max-width: 360px;
    height: auto !important;
    margin: 0 auto;
    border-radius: 12px;
  }

  /* Vidéo */
  .video_cathy {
    width: 94%;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
  }

  /* Bloc texte : hauteur auto, pas de scroll par défaut */
  .accueil_presentation_texte {
    width: 100%;
    max-width: 980px;
    height: auto !important;
    min-height: 0;
    padding: 16px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    overflow: visible;
  }

  /* Si tu veux scroll interne pour contenu très long */
  .accueil_presentation_texte.long-content {
    max-height: calc(65vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Typo responsive */
  .texte1 { font-size: clamp(1.6rem * 1.5, 5.5vw * 1.5, 2.4rem * 1.5); line-height: 1.05; margin:0; }
  .texte2 { font-size: clamp(0.95rem, 2.7vw, 1.15rem); margin:0; }
  .texte3 { font-size: clamp(0.9rem, 2.3vw, 1rem); margin:0; }

  .accueil_presentation_signature {
    font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    text-align: center;
    align-self: center;
    margin-top: 6px;
  }

  /* Accueil 2 (cartes/images) : colonne, gap réduit */
  .accueil_2_images {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 14px;
    padding: 0 12px 20px;
  }

  .accueil_2_item img { width: 100%; max-width: 560px; height: auto; display:block; margin:0; }
  .accueil_2_carre_texte, .accueil_2_carre_texte2 { width: min(96%,560px); padding: 14px; }
  .accueil_2_fond { padding-bottom: 20px; }
}

/* Mobile étroit (<=480px) : affiner encore */
@media (max-width:480px) {
  .accueil_presentation { gap: 6px; padding: 10px; }

  .photo_accueil_1 {
    width: 94%;
    max-width: 320px;
    height: auto !important;
    border-radius: 10px;
    margin: 0 auto;
  }

  .video_cathy {
    width: 96%;
    aspect-ratio: 16/9;
    height: auto !important;
    border-radius: 10px;
    margin: 0 auto;
  }

  .accueil_presentation_texte { padding: 12px; }

  .texte1 { font-size: clamp(1.4rem * 1.5, 6.5vw * 1.5, 2.0rem * 1.5); }
  .texte2 { font-size: clamp(0.9rem, 3.2vw, 1rem); }
  .texte3 { font-size: clamp(0.85rem, 2.7vw, 0.95rem); }

  .accueil_2_images { gap: 18px; padding: 0 8px; }
  .accueil_2_item img { width: 100%; border-radius: 10px; margin: 0; }
  .accueil_2_carre_texte, .accueil_2_carre_texte2 { width: 100%; padding: 12px; }
}

/* --------------- NOTES ---------------
1) Ce bloc supprime les marges/paddings parasites à l'intérieur de .accueil_presentation
   (paragraphes, headings, figures, images, iframe, video) pour éliminer les blancs.
2) Si l'espace persiste, il est très probable qu'il vienne d'un élément **hors**
   .accueil_presentation (ex : .accueil_2_fond, un <br> ou un pseudo-élément).
   Dans ce cas envoie-moi une nouvelle capture indiquant le conteneur autour du vide
   (ou le HTML), je te dirai exactement quelle règle ajouter.
------------------------------------------------------------ */
