/* Police */
@import "fonts.css";

/* Variable */
:root{
    --color-teal-900: #14504a;
    --color-gold-600: #b88746;
    --color-gold-claire-600: #edd08c;
    --color-background: #eff0da;
}

/* Body */
body{
    z-index: 0;
    font-family: "Playwrite US Modern","Alex Brush", serif;
}

/* ====== MAIN CONTENT LAYOUT ====== */
.main-conteners{
    position: relative;
    background-color: var(--color-background);
    padding: 56px 6% 72px;
}

.main-conteners::after{
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: clamp(120px, 14vw, 220px);
    height: clamp(120px, 14vw, 220px);
    background: url("./../img/fairy/Image_b8nxwmb8nxwmb8nx.png") no-repeat center;
    background-size: contain;
    opacity: 0.9;
    pointer-events: none;
    border-radius: 50%;
}

.main-conteners::before{
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: clamp(120px, 14vw, 220px);
    height: clamp(120px, 14vw, 220px);
    background: url("./../img/fairy/Image_gqfhc6gqfhc6gqfh.png") no-repeat center;
    background-size: contain;
    opacity: 0.9;
    pointer-events: none;
    border-radius: 50%;
    z-index: 3;
    left: 0%;
    top: 40%;
}

body::after{
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: clamp(120px, 14vw, 220px);
    height: clamp(120px, 14vw, 220px);
    background: url("./../img/fairy/Image_juk0q9juk0q9juk0.png") no-repeat center;
    background-size: contain;
    opacity: 0.9;
    pointer-events: none;
    border-radius: 50%;
    z-index: 3;
    top: 65%;
}

@media (max-width: 1200px){
    .main-conteners::before,
    .main-conteners::after,
    body::after{
        content: none;
        display: none;
    }
}

/* Typo utilitaire */
.h2{
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin: 0 0 12px;
    color: var(--color-gold-claire-600);
    font-weight: 700;
}
.muted{ opacity:.85; }

/* Blocks & container */
.block{ margin: 36px 0; }
.container{ max-width: 1100px; margin: 0 auto; }
.container h2{
    margin-bottom: 25px;
}

/* Cartes */
.grid{
    display: grid;
    gap: 18px;
}
.cards-3{
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.card{}
.cards-3 .card{
    flex: 1 1 260px;
}
.card h3{
    margin: 0 0 8px;
    color: var(--color-gold-600);
    font-weight: 700;
}

/* Hero */
.hero .container{
    text-align: center;
}

.hero p{
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}
.hero .container div{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Values */
.values .card p{ line-height: 1.6; }

/* Pédagogies */
.list-check{
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.list-check li{
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
}
.list-check li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: var(--color-gold-600);
    -webkit-mask: url("../img/check.svg") no-repeat center;
    mask: url("../img/check.svg") no-repeat center/contain;
}

/* Services grid */
.services-grid{
    grid-template-columns: repeat(4, 1fr);
}
.service{
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.service h3{
    color: var(--color-teal-900);
    margin: 0 0 6px;
}

/* Témoignages */
.quote p{ margin: 0 0 8px; font-style: italic; }
.quote footer{ opacity:.7; }

/* CTA */
.cta .cta-box{
    background: linear-gradient(90deg,rgba(20,80,74,1) 0%, rgba(207,172,45,1) 100%);
    color:#fff;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn{
    display:inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--color-gold-600);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform .25s ease, background-color .25s ease;
}
.btn:hover{
    transform: translateY(-2px);
    background: var(--color-gold-claire-600);
}

/* FAQ */
.faq-item{
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
}
.faq-item > summary{
    cursor: pointer;
    font-weight: 600;
    color: var(--color-teal-900);
    padding-bottom: 10px;
}
.faq-item[open]{
    border-color: var(--color-gold-600);
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.imageContainer{
    width: 100%;
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background-image: url("../img/acceuil/star_yellow.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s ease;
}

.imageContainer .imageText{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    color: black;
    pointer-events: none;
    line-height: 1.2em;
}

.imageContainer:hover{
    transform: translateY(-6px);
    transition: ease all 0.5s;
    background-image: url("../img/acceuil/star_white.png");
}

.photo-mosaic{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.mosaic-item{
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #dde2d3;
    min-height: 220px;
}

.mosaic-item-large{
    grid-row: span 2;
    min-height: 452px;
}

.mosaic-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform .35s ease;
}

.mosaic-item:hover img{
    transform: scale(1.03);
}

.mosaic-lightbox{
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.82);
    padding: 24px;
}

.mosaic-lightbox[hidden]{
    display: none;
}

.mosaic-lightbox-image{
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,.45);
}

.mosaic-lightbox-close{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mosaic-lightbox-close:hover{
    background: rgba(255, 255, 255, 0.28);
}
/* Responsive contenu */
@media (max-width: 640px){
    .cards-3{
        flex-direction: column;
    }
    .photo-mosaic{
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mosaic-item,
    .mosaic-item-large{
        min-height: 210px;
    }
    .imageContainer .imageText{
        font-size: 0.95rem;
    }
    .services-grid{ grid-template-columns: 1fr; }
    .cta .cta-box{ flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 1024px){
    .cards-3{
        flex-wrap: wrap;
    }
    .services-grid{ grid-template-columns: 1fr 1fr; }
}
