/* =========================================================
   La Mer à Boire — style.css
   Ambiance : bistrot gourmand classe, bord de mer, terre & mer
   ========================================================= */

/* ---------- Base ---------- */

:root {
    --deep-sea: #0b2f36;
    --sea: #1f5e68;
    --soft-sea: #dceceb;
    --foam: #f4faf8;
    --ivory: #fffaf1;
    --sand: #e8d7b7;
    --warm-sand: #d7bd8a;
    --earth: #7d5537;
    --copper: #b4784f;
    --gold: #c9a24e;
    --ink: #102326;
    --muted: #6d7777;
    --white: #ffffff;

    --radius-small: 14px;
    --radius-medium: 24px;
    --radius-large: 36px;

    --shadow-soft: 0 18px 45px rgba(10, 35, 39, 0.12);
    --shadow-strong: 0 28px 70px rgba(10, 35, 39, 0.22);

    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(215, 189, 138, 0.28), transparent 35%),
        linear-gradient(180deg, var(--ivory) 0%, var(--foam) 45%, #ffffff 100%);
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

section {
    position: relative;
    padding: 90px 0;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--deep-sea);
    line-height: 1.05;
    font-weight: 600;
}

h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
    color: var(--muted);
}

::selection {
    background: var(--gold);
    color: var(--deep-sea);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 241, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(31, 94, 104, 0.12);
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--deep-sea);
    letter-spacing: -0.04em;
}

.logo::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 5px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.92rem;
    font-weight: 650;
    color: rgba(16, 35, 38, 0.74);
}

.main-nav a {
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--deep-sea);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ---------- Hero ---------- */

.hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0 110px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    right: -260px;
    top: -220px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(31, 94, 104, 0.20), transparent 62%),
        radial-gradient(circle, rgba(201, 162, 78, 0.18), transparent 52%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: -160px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(125, 85, 55, 0.12), transparent 65%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(38px, 6vw, 86px);
    align-items: center;
}

.hero-label,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--earth);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-label::before,
.section-label::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold);
}

.hero-subtitle {
    max-width: 650px;
    margin-top: 26px;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    color: rgba(16, 35, 38, 0.76);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-badges span {
    padding: 10px 14px;
    border: 1px solid rgba(31, 94, 104, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--deep-sea);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(10, 35, 39, 0.06);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.94rem;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-sea), var(--sea));
    color: var(--white);
    box-shadow: 0 18px 35px rgba(31, 94, 104, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 24px 44px rgba(31, 94, 104, 0.36);
}

.btn-secondary {
    background: var(--gold);
    color: var(--deep-sea);
    box-shadow: 0 16px 30px rgba(201, 162, 78, 0.26);
}

.btn-light {
    background: rgba(255, 255, 255, 0.72);
    color: var(--deep-sea);
    border: 1px solid rgba(31, 94, 104, 0.14);
}

.hero-image {
    position: relative;
    isolation: isolate;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 26px -22px -26px 22px;
    z-index: -1;
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, var(--sand), var(--sea));
    opacity: 0.7;
}

.hero-image::after {
    content: "Quiberon";
    position: absolute;
    left: 26px;
    bottom: 26px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.84);
    color: var(--deep-sea);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    backdrop-filter: blur(10px);
}

.hero-image img {
    height: clamp(430px, 60vw, 680px);
    object-fit: cover;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
}

/* ---------- Sections générales ---------- */

.section-intro {
    max-width: 780px;
    margin-bottom: 46px;
}

.section-intro p:not(.section-label) {
    margin-top: 18px;
    font-size: 1.05rem;
}

/* ---------- About ---------- */

.about {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(220, 236, 235, 0.42));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.about-card {
    min-height: 245px;
    padding: 34px;
    border-radius: var(--radius-medium);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 248, 0.88));
    border: 1px solid rgba(31, 94, 104, 0.10);
    box-shadow: var(--shadow-soft);
}

.about-card h3 {
    margin-bottom: 16px;
}

.about-card p {
    color: rgba(16, 35, 38, 0.68);
}

/* ---------- Bandeau infos ---------- */

