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

/* =============================== */
/* FONDU PAGE — VERSION OPTIMALE   */
/* =============================== */

html, body {
    background: #f7f7f7;
}

body {
    margin: 0;
    padding: 0;

    /* FONDU UNIFIÉ */
    opacity: 0;
    transition: opacity 0.8s ease;

    /* TON STYLE CONSERVÉ */
    color: #222;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

body.visible {
    opacity: 1;
}

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

body::before {
    display: none !important;
}

/* Ton bloc cc conservé */
cc {
    margin-top: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================== */
/* SECTION S2                      */
/* =============================== */

#s2 {
    background: #f7f7f7;
    color: #222;
    overflow: visible;
    position: relative;
    font-size: 17px;
    line-height: 1.6;
    padding: 50px 0;
    box-sizing: border-box;
}

#s2 .inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}
#s3 {
    background: #f7f7f7;
    color: #222;
    overflow: visible;
    position: relative;
    font-size: 17px;
    line-height: 1.6;
    padding: 50px 0;
    box-sizing: border-box;
}

#s3 .inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

#s3 .s2-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4vw;
    width: 88vw;
    max-width: 1400px;
}

/* =============================== */
/* LAYOUT DESKTOP                  */
/* =============================== */

.s2-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4vw;
    width: 88vw;
    max-width: 1400px;
}

/* IMAGE — gauche */
.s2-leftimg-wrapper {
    padding: 80px 30px 30px 30px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: center;
}

.s2-leftimg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Desktop : limite stricte à 400px */
@media (min-width: 769px) {
    .s2-leftimg {
        max-width: 400px;
    }
}

/* TEXTE */
.s2-right {
    max-width: 900px;
    padding-left: 60px;
    text-align: justify;
}

.s2-right h2 {
    font-size: 56px;
    font-weight: 200;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
    color: #222;
}

.text-desktop {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
	text-align: justify;
}

/* =============================== */
/* BOUTON EN SAVOIR +              */
/* =============================== */

.s2-linkbox {
    padding-top: 40px;
    text-align: left;
    display: block;
}

.s2-linknav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 1.3rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.35rem 1.3rem;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: background 0.45s ease, color 0.25s ease;
}

.s2-linknav:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
}

/* =============================== */
/* SECTION CARTE GRILLON           */
/* =============================== */

#carte-gillons {
  width: 100%;
  height: 500px;
}

#carte-gillons iframe {
  width: 100%;
  height: 100%;
  display: block;padding:0;
}

/* =============================== */
/* GRANDES TABLETTES (1001px – 1199px) */
/* iPad Pro 12.9" portrait, Surface Pro, */
/* Galaxy Tab paysage, etc. — avant, ces largeurs */
/* retombaient sur le layout desktop (colonnes    */
/* côte à côte + texte écrasé sur ~350-400px).    */
/* On s'aligne sur le seuil du menu desktop        */
/* (1200px) pour que header et contenu basculent   */
/* ensemble.                                       */
/* =============================== */

@media (min-width: 1001px) and (max-width: 1199px) {

    .s2-container {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 40px;
        box-sizing: border-box;
    }

    #s2 .inner {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .s2-leftimg-wrapper {
        padding: 40px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .s2-leftimg {
        width: 55%;
        max-width: 480px;
        height: auto;
    }

    .s2-right {
        max-width: 700px;
        margin: 0 auto;
        padding: 0 20px;
        text-align: justify;
    }

    .s2-right h2 {
        font-size: 48px;
        text-align: center;
    }
}

/* =============================== */
/* TABLETTE (≤ 1000px)             */
/* =============================== */

@media (max-width: 1000px) {

    .s2-container {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 30px;
        box-sizing: border-box;
    }

    #s2 .inner {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .s2-leftimg-wrapper {
        padding: 60px 0 !important; /* image à ~60px du header */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .s2-leftimg {
        width: 90%;
        max-width: 600px;
        height: auto;
    }

    .s2-right {
        padding: 0 30px !important; /* padding latéral confortable */
        max-width: 100%;
        text-align: left;
    }

    .s2-right h2 {
        font-size: 42px;
        text-align: center !important;
    }
}

/* =============================== */
/* MOBILE (≤ 768px)                */
/* =============================== */

@media (max-width: 768px) {

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    #s2 .inner {
        padding-top: 0px;
        padding-bottom: 20px;
    }

    .s2-container {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .s2-leftimg-wrapper {
        padding: 60px 0 20px 0 !important; /* image à ~60px du header */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .s2-leftimg {
        width: 90% !important;
        max-width: 600px !important;
        
    }

    .s2-right {
        width: 100%;
        padding: 0 20px !important; /* padding latéral pour éviter le collage */
        
    }
	h2 {text-align: center !important; }
	
    .s2-right h2 {
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center !important;
    }

    .s2-right h3 {
        text-align: center !important;
    }
	.text-desktop {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
	text-align: justify;
}
}
