/*
Theme Name: Crêpes In Side
Theme URI: https://www.crepesinside.com/
Author: OpenAI
Description: Thème WordPress classique sur mesure pour Crêpes In Side.
Version: 5.0.0
Text Domain: crepesinside
*/

:root {
    --cis-orange: #e87925;
    --cis-orange-dark: #cb611a;
    --cis-ink: #1d1d1b;
    --cis-text: #5e5e5e;
    --cis-soft: #f7f6f3;
    --cis-line: #e8e4df;
    --cis-white: #fff;
    --cis-dark: #111;
    --cis-max: 1180px;
    --cis-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--cis-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

.cis-container {
    width: min(var(--cis-max), calc(100% - 48px));
    margin-inline: auto;
}

.cis-narrow {
    max-width: 960px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.cis-topbar {
    height: 38px;
    background: #191919;
    color: #fff;
    font-size: 13px;
}

.cis-topbar .cis-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.cis-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.cis-topbar a:hover {
    color: #f7a765;
}

.cis-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s;
}

.cis-header.is-scrolled {
    box-shadow: 0 7px 28px rgba(0, 0, 0, 0.1);
}

.cis-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 98px;
}

.cis-logo {
    display: flex;
    flex: 0 0 150px;
    align-items: center;
    width: 150px;
    height: 78px;
    min-width: 0;
}

.cis-logo .custom-logo-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cis-logo img.custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 76px !important;
    margin: 0 !important;
    object-fit: contain;
}

.cis-logo-fallback {
    flex-basis: auto;
    width: auto;
}

.cis-logo-mark {
    display: grid;
    place-items: center;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border: 2px solid var(--cis-orange);
    border-radius: 50%;
    color: #272727;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

.cis-logo-mark span {
    color: var(--cis-orange);
}

.cis-logo-text {
    margin-left: 12px;
    color: #222;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.cis-nav {
    margin-left: auto;
}

.cis-nav ul {
    display: flex;
    align-items: center;
    gap: 29px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cis-nav li {
    position: relative;
}

.cis-nav a {
    position: relative;
    display: block;
    padding: 39px 0 35px;
    color: #262626;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cis-nav a::after {
    content: "";
    position: absolute;
    right: 100%;
    bottom: 28px;
    left: 0;
    height: 2px;
    background: var(--cis-orange);
    transition: right 0.25s ease;
}

.cis-nav a:hover,
.cis-nav .current-menu-item > a,
.cis-nav .current_page_item > a {
    color: var(--cis-orange);
}

.cis-nav a:hover::after,
.cis-nav .current-menu-item > a::after,
.cis-nav .current_page_item > a::after {
    right: 0;
}

.cis-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cis-menu-button span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #222;
    transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.cis-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 610px;
    color: #fff;
    text-align: center;
    background:
        url('https://www.crepesinside.com/wp-content/uploads/2023/01/IMG_20220904_122717.jpg')
        center 55% / cover no-repeat;
}

.cis-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.46));
}

.cis-hero-inner {
    width: min(880px, calc(100% - 40px));
    padding: 70px 0 82px;
}

.cis-kicker,
.cis-eyebrow {
    display: block;
    color: var(--cis-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.cis-hero .cis-kicker,
.cis-hero .cis-eyebrow {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.cis-hero h1 {
    margin: 15px 0 24px;
    color: #fff;
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.cis-hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 19px;
    line-height: 1.65;
}

.cis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 23px;
    border: 1px solid var(--cis-orange);
    border-radius: 0;
    background: var(--cis-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.cis-btn:hover,
.cis-btn:focus-visible {
    border-color: var(--cis-orange-dark);
    background: var(--cis-orange-dark);
    transform: translateY(-1px);
}

.cis-btn-outline {
    border-color: #fff;
    background: transparent;
}

.cis-btn-outline:hover,
.cis-btn-outline:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #222;
}

/* Sections */
.cis-section {
    padding: 92px 0;
}

.cis-section-alt {
    background: var(--cis-soft);
}

.cis-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
}

.cis-copy {
    max-width: 560px;
}

.cis-copy h2,
.cis-section h2,
.cis-contact-band h2 {
    margin: 10px 0 24px;
    color: var(--cis-ink);
    font-size: clamp(32px, 4vw, 47px);
    font-weight: 650;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.cis-copy p,
.cis-section-intro {
    color: #686868;
}

.cis-section-intro {
    max-width: 760px;
    margin: 0;
}

.cis-image-frame {
    min-height: 455px;
    background: #ddd center / cover no-repeat;
    box-shadow: var(--cis-shadow);
}

.cis-image-frame.about {
    background-image: url('https://www.crepesinside.com/wp-content/uploads/2023/01/20190704_205917.jpg');
}

.cis-image-frame.events {
    background-image: url('https://www.crepesinside.com/wp-content/uploads/2023/01/soiree-beach-valley-3-septembre-2019-3-1-2.webp');
}

.cis-image-frame.cart {
    background-image: url('https://www.crepesinside.com/wp-content/uploads/2023/01/IMG_20220904_122717.jpg');
}

.cis-image-frame.crepe {
    background-image: url('https://www.crepesinside.com/wp-content/uploads/2023/01/20190704_211233.jpg');
}

/* Cartes de services de l'accueil */
.cis-service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 43px;
}

.cis-service {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    overflow: hidden;
    background-color: #444;
    background-position: center;
    background-size: cover;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.cis-service--events {
    background-image: url('https://www.crepesinside.com/wp-content/uploads/2023/01/soiree-beach-valley-3-septembre-2019-3-1-2.webp');
}

.cis-service--cart {
    background-image: url('https://www.crepesinside.com/wp-content/uploads/2023/01/IMG_20220904_122717.jpg');
}

.cis-service::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 20%, rgba(0, 0, 0, 0.76) 100%);
    transition: background 0.35s;
}

.cis-service:hover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.84));
}