.info-strip {
    padding: 34px 0;
    background:
        linear-gradient(135deg, rgba(11, 47, 54, 0.96), rgba(31, 94, 104, 0.94)),
        radial-gradient(circle at top right, rgba(201, 162, 78, 0.35), transparent 45%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.info-item {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.info-item h3 {
    margin-bottom: 8px;
    color: var(--sand);
    font-size: 1.18rem;
}

.info-item p,
.info-item a {
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- Menu ---------- */

.menu-section {
    background:
        linear-gradient(180deg, var(--ivory), #ffffff 70%),
        radial-gradient(circle at 10% 20%, rgba(201, 162, 78, 0.16), transparent 34%);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.menu-category {
    overflow: hidden;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 94, 104, 0.12);
    box-shadow: var(--shadow-soft);
}

.menu-category img {
    height: 260px;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.03);
}

.menu-category h3 {
    padding: 28px 30px 10px;
}

.menu-list {
    padding: 0 30px 30px;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(31, 94, 104, 0.10);
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list span {
    color: var(--ink);
    font-weight: 700;
}

.menu-list em {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(201, 162, 78, 0.17);
    color: var(--earth);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-note {
    max-width: 760px;
    margin: 34px auto 0;
    padding: 22px 28px;
    text-align: center;
    border-radius: 999px;
    background: rgba(220, 236, 235, 0.68);
    color: var(--deep-sea);
}

.menu-note p {
    color: var(--deep-sea);
    font-weight: 650;
}

/* ---------- Avis ---------- */

.reviews-section {
    background:
        linear-gradient(135deg, rgba(11, 47, 54, 0.96), rgba(16, 35, 38, 0.96)),
        radial-gradient(circle at top left, rgba(201, 162, 78, 0.20), transparent 40%);
}

.reviews-section h2,
.reviews-section .section-label {
    color: var(--ivory);
}

.reviews-section .section-label::before {
    background: var(--gold);
}

.reviews-section .section-intro p:not(.section-label) {
    color: rgba(255, 250, 241, 0.72);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review-card {
    padding: 34px;
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.review-rating {
    margin-bottom: 18px;
    color: var(--gold);
    letter-spacing: 0.14em;
}

.review-card p {
    color: rgba(255, 250, 241, 0.82);
}

/* ---------- Galerie ---------- */

.gallery-section {
    background:
        linear-gradient(180deg, #ffffff, var(--foam)),
        radial-gradient(circle at bottom left, rgba(31, 94, 104, 0.12), transparent 38%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 125px;
    gap: 16px;
}

.gallery-grid img {
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(10, 35, 39, 0.13);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease;
}

.gallery-grid img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 52px rgba(10, 35, 39, 0.20);
    filter: saturate(1.05) contrast(1.04);
}

/* Composition harmonisée : mer, plats, terre, desserts */
.gallery-grid img:nth-child(1) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(2) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(3) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(4) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(5) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(6) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(7) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(8) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(9) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(10) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(11) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(12) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(13) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(14) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(15) {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-grid img:nth-child(16) {
    grid-column: span 7;
    grid-row: span 2;
}

/* ---------- Contact ---------- */

.contact-section {
    background:
        linear-gradient(135deg, var(--ivory), rgba(220, 236, 235, 0.78));
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 32px;
    align-items: stretch;
}

.contact-content,
.contact-details {
    padding: clamp(32px, 5vw, 54px);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 94, 104, 0.12);
    box-shadow: var(--shadow-soft);
}

.contact-content p:not(.section-label) {
    margin-top: 20px;
    font-size: 1.06rem;
}

.contact-details {
    background:
        linear-gradient(145deg, rgba(11, 47, 54, 0.96), rgba(31, 94, 104, 0.94));
}

.contact-details h3 {
    margin-bottom: 22px;
    color: var(--sand);
}

.contact-details li {
    padding: 15px 0;
    color: rgba(255, 250, 241, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details strong {
    color: var(--white);
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 30px 0;
    background: var(--deep-sea);
}

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

.site-footer p,
.footer-links a {
    color: rgba(255, 250, 241, 0.72);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--sand);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .header-container {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 6px;
    }

    .hero {
        min-height: auto;
        padding-top: 60px;
    }

    .hero-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: 520px;
    }

    .about-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

    .menu-categories {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 115px;
    }

    .gallery-grid img:nth-child(n) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .gallery-grid img:nth-child(16) {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    section {
        padding: 68px 0;
    }

    .main-nav {
        font-size: 0.86rem;
    }

    .hero {
        padding-bottom: 76px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-image::before {
        inset: 16px -10px -16px 10px;
    }

    .hero-image img {
        height: 420px;
        border-radius: 28px;
    }

    .hero-badges span {
        font-size: 0.8rem;
    }

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

    .about-card,
    .review-card {
        padding: 26px;
    }

    .menu-category {
        border-radius: 28px;
    }

    .menu-category img {
        height: 220px;
    }

    .menu-category h3,
    .menu-list {
        padding-left: 22px;
        padding-right: 22px;
    }

    .menu-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .menu-note {
        border-radius: 24px;
    }

    .gallery-grid {
        display: block;
    }

    .gallery-grid img {
        height: 280px;
        margin-bottom: 16px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
