/* ================================================================
   V6 - STYLE PRINCIPAL
   ================================================================ */

:root {
    --rose: #d26767;
    --rose-clair: #e8a096;
    --creme: #fff8f2;
    --creme-2: #f6eae1;
    --chocolat: #2c1b15;
    --chocolat-2: #4f352c;
    --texte: #3a2923;
    --texte-clair: #74625a;
    --blanc: #ffffff;
    --largeur: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--creme);
    color: var(--texte);
    line-height: 1.55;
}

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

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

.conteneur {
    width: min(calc(100% - 70px), var(--largeur));
    margin: 0 auto;
}


/* ================================================================
   HERO
   ================================================================ */

.hero {
    min-height: 760px;
    position: relative;
    overflow: hidden;
    color: white;
    background: #24140f;
}

.hero-bg {
    position: absolute;
    inset: -30px;

    background-image: url("../images/hero-moka.jpg");
    background-size: cover;
    background-position: center 30%;

    /*
       Le flou masque les éléments autour du gâteau
       sans modifier le fichier photo lui-même.
    */
    filter: blur(24px) saturate(.85);
    transform: scale(1.12);
    opacity: .48;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(31,17,12,.96) 0%,
            rgba(31,17,12,.85) 43%,
            rgba(31,17,12,.45) 70%,
            rgba(31,17,12,.28) 100%
        );
}


/* ================================================================
   EN-TÊTE
   ================================================================ */

.entete {
    position: relative;
    z-index: 10;
}

.entete-contenu {
    min-height: 98px;

    display: grid;
    grid-template-columns: 1.2fr auto auto;
    align-items: center;
    gap: 38px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icone {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 2px solid var(--rose-clair);
    border-radius: 50%;

    color: var(--rose-clair);
    font-size: 1.5rem;
}

.logo span:last-child {
    display: flex;
    flex-direction: column;
}

.logo strong {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 1.9rem;
    line-height: 1;
}

.logo small {
    margin-top: 6px;

    color: var(--rose-clair);

    font-size: .66rem;
    font-weight: 900;

    letter-spacing: .25em;
    text-transform: uppercase;
}

.menu {
    display: flex;
    gap: 28px;

    font-size: .8rem;
    font-weight: 900;

    text-transform: uppercase;
}

.menu a {
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.menu a:hover {
    border-color: var(--rose-clair);
}

.telephone-entete {
    padding: 13px 18px;

    border-radius: 9px;

    background: var(--rose);

    font-weight: 900;
}


/* ================================================================
   HERO GRILLE
   ================================================================ */

.hero-grille {
    min-height: 650px;

    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1.05fr;

    gap: 70px;
    align-items: center;
}

.hero-texte {
    padding-bottom: 45px;
}

.sur-titre {
    margin: 0 0 10px;

    font-size: .78rem;
    font-weight: 900;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(4.2rem, 6vw, 7rem);

    line-height: .88;
    letter-spacing: -.05em;
}

.manuscrit {
    margin: 13px 0 5px;

    color: #e88882;

    font-family: "Brush Script MT", "Segoe Script", cursive;

    font-size: 2rem;
}

.localisation {
    margin-top: 14px;
    font-weight: 800;
}


/* ================================================================
   ACTIONS
   ================================================================ */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 24px;
}

.action {
    min-width: 170px;

    padding: 12px 18px;

    display: flex;
    flex-direction: column;

    border-radius: 8px;

    transition: transform .2s ease;
}

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

.action strong {
    font-size: .8rem;
}

.action span {
    margin-top: 2px;
    font-size: .72rem;
}

.appel {
    background: var(--rose);
}

.whatsapp {
    background: rgba(70,82,52,.83);
    border: 1px solid rgba(255,255,255,.3);
}

.galerie-btn {
    background: #fff1e8;
    color: var(--texte);
}


/* ================================================================
   AVANTAGES
   ================================================================ */

.avantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.avantages > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avantages b {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(180,101,58,.3);

    font-size: 1.2rem;
}

.avantages span {
    display: flex;
    flex-direction: column;
}

.avantages strong {
    font-size: .73rem;
}

.avantages small {
    color: rgba(255,255,255,.7);
    font-size: .61rem;
}


/* ================================================================
   PHOTO PRINCIPALE

   Ici le cadrage coupe volontairement la personne et le carrelage
   au maximum grâce à object-fit + object-position.
   ================================================================ */

.hero-photo-wrap {
    position: relative;
}

.hero-photo {
    height: 545px;

    overflow: hidden;

    border-radius: 28px;

    border: 1px solid rgba(255,255,255,.17);

    box-shadow: 0 25px 60px rgba(0,0,0,.30);
}

.hero-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       Le gâteau est centré et le bas de la photo est volontairement
       coupé pour limiter le carrelage / la personne.
    */
    object-position: 50% 24%;
}

.badge {
    position: absolute;

    right: -18px;
    bottom: 25px;

    width: 160px;
    height: 160px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 5px double #c87c71;
    border-radius: 50%;

    background: #fff2e8;
    color: #8a4f47;

    box-shadow: 0 15px 35px rgba(0,0,0,.22);
}

.badge strong {
    margin: 5px 0;

    font-family: Georgia, serif;
    font-size: .76rem;
}

.badge small {
    font-size: .66rem;
}


/* ================================================================
   SECTIONS GÉNÉRALES
   ================================================================ */

.section {
    padding: 78px 0;
}

.titre-section {
    max-width: 760px;
    margin-bottom: 35px;
}

.titre-section.centre {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.rose {
    color: var(--rose);
}

.titre-section h2,
.noel h2,
.contact h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.3rem, 4vw, 4rem);

    line-height: 1;
}

