/* ==========================
   FONTS GOOGLE
========================== */
/* Caveat pour les titres, Montserrat pour le texte général */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* ==========================
   FOND DE PAGE (GÉNÉRAL)
========================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif; /* texte principal */
  color: #3F5E52;
  text-align: center;
  display: flex;
  flex-direction: column; /* empile le header, main et footer verticalement */
  min-height: 100vh; /* force le body à remplir toute la hauteur de la fenêtre */
  background-color: #AFCFC1;
  overflow-x: hidden; /* empêche le scroll horizontal */

  /* --- Fond image pour toutes les pages --- */
  background-image: url("../Images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================
   PAGE D'ACCUEIL - body.home
   Centre le contenu et supprime le scroll vertical
========================== */
body.home {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement le main-content */
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-y: hidden; /* supprime le scroll vertical */
}

/* ==========================
   PAGES <> ACCUEIL
========================== */
body:not(.home) {
	background-attachment: fixed;
}

/* ==========================
   HEADER POUR LES PAGES <> ACCUEIL
========================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px; /* haut/bas gauche/droite*/
  z-index: 1000;
  background: rgba(175,207,193,0.8);
  backdrop-filter: blur(5px);
}

.header .logo {
  width: 50px;
  cursor: pointer;
}

/* ==========================
   MENU BURGER (EN HAUT À DROITE)
========================== */
.menu-toggle {
  position: fixed; /* fixé à l'écran */
  top: 20px;
  right: 20px;
  z-index: 10001; 
  cursor: pointer;
}

/* Lignes du burger */
.menu-toggle div {
  width: 28px;
  height: 3px;
  background-color: #3F5E52;
  margin: 6px 0;
  transition: all 0.3s ease; /* transition douce pour hover */
}

/* Hover sur les lignes du menu */
.menu-toggle:hover div {
  background-color: #D39A8B;
  transform: scaleX(1.2);
}
.menu-toggle:hover div:nth-child(1) {
  transform: translateY(-2px) scaleX(1.2);
}
.menu-toggle:hover div:nth-child(2) {
  transform: scaleX(1.2);
}
.menu-toggle:hover div:nth-child(3) {
  transform: translateY(2px) scaleX(1.2);
}

/* ==========================
   MENU OVERLAY (PANNEAU LATÉRAL)
========================== */
.menu-overlay {
  position: fixed;
  top: 0;
  right: -100%; /* caché par défaut */
  width: 70%;
  max-width: 300px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
  padding-top: 80px;
  transition: right 0.3s ease, background-color 0.2s ease;
  z-index: 10002;
}

/* Menu actif */
.menu-overlay.active {
  right: 0;
}

/* Liens du menu */
.menu-overlay a {
  display: block;
  padding: 15px 25px;
  text-decoration: none;
  color: #3F5E52;
  font-size: 18px;
  border-bottom: 2px solid transparent; /* invisible par défaut */
  transition: all 0.25s ease;
}

/* Hover sur les liens */
.menu-overlay a:hover {
  background-color: rgba(175, 207, 193, 0.2);
  color: #D39A8B;
  padding-left: 30px;
  text-decoration: none;
  border-bottom: 2px solid #D39A8B;
  padding-bottom: 13px;
}

/* Bouton fermeture */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10003;
}

/* Fond sombre derrière le menu */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}
.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================
   CONTENU PRINCIPAL
========================== */
/* Contenu par défaut */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; /* Pour que le texte parte du haut */
  max-width: 1000px;
  margin: 80px auto 40px; /* espace à entre le bloc et les autres éléments */
  padding: 0 20px; /* espace à l'intérieur du bloc */
}


/* Contenu Accueil */
body.home .main-content {
	justify-content: center; /* centrage vertical accueil */
	align-items: center;
	margin: 0 auto;
	padding: 0 20px;
}

/* Encadrement du texte (container) */
.container {
  width: 100%;
  padding: 35px;
  background: rgba(255,255,255,0.55);
  /*backdrop-filter: blur(8px);*/
  border-radius: 14px;
  animation: fadeIn 1.8s ease;
}

body:not(.home) .container{
	max-width: none; /* prend toute la largeur */
	padding: 20px 30px;
	background: rgba(255,255,255,0.45);
	backdrop-filter: blur(8px);
}

/* Animation fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   LOGO DE L'ACCUEIL
========================== */
body.home .logo {
  max-width: 200px;
  margin-bottom: 30px;
  animation: floatLogo 6s ease-in-out infinite;
}

/* Animation respiration logo */
@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ==========================
   LOGO PAGES INTERNES (HEADER)
========================== */
.header-logo {
  max-width: 50px;
  margin: 10px 0;
}

/* ==========================
   TEXTES PRINCIPAUX
========================== */

/* H1 */
.title-text {
  font-family: 'Caveat', cursive; /* police manuscrite pour les titres */
  font-size: 36px;
  margin-bottom: 20px;
}