.cis-service > .cis-service-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 34px 36px;
}

.cis-service h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
}

.cis-service h3 a:hover,
.cis-service h3 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cis-service p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.cis-service-link {
    display: inline-block;
    margin-top: 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cis-service-link::after {
    content: " →";
}

.cis-service-link:hover,
.cis-service-link:focus-visible {
    color: #f7a765;
}

/* Raisons */
.cis-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 42px;
}

.cis-card {
    padding: 18px 22px;
    text-align: center;
}

.cis-card-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 19px;
    border: 1px solid #efc29f;
    border-radius: 50%;
    color: var(--cis-orange);
    font-size: 29px;
}

.cis-card h3 {
    margin: 0 0 12px;
    color: #282828;
    font-size: 18px;
    line-height: 1.3;
}

.cis-card p {
    margin: 0;
    color: #707070;
    font-size: 15px;
}

/* Pages internes */
.cis-page-hero {
    position: relative;
    padding: 90px 0 75px;
    background: #2a2927;
    color: #fff;
    text-align: center;
}

.cis-page-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 3px;
    transform: translateX(-50%);
    background: var(--cis-orange);
}

.cis-page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.cis-page-content {
    padding: 86px 0;
}

.cis-page-content > .cis-container {
    max-width: 1180px;
}

.cis-page-content h2,
.cis-page-content h3 {
    color: var(--cis-ink);
    line-height: 1.2;
}

.cis-page-content p {
    margin: 0 0 1.2em;
}

.cis-page-content figure {
    margin: 36px 0;
}

.cis-page-content .wp-block-image img,
.cis-featured-image img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
}

.cis-featured-image {
    margin-top: 0 !important;
}

/* Prestations et articles */
.cis-prestations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    max-width: 1080px;
}

.cis-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.cis-prestation,
.cis-post {
    overflow: hidden;
    border: 1px solid var(--cis-line);
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
}

.cis-prestation:hover,
.cis-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.cis-prestation.has-thumbnail {
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    align-items: stretch;
}

.cis-prestation-thumb,
.cis-post-thumb {
    display: block;
    overflow: hidden;
    background: #eee;
}

.cis-prestation-thumb {
    min-height: 245px;
}

.cis-post-thumb {
    aspect-ratio: 4 / 3;
}

.cis-prestation-thumb img,
.cis-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}

.cis-prestation:hover .cis-prestation-thumb img,
.cis-post:hover .cis-post-thumb img {
    transform: scale(1.035);
}

.cis-prestation-body,
.cis-post-body {
    padding: 26px;
}

.cis-prestation.has-thumbnail .cis-prestation-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.cis-prestation h2,
.cis-prestation h3,
.cis-post h2,
.cis-post h3 {
    margin: 0 0 10px;
    color: #272727;
    font-size: 21px;
    line-height: 1.25;
}

.cis-prestation p,
.cis-post p {
    margin: 0 0 18px;
    color: #777;
}

.cis-meta {
    margin-bottom: 9px;
    color: #999;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cis-pagination {
    margin-top: 38px;
}

/* Contact */
.cis-contact-band {
    padding: 84px 0 78px;
    background: #151515;
    color: #d9d9d9;
}

.cis-contact-band h2 {
    color: #fff;
}

.cis-contact-band .cis-eyebrow {
    color: #f19048;
}

.cis-contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 70px;
}

.cis-contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.cis-detail {
    padding-top: 16px;
    border-top: 2px solid var(--cis-orange);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cis-detail strong {
    display: block;
    margin-bottom: 6px;
    color: #9f9f9f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cis-form {
    display: grid;
    gap: 12px;
}

.cis-form .cis-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cis-form label {
    display: grid;
    gap: 7px;
    color: #4d4d4d;
    font-size: 13px;
    font-weight: 700;
}

.cis-contact-band .cis-form label {
    color: #ddd;
}

.cis-form label > span {
    display: block;
}

.cis-form input,
.cis-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dedede;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cis-form input:focus,
.cis-form textarea:focus {
    border-color: var(--cis-orange);
    box-shadow: 0 0 0 2px rgba(232, 121, 37, 0.12);
}

.cis-form textarea {
    min-height: 150px;
    resize: vertical;
}

.cis-form .cis-btn {
    justify-self: start;
}

.cis-form-note {
    margin: 0;
    color: #8a8a8a;
    font-size: 12px;
}

.cis-alert {
    margin: 0 0 15px;
    padding: 12px 14px;
    background: #edf7ed;
    color: #286128;
}

.cis-alert-error {
    background: #fff0f0;
    color: #872020;
}

.cis-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cis-turnstile-wrap {
    display: flex;
    align-items: center;
    min-height: 65px;
    margin: 4px 0 2px;
}

.cis-turnstile-admin-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed #d0a27f;
    background: #fff8f2;
    color: #7c4a25;
    font-size: 12px;
    font-weight: 400;
}

