
/* Page d'accueik index.html */

.home-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
    isolation: isolate;
    background: var(--theme-03);
}

.home-content {
    position: relative;
    z-index: 2;
}

.home-content .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height, 0px));
    min-height: calc(100dvh - var(--nav-height, 0px));
    width: 100%;
    padding: 0 1rem 2rem;
    gap: clamp(0.8rem, 2vh, 1.6rem);
}

.home-hero-logo {
    width: clamp(240px, 44vw, 640px);
    max-width: 88vw;
    max-height: min(46vh, 420px);
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.bubble-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bubble-dot {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    will-change: transform, opacity;
}

.home-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.home-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1512 / 1136;
    max-width: none;
    display: block;
}




/* contenu */

main  {

    margin-inline: auto;
    max-width: 1200px;
    padding: 20vh 10vw;
    text-align: center;
}

.story-title-wrap {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.story-title-wrap h2 {
    margin: 0;
}

.story-title-tiki {
    position: absolute;
    top: -18px;
    right: -192px;
    width: 272px;
    height: auto;
    transform: rotate(16deg);
    animation: tiki-float 2.8s ease-in-out infinite;
    z-index: -1;

}

.story-video-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 28px auto 0;
    border: 4px solid var(--theme-09);
    border-radius: 26px;
    overflow: visible;
    box-sizing: border-box;
    background: var(--theme-10);
    box-shadow: 0 0 0 3px rgba(244, 231, 185, 0.92), 0 16px 36px rgba(19, 83, 100, 0.26);
}

