/* =============================== */
/* FONDU PAGE                      */
/* =============================== */

body {
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.visible {
    opacity: 1;
}

body.fadeout {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* =============================== */
/* POLICES INTER                   */
/* =============================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Thin.woff2') format('woff2');
  font-weight: 100;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2');
  font-weight: 200;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
}

/* =============================== */
/* BASE GÉNÉRALE                   */
/* =============================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: auto;
}

body {
  color: #333;
  font-family: 'Inter', sans-serif;
  background: #f7f7f7;
  position: relative;
  overflow-x: hidden;
}

/* =============================== */
/* TITRES & TEXTES                 */
/* =============================== */

h1, h2, h3, h4 {
  font-weight: 200;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
}

h1 {
    font-size: 60px;
    color: #337147;
}

h2 {
    font-size: 44px;
    color: #333;
}

h2 a:hover {
    color: #337147;
}

p {
  font-size: 17px;
  line-height: 1.6;
}

main a {
  color: #333;
  text-decoration: none;
}

/* =============================== */
/* ESPACEMENT DU CONTENU           */
/* =============================== */

main {
  margin-top: 40px;
  padding: 0 20px; /* 20px à gauche et à droite pour tout le contenu */
  box-sizing: border-box;
}

/* =============================== */
/* SECTION INTRO : DENTELLES DE TERRE */
/* =============================== */

.grant-titre {
    /* plus de padding ici, il est géré par main */
}

.grant-titre .inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: justify;
}

.grant-titre .inner p {
	
  font-size: 18px;
  line-height: 1.7;
  font-weight: 200;
  margin-bottom: 18px;
  color: #444;
	
}

/* =============================== */
/* SECTION INTRO GALERIE           */
/* =============================== */

.intro-galerie {
  width: 100%;
  /* plus de padding ici, il est géré par main */
  background: #f7f7f7;
}

.intro-galerie h2 {
  font-size: 46px;
  font-weight: 200;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #333;
  margin-top: 0px;
  padding-bottom: 0px;
}

.separator {
    height: 100px;
    align-items: flex-start;
}

.separator2 {
    height: 20px;
    align-items: flex-start;
}

/* =============================== */
/* SECTION INTRO : DENTELLES ET CARCANS */
/* =============================== */

.intro-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  padding-top: 40px;
  gap: 80px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

/* COLONNE GAUCHE */
.intro-left {
  flex: 1;
  overflow-wrap: break-word;
  text-align: justify;
}

.intro-title {
    text-align: left !important;
}

.intro-left p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 200;
  margin-bottom: 18px;
  color: #444;
}

/* COLONNE DROITE */
.intro-right {
  flex: 1;
  display: flex;
  justify-content: center;
  text-align: center !important;
}

.intro-right img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Titre cliquable */
.intro-title a {
  color: #333;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.intro-title a:hover {
  opacity: 0.9;
}

.intro-title a::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,0,0,0.5);
  border-bottom: 2px solid rgba(0,0,0,0.5);
  transform: translateY(-40%) translateY(6px) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.intro-title a:hover::after {
  opacity: 0.8;
  transform: translateY(-50%) rotate(-45deg);
}

/* Image cliquable */
.intro-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
}

.intro-image-link img {
  width: 100%;
  height: auto;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.intro-image-link:hover img {
  filter: grayscale(100%);
  opacity: 0.88;
}

.intro-image-link::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(255,255,255,0.8);
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-image-link:hover::after {
  opacity: 1;
}

/* =============================== */
/* RESPONSIVE (≤ 1199px)           */
/* Aligné sur le seuil du menu     */
/* desktop (1200px), pour que les  */
/* grandes tablettes en paysage    */
/* gardent des titres proportionnés*/
/* =============================== */

@media (max-width: 1199px) {

    main {
        margin-top: -30px !important;
        padding: 0 20px; /* toujours 20px sur mobile */
        box-sizing: border-box;
    }

    .grant-titre .inner h1 {
        font-size: 40px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: center;
    }
	
	.grant-titre .inner p {
		font-size: 16px;
        line-height: 1.6;
        text-align: justify;
        max-width: 100%;
        margin: 0
		
	}

    .intro-container {
        flex-direction: column-reverse;
        gap: 25px !important;
        align-items: center;
        max-width: 100% !important;
        padding-top: 35px !important;
        padding-bottom: 35px !important;
        border-bottom: 2px solid rgba(0, 0, 0, 0.12) !important;
    }

    .intro-title {
        text-align: center !important;
    }

    .intro-galerie h2 {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-align: center !important;
        color: #333;
        padding-bottom: 10px;
    }

    .intro-left p {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
        max-width: 100%;
        margin: 0
    }

    .intro-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .intro-image-link img {
        width: auto;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
}