.cis-map-wrap {
    margin-top: 56px;
    background: #ddd;
}

.cis-map {
    display: block;
    width: 100%;
    height: 405px;
    border: 0;
}

/* Footer */
.cis-footer {
    padding: 21px 0;
    background: #0a0a0a;
    color: #999;
    font-size: 12px;
}

.cis-footer .cis-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cis-footer a {
    color: #d5d5d5;
}

.cis-footer a:hover,
.cis-footer a:focus-visible {
    color: var(--cis-orange);
}

/* Animations */
.js .cis-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .cis-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1020px) {
    .cis-header-row {
        height: 82px;
    }

    .cis-logo {
        flex-basis: 120px;
        width: 120px;
        height: 64px;
    }

    .cis-logo img.custom-logo {
        max-height: 62px !important;
    }

    .cis-logo-mark {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .cis-menu-button {
        display: block;
        margin-left: auto;
    }

    .cis-menu-button.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .cis-menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

    .cis-menu-button.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cis-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 82px);
        overflow: auto;
        margin-left: 0;
        border-top: 1px solid #eee;
        background: #fff;
        box-shadow: 0 18px 28px rgba(0, 0, 0, 0.1);
    }

    .cis-nav.is-open {
        display: block;
    }

    .cis-nav ul {
        display: block;
        width: min(var(--cis-max), calc(100% - 48px));
        margin-inline: auto;
        padding: 8px 0 18px;
    }

    .cis-nav a {
        padding: 15px 2px;
        border-bottom: 1px solid #eee;
    }

    .cis-nav a::after {
        display: none;
    }

    .cis-grid-2,
    .cis-contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cis-contact-grid {
        gap: 42px;
    }

    .cis-cards,
    .cis-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .cis-contact-details {
        grid-template-columns: 1fr;
    }

    .cis-hero {
        min-height: 535px;
    }
}

@media (max-width: 700px) {
    .cis-container {
        width: min(var(--cis-max), calc(100% - 30px));
    }

    .cis-topbar {
        height: 34px;
    }

    .cis-topbar .cis-container {
        justify-content: center;
    }

    .cis-header-row {
        height: 74px;
        gap: 16px;
    }

    .cis-logo {
        flex: 0 0 96px;
        width: 96px;
        height: 60px;
        overflow: hidden;
    }

    .cis-logo .custom-logo-link {
        width: 96px;
        height: 60px;
    }

    .cis-logo img.custom-logo {
        width: auto !important;
        height: auto !important;
        max-width: 96px !important;
        max-height: 58px !important;
    }

    .cis-logo-fallback {
        flex-basis: auto;
        width: auto;
        overflow: visible;
    }

    .cis-logo-mark {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        font-size: 14px;
    }

    .cis-logo-text {
        display: none;
    }

    .cis-nav {
        max-height: calc(100vh - 74px);
    }

    .cis-nav ul {
        width: calc(100% - 30px);
    }

    .cis-hero {
        min-height: 470px;
    }

    .cis-hero-inner {
        padding: 58px 0 65px;
    }

    .cis-hero h1 {
        font-size: 43px;
    }

    .cis-hero p {
        font-size: 17px;
    }

    .cis-section {
        padding: 65px 0;
    }

    .cis-grid-2 {
        gap: 34px;
    }

    .cis-image-frame {
        min-height: 340px;
    }

    .cis-service-cards,
    .cis-cards,
    .cis-posts {
        grid-template-columns: 1fr;
    }

    .cis-service {
        min-height: 330px;
    }

    .cis-service > .cis-service-body {
        padding: 27px;
    }

    .cis-card {
        padding: 8px 0;
        text-align: left;
    }

    .cis-card-icon {
        margin: 0 0 15px;
    }

    .cis-page-hero {
        padding: 65px 0 55px;
    }

    .cis-page-content {
        padding: 60px 0;
    }

    .cis-prestation.has-thumbnail {
        grid-template-columns: 1fr;
    }

    .cis-prestation-thumb {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .cis-contact-band {
        padding: 62px 0;
    }

    .cis-form .cis-row {
        grid-template-columns: 1fr;
    }

    .cis-turnstile-wrap {
        max-width: 100%;
        overflow-x: auto;
    }

    .cis-map-wrap {
        margin-top: 40px;
    }

    .cis-map {
        height: 340px;
    }

    .cis-footer .cis-container {
        display: block;
        text-align: center;
    }

    .cis-footer span {
        display: block;
        margin: 4px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .cis-reveal {
        opacity: 1;
        transform: none;
    }
}