.story-video-media {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.story-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.story-video-flower {
    position: absolute;
    left: -28px;
    bottom: -34px;
    width: 132px;
    height: auto;
    transform: rotate(-12deg);
    z-index: 3;
    pointer-events: none;
}

@keyframes tiki-float {
    0% {
        transform: rotate(16deg) translateY(0);
    }
    50% {
        transform: rotate(12deg) translateY(-8px);
    }
    100% {
        transform: rotate(16deg) translateY(0);
    }
}












@media (max-width: 1300px) {
    .home-content .hero {
        padding-bottom: 1.25rem;
    }

    .home-hero-logo {
        width: clamp(220px, 72vw, 480px);
        max-height: 36vh;
    }

    .home-background {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .home-bg-image {
        left: 50%;
        width: 1300px;
        min-width: 1300px;
        height: auto;
        transform: translateX(-50%);
    }

    .hero-actions {
        gap: 0.65rem;
    }

    .bouton {
        min-width: 138px;
        padding: 0.55rem 1rem;
    }

    .story-title-tiki {
        width: 258px;
        right: -70px;
        top: -212px;
    }

    .story-video-frame {
        width: 100%;
        max-width: 820px;
        border-width: 3px;
        border-radius: 18px;
    }

    .story-video-flower {
        width: 98px;
        left: -18px;
        bottom: -22px;
    }
}

@media (min-width: 1700px) {
    .home-bg-image {
        width: 100%;
        height: auto;
    }
}

.partners-section {
    margin-top: clamp(2.5rem, 6vw, 5rem);
    width: min(1700px, 96vw);
    margin-left: 50%;
    transform: translateX(-50%);
}

.partners-intro {
    margin: 0.65rem auto 0;
    max-width: 58ch;
    color: var(--theme-01);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.45;
}

.partners-grid {
    margin-top: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.8rem, 1.8vw, 1.4rem);
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.partner-card {
    flex: 0 1 clamp(150px, 10vw, 210px);
    max-width: 210px;
    min-height: clamp(110px, 9vw, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 180ms ease;
}

.partner-card:hover {
    transform: translateY(-3px);
}

.partner-card img {
    max-width: 100%;
    max-height: clamp(96px, 8vw, 140px);
    object-fit: contain;
    display: block;
}

@media (max-width: 1100px) {
    .partner-card {
        flex-basis: clamp(180px, 22vw, 240px);
        max-width: 240px;
        min-height: 130px;
    }

    .partner-card img {
        max-height: clamp(102px, 10vw, 145px);
    }
}

@media (max-width: 520px) {
    .partners-grid {
        gap: 0.9rem;
    }

    .partner-card {
        flex: 1 1 min(48vw, 220px);
        max-width: 230px;
        min-height: 130px;
    }
}

.standard-section {
    width: min(1700px, 96vw);
    margin: clamp(1.4rem, 3.6vw, 2.6rem) auto;
    margin-left: 50%;
    transform: translateX(-50%);
    color: var(--theme);
    font-family: 'TikiTropic', sans-serif;
    text-align: center;
}

.standard-section > * {
    margin-left: auto;
    margin-right: auto;
}

.standard-layout {
    display: grid;
    grid-template-columns: minmax(280px, 44%) minmax(340px, 56%);
    gap: clamp(1rem, 2.4vw, 2rem);
    align-items: center;
}

.standard-copy h2 {
    margin: 0;
    text-align: center;
}

.standard-copy {
    display: grid;
    justify-items: center;
}

.standard-text {
    margin: 0.65rem 0 0;
    text-align: center;
    line-height: 1.5;
}

.standard-list {
    margin: 0.9rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.standard-list li {
    text-align: center;
    line-height: 1.4;
}

.standard-phone {
    justify-self: center;
    margin-inline: auto;
    width: max-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--theme);
    font-weight: 900;
    font-size: clamp(2rem, 5.4vw, 4.4rem);
    line-height: 1;
    transform: none;
}

.standard-phone-icon {
    font-size: 0.8em;
}

.standard-phone-number {
    font-family: 'TikiTropicBold', 'TikiTropic', sans-serif;
    letter-spacing: 0.02em;
}

.standard-phone:hover {
    color: #329684;
}

@media (max-width: 900px) {
    .standard-layout {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .standard-phone {
        justify-self: center;
        transform: none;
        font-size: clamp(1.7rem, 8vw, 3rem);
    }

    .standard-copy h2,
    .standard-text,
    .standard-list,
    .standard-list li {
        text-align: center;
    }

    .standard-list {
        padding-left: 0;
        list-style-position: inside;
    }
}

@media (max-width: 520px) {
    .standard-list li {
        font-size: 0.95rem;
    }
}

/* ========================= */
/* LISTEUX SECTION */
/* ========================= */

.listeux-section {
    width: 100vw;
    margin-top: clamp(3rem, 7vw, 6rem);

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    text-align: center;
}

.listeux-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    align-items: flex-start;

    gap: 2.5rem 2rem;

    margin-top: clamp(2rem, 4vw, 3rem);

    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================= */
/* CARD */
/* ========================= */

.listeux-card {
    position: relative;
    flex: 0 0 auto;

    width: 200px;
    height: 200px;

    overflow: visible;
    transition: transform 0.2s ease;
}

.listeux-card:hover {
    transform: translateY(-6px);
}

.listeux-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 50%;

    border: 5px solid var(--theme-09);

    box-shadow: 0 12px 22px rgba(20, 69, 76, 0.25);
}

/* ========================= */
/* BADGE */
/* ========================= */

.badge {
    position: absolute;
    z-index: 5;

    left: 50%;
    bottom: -18px;

    transform: translateX(-50%) rotate(-5deg);

    padding: 0.45rem 0.8rem;

    border-radius: 999px;
    border: 2px solid #14454c;

    font-family: 'TikiTropicBold', sans-serif;
    font-size: 0.95rem;

    color: #fff9f2;
    white-space: nowrap;

    background: var(--theme);

    box-shadow:
        0 2px 0 rgba(255,255,255,0.3) inset,
        0 4px 0 #14454c,
        0 8px 16px rgba(20, 40, 42, 0.25);
}

.listeux-card:nth-child(2n) .badge {
    transform: translateX(-50%) rotate(5deg);
}

/* ========================= */
/* COULEURS */
/* ========================= */

.theme-1 .badge { background: var(--theme); }
.theme-2 .badge { background: var(--theme-01); }
.theme-3 .badge { background: var(--theme-02); }
.theme-4 .badge { background: var(--theme-04); }
.theme-5 .badge { background: var(--theme-05); }
.theme-6 .badge { background: var(--theme-06); color: #14454c; }
.theme-7 .badge { background: var(--theme-08); }
.theme-8 .badge { background: var(--theme-09); }
.theme-9 .badge { background: var(--theme-11); }
.theme-10 .badge { background: var(--theme-12); }
.theme-11 .badge { background: var(--theme-13); color: #14454c; }
.theme-12 .badge { background: var(--theme-14); }
.theme-13 .badge { background: var(--theme-15); }
.theme-14 .badge { background: #ef8f5e; }
.theme-15 .badge { background: #3aa7b4; }
.theme-16 .badge { background: #d9b65f; color: #14454c; }




/* on corrige le pb de titre sur mobile qui prend trop de largeur */

.story-title-wrap {
    width: 100%;
    max-width: 100%;
}

.story-title-wrap h2 {
    max-width: 100%;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    letter-spacing: normal;
}

@media (max-width: 700px) {
    main {
        padding: 12vh 5vw;
    }
}





/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
    .listeux-card {
        width: 135px;
        height: 135px;
    }
}

@media (max-width: 600px) {
    .listeux-card {
        width: 120px;
        height: 120px;
    }

    .badge {
        font-size: 0.8rem;
        bottom: -16px;
    }
}