/* H2 */
.text h2 {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  margin-bottom: 15px;
}

/* Niveau 1 : Texte principal de la page */
.main-text {
  font-family: 'Montserrat', sans-serif; /* police sans-serif pour le corps de texte */
  font-size: 20px;
  margin-bottom: 20px;
}

/* Niveau 2 : Sous-titres ou textes secondaires */
.sub-text {
  font-family: 'Montserrat', sans-serif; /* police sans-serif pour le corps de texte */
  font-size: 18px;
  color: #D39A8B;
  margin-bottom: 10px;
}

/* Niveau 3 : Petits textes, notes, signatures */
.footer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #6F9785;
  margin-bottom: 20px;
}

/* Paragraphes */
.text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ==========================
   SECTION A PROPOS (2 colonnes)
========================== */
.section{
	display: flex;
	align-items: center; /* vertical */
	justify-content: space-between; /* horizontal */
	gap: 40px;
	margin-bottom: 60px;
}

.section:nth-child(even) {
	flex-direction: row-reverse; /* alternance gauche/droite pour les images */
}

/* Texte */
.section .text{
	width: 50%;
	text-align: left;
	border-radius: 12px;
}

/* Image */
.section img{
	max-width: 50%;
	height: auto;
	border-radius: 12px;
	display: block;
	margin: 0 auto; /* centre horizontalement */
}

/* Inversion (image à gauche) */
.section.reverse{
	flex-direction: row-reverse;
}
	
/* ==========================
   BOUTON
========================== */
.cta-button {
  margin-top: 15px;
  display: inline-block;
  padding: 12px 26px;
  background-color: #3F5E52;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.25s ease;
}
.cta-button:hover {
  background-color: #2e463d;
  transform: translateY(-2px);
}

/* ==========================
   CONTACT RAPIDE
========================== */
.contact-quick {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
  font-size: 14px;
}

.contact-quick img {
  width: 40px;
  height: 40px;
  transition: all 0.25s ease;
}
.contact-quick img:hover {
  transform: scale(1.1);
}

/* Bloc contact et mail */
.contact-bloc{
	margin-top: 25px;
}

/* Texte Intro Insta */
.contact-intro {
	margin-top: 20px;
	font-size: 15px;
	color: #6F9785;
}

/* Liens email */
.contact-quick a {
	color: #3F5E52;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.contact-quick a:hover {
	color: #D39A8B;
}

/* ==========================
   LOGO INSTAGRAM
========================== */
.social-logo {
  width: 40px;
  display: block;
  margin: 20px auto 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.social-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================
   DIVIDER
========================== */
.divider {
  font-size: 28px;
  margin-bottom: 10px;
  opacity: 0.7;
}

/* ==========================
   FOOTER
========================== */
footer {
  background-color: #3F5E52;
  color: #F3E5DB;
  padding: 8px;
  font-size: 12px;
  border-top: 2px solid rgba(255,255,255,0.2);
}
.signature {
  opacity: 0.6;
}

/* ==========================
   MEDIA QUIERIES (Tablette et Mobile)
========================== */
/* Pour écrans <=768px (tablette / petits laptops) */
/* Responsive Accueil */
@media (max-width: 768px) {
  body { /* on peut ajuster background-size ou padding si nécessaire */
	background-image: url("../Images/background-mobile.jpg");
  }
  body.home .main-content { align-items: center; text-align: center; margin: 0; padding: 0 15px; }
  body.not(.home) .main-content {max-width: 100%; align-items: center; text-align: center; margin: 0; padding: 0 10px; }
  
  /* {outline: 1px solid red;} Utile pour tester les blocs et vérifier où ça coince*/
  
  .container {width: 95%; margin: 0 auto; padding: 10px 10px; }
  .main-text {font-size: 18px; }
  .sub-text {font-size: 16px; }
  .footer-text {font-size: 14px; }
  .logo {max-width: 160px; }
  .section {flex-direction: column; text-align: center; align-items: stretch; }
  .section .text { width: 100%; max-width: none; margin: 0 auto; order: unset;}
  .section .img {width: 75%; max-width: 300px; height: auto; margin: 15px auto 0 auto; display: block; order: unset; }
  .section:nth-child(even) {flex-direction: column; }
  .text h2 {font-size: 24px; }
  .text p {font-size: 16px; line-height: 1.4;}
  .contact-quick {flex-direction: column; text-align: center; }
  .contact-quick .img, .social-logo {width: 35px; height: 35px}
}
/* Pour les petits mobiles */

@media (max-width: 480px) {
  body.home .main-content, body.not(.home) .main-content {max-width: 95%; align-items: center; text-align: center; margin: 0 auto; padding: 0 10px; }
  
  .main-text {font-size: 16px; }
  .sub-text {font-size: 14px; }
  .footer-text {font-size: 12px; }
  .section . text, .section .img {width: 95%; }
  .logo {max-width: 140px; }