.titre-section > p:last-child {
    color: var(--texte-clair);
}


/* ================================================================
   GALERIE
   ================================================================ */

.creations {
    background:
        radial-gradient(circle at 50% 0%, #fff, transparent 40%),
        var(--creme);
}

.galerie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.carte-realisation {
    position: relative;

    min-height: 315px;

    overflow: hidden;

    border-radius: 13px;

    background: #ddd;

    box-shadow: 0 10px 28px rgba(72,43,32,.09);
}

.carte-realisation img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.carte-realisation:hover img {
    transform: scale(1.035);
}

.carte-realisation.rotation-90 img {
    width: 140%;
    height: 140%;

    left: -20%;
    top: -20%;

    transform: rotate(90deg);
}

.carte-realisation.rotation-90:hover img {
    transform: rotate(90deg) scale(1.025);
}


/* Rotation 180° générique pour une éventuelle photo qui en aurait besoin. */
.carte-realisation.rotation-180 img {
    transform: rotate(180deg);
}

.carte-realisation.rotation-180:hover img {
    transform: rotate(180deg) scale(1.035);
}

.carte-realisation::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(30,17,13,.82),
            rgba(30,17,13,0) 58%
        );
}

.carte-realisation-contenu {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 17px;

    color: white;
}

.carte-realisation h3 {
    margin: 0;

    font-family: Georgia, serif;
    font-size: 1.12rem;
}

.carte-realisation p {
    margin: 3px 0 0;

    color: rgba(255,255,255,.78);
    font-size: .74rem;
}


/* ================================================================
   NOËL
   ================================================================ */

.noel {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(circle at 90% 30%, rgba(180,70,64,.24), transparent 35%),
        linear-gradient(135deg, #712326, #3d1c1c);

    color: white;
}

.noel::before {
    content: "❄";
    position: absolute;

    left: -20px;
    top: -85px;

    color: rgba(255,255,255,.06);

    font-size: 18rem;
}

.noel-titre {
    max-width: 760px;
    margin-bottom: 38px;
}

.noel-sur-titre {
    color: #f5c3bc;
}

.noel-titre > p:last-child {
    color: rgba(255,255,255,.73);
}

.noel-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.noel-carte {
    overflow: hidden;

    border-radius: 17px;

    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.13);
}

.noel-carte img {
    width: 100%;
    height: 350px;

    object-fit: cover;
}

.noel-carte > div {
    padding: 16px 19px;

    display: flex;
    flex-direction: column;
}

.noel-carte strong {
    font-family: Georgia, serif;
    font-size: 1.25rem;
}

.noel-carte span {
    color: rgba(255,255,255,.7);
    font-size: .76rem;
}

.bouton-noel {
    display: inline-block;

    margin-top: 28px;

    padding: 13px 22px;

    border-radius: 8px;

    background: #fff3e9;
    color: #5a2526;

    font-weight: 900;
}


/* ================================================================
   COMMANDER
   ================================================================ */

.commander {
    background: var(--creme-2);
}

.etapes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.etapes article {
    min-height: 120px;

    padding: 18px;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    border: 1px solid #ead9d0;
    border-radius: 13px;

    background: rgba(255,255,255,.64);
}

.etapes b {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--rose);
    color: white;

    font-size: 1.35rem;
}

.etapes strong {
    font-size: .86rem;
}

.etapes p {
    margin: 4px 0 0;

    color: var(--texte-clair);
    font-size: .75rem;
}


/* ================================================================
   CONTACT
   ================================================================ */

.contact {
    background: var(--chocolat);
    color: white;
}

.contact-grille {
    display: grid;
    grid-template-columns: 1fr .9fr;

    gap: 70px;
    align-items: center;
}

.contact-sur-titre {
    color: var(--rose-clair);
}

.contact-grille > div:first-child > p:last-child {
    color: rgba(255,255,255,.7);
}

.contact-liens {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
}

.contact-liens a {
    padding: 15px 20px;

    display: flex;
    flex-direction: column;

    border-bottom: 1px solid rgba(255,255,255,.13);
}

.contact-liens a:last-child {
    border-bottom: 0;
}

.contact-liens span {
    color: #eca39a;

    font-size: .65rem;
    font-weight: 900;

    letter-spacing: .12em;
    text-transform: uppercase;
}


/* ================================================================
   FOOTER
   ================================================================ */

.pied-page {
    padding: 19px 0;

    background: var(--rose);
    color: white;
}

.pied-page-contenu {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    font-size: .74rem;
}


/* ================================================================
   TABLETTE
   ================================================================ */

@media (max-width: 1150px) {

    .entete-contenu {
        grid-template-columns: 1fr auto;
    }

    .menu {
        display: none;
    }

    .hero-grille {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .avantages {
        grid-template-columns: 1fr 1fr;
    }

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

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


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 760px) {

    .conteneur {
        width: min(calc(100% - 28px), var(--largeur));
    }

    .entete-contenu {
        min-height: 88px;

        grid-template-columns: 1fr;

        padding: 13px 0;
    }

    .telephone-entete {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-grille {
        min-height: auto;

        grid-template-columns: 1fr;

        padding: 55px 0 65px;
    }

    .hero h1 {
        font-size: clamp(3.7rem, 17vw, 5.3rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action {
        width: 100%;
    }

    .hero-photo {
        height: 460px;
    }

    .badge {
        display: none;
    }

    .galerie,
    .noel-grille,
    .etapes,
    .contact-grille {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .carte-realisation {
        min-height: 370px;
    }

    .noel-carte img {
        height: 300px;
    }

    .pied-page-contenu {
        flex-direction: column;
    }
}
