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

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

html, body {
    background: #f7f7f7;
}

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

body.visible {
    opacity: 1;
}

body.fadeout {
    opacity: 0;
}




/* =============================== */
/* 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: #398717;
}

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

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

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

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

main {
  margin-top: 40px;
	padding: 0 40px ;
    box-sizing: border-box;
}

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

.grant-titre .inner {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
	
}



.intro-galerie {
  width: 100%;
  padding: 0px 20px 0px; /* ← 60px devient 20px */
  background: #f7f7f7;

}

/* Toutes les sections après la première */

  .intro-galerie h2 {
  font-size: 46px;
  font-weight: 200;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #333;
  margin-top: 0px;    /* ✔ supprime l’espace sous le titre */
  padding-bottom: 0px;  /* ✔ petit espace contrôlé */
	  
  
}


.separator {
    height: 100px; /* ou 100, 140, ce que tu veux */
	align-items: flex-start;
}


.separator2 {
    height: 50px; /* ou 100, 140, ce que tu veux */
	align-items: flex-start;
}



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

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

.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;color:#398717;
}

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

/* 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;
}




@media (max-width: 1200px) {

    main {
        margin-top: -30px !important;
        padding: 0 40px;
        box-sizing: border-box;
    }

    /* Titre H1 de la page (C’est le Nord, etc.) */
    .grant-titre .inner h1 {
        font-size: 40px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: center;
    }

    /* Conteneur des blocs (texte + image) */
    .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;
    }

    /* Titre de chaque bloc */
    .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;
    }

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

    /* Image centrée */
    .intro-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

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

    /* Suppression du padding horizontal global */
    .intro-galerie {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
