/* ==========================================================================
   Tramulimacchia : feuille de style v2
   Un seul fichier, mobile-first, aucune dépendance.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
    color-scheme: light;

    --sea-900: #0d3b3f;
    --sea-700: #14646a;
    --sea-500: #1a7d82;
    --sea-200: #a8dcd9;
    --sea-100: #e9f5f4;
    --sand-100: #faf6ee;
    --sand-300: #f0e2c4;
    --coral-600: #c2492f;
    --ink-900: #142526;
    --ink-600: #46605f;
    --white: #ffffff;

    --font-display: "Playpen Sans", cursive;
    --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-sm: 0.875rem;
    --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --text-xl: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
    --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 4.75rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.5rem;
    --space-6: 4rem;
    --container: 72rem;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-1: 0 1px 3px rgb(13 59 63 / 0.12), 0 4px 14px rgb(13 59 63 / 0.08);
    --header-h: 6.5rem; /* header mobile : rangée marque + rangée nav */
}

@media (min-width: 900px) {
    :root { --header-h: 4rem; }
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
[hidden] { display: none !important; }

/* --- Fonts -------------------------------------------------------------- */
@font-face {
    font-family: "Playpen Sans";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("../fonts/playpen-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/rubik-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Base --------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--white);
}

h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

h2 {
    font-size: var(--text-2xl);
    line-height: 1.2;
    color: var(--sea-900);
    margin-bottom: var(--space-4);
}

h3 {
    font-size: var(--text-xl);
    line-height: 1.3;
    color: var(--sea-900);
}

a { color: var(--sea-700); }
a:hover { color: var(--sea-500); }

:focus-visible {
    outline: 3px solid var(--sea-500);
    outline-offset: 2px;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-3);
    z-index: 100;
    padding: var(--space-2) var(--space-3);
    background: var(--sea-900);
    color: var(--white);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --- Layout ------------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-3);
}

.section { padding-block: var(--space-6); }
.section-tint { background: var(--sea-100); }
.section-sand { background: var(--sand-100); }

/* --- Boutons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.7rem 1.4rem;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
}
.btn-primary { background: var(--sea-700); color: var(--white); }
.btn-primary:hover { background: var(--sea-500); color: var(--white); }
.btn-secondary {
    background: var(--white);
    color: var(--sea-700);
    border: 2px solid var(--sea-700);
}
.btn-secondary:hover { color: var(--sea-500); border-color: var(--sea-500); }
.btn-accent { background: var(--coral-600); color: var(--white); }
.btn-accent:hover { background: #a93d26; color: var(--white); }
.btn-ghost {
    background: rgb(255 255 255 / 0.14);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.28); color: var(--white); }

/* --- Header ------------------------------------------------------------- */
.season-banner {
    padding: var(--space-2) var(--space-3);
    background: var(--coral-600);
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 1px 4px rgb(13 59 63 / 0.15);
}

.header-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-2) var(--space-3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
}

.brand img { width: 32px; height: 32px; }
@media (min-width: 640px) {
    .brand img { width: 40px; height: 40px; }
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.5vw, 1.9rem);
    font-weight: 700;
    color: var(--sea-900);
    line-height: 1;
}
.brand:hover { color: var(--sea-700); }
.brand img { border-radius: 50%; }

.site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
}
.site-header nav ul {
    display: flex;
    gap: var(--space-2) var(--space-3);
    justify-content: space-between;
    white-space: nowrap;
}
@media (max-width: 400px) {
    .site-header nav ul { gap: var(--space-2); }
}
.site-header nav a {
    display: inline-block;
    padding: var(--space-1) 0;
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    color: var(--sea-900);
    border-bottom: 2px solid transparent;
}
@media (min-width: 640px) {
    .site-header nav a { font-size: var(--text-base); }
}
.site-header nav a:hover {
    color: var(--sea-700);
    border-bottom-color: var(--sea-500);
}

.btn-phone {
    margin-left: auto;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
    font-size: var(--text-sm);
}
.btn-phone .phone-full { display: none; }
@media (min-width: 640px) {
    .btn-phone .phone-full { display: inline; }
    .btn-phone .phone-short { display: none; }
}

@media (min-width: 900px) {
    .site-header nav { order: 0; width: auto; margin-left: auto; overflow: visible; }
    .btn-phone { margin-left: 0; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    display: grid;
    min-height: min(88vh, 46rem);
}

.hero picture,
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgb(13 59 63 / 0.55), rgb(13 59 63 / 0.35));
}

.hero-content {
    position: relative;
    align-self: center;
    justify-self: center;
    text-align: center;
    color: var(--white);
    padding: var(--space-6) var(--space-3);
    max-width: 46rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.1;
}

.hero .script {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.tagline {
    margin-top: var(--space-3);
    font-size: var(--text-lg);
    text-wrap: balance;
}

.hero-actions {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.hero-badges {
    position: relative;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-3);
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-sm);
    background: rgb(13 59 63 / 0.45);
}
.hero-badges li { display: flex; align-items: center; gap: var(--space-2); }
.hero-badges li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sea-200);
}

/* --- Wingfoil ------------------------------------------------------------ */
.wingfoil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
    align-items: start;
}
.wingfoil-text { grid-column: 1 / -1; }

.wingfoil-text p + p { margin-top: var(--space-3); }
.wingfoil-text .btn { margin-top: var(--space-4); }

.wingfoil-photo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

figcaption {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--ink-600);
}

@media (min-width: 900px) {
    .wingfoil-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .wingfoil-text { grid-column: auto; }
}

.offer-cards {
    margin-top: var(--space-5);
    display: grid;
    gap: var(--space-3);
}
.offer-cards li {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: var(--space-4);
    border-top: 4px solid var(--sea-500);
}
.offer-cards .price { font-size: var(--text-lg); margin-top: var(--space-2); }
.offer-cards .price strong { font-size: var(--text-2xl); color: var(--sea-700); }
.offer-cards .price-alt { color: var(--ink-600); font-size: var(--text-sm); }

@media (min-width: 640px) {
    .offer-cards { grid-template-columns: repeat(3, 1fr); }
}

/* --- Activités ----------------------------------------------------------- */
.activity-featured {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    background: linear-gradient(160deg, var(--sea-700), var(--sea-900));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    color: var(--white);
}
.activity-featured picture,
.activity-featured img {
    border-radius: var(--radius-sm);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.activity-featured-body p { margin-top: var(--space-2); }
.activity-featured-body .btn { margin-top: var(--space-3); }
.activity-featured h3 { color: var(--white); }

@media (min-width: 640px) {
    .activity-featured { grid-template-columns: 1fr 1.4fr; align-items: center; }
}

.activity-group-title {
    margin-bottom: var(--space-3);
}
.activity-grid + .activity-group-title {
    margin-top: var(--space-5);
}

.activity-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: start;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(13 59 63 / 0.16), 0 8px 24px rgb(13 59 63 / 0.12);
}
.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}
.card-body { padding: var(--space-3) var(--space-4) var(--space-4); }
.card-body p { margin-top: var(--space-2); color: var(--ink-600); }

/* --- Tarifs --------------------------------------------------------------- */
#tarifs h3 { margin: var(--space-5) 0 var(--space-3); }
#tarifs h3:first-of-type { margin-top: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

th, td {
    padding: var(--space-2) var(--space-3);
    text-align: left;
}

thead th {
    background: var(--sea-700);
    color: var(--white);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tbody tr + tr { border-top: 1px solid var(--sea-100); }
tbody th { font-weight: 600; }
tbody .highlight { background: var(--sea-100); }
tbody .highlight th {
    border-left: 3px solid var(--coral-600);
    padding-left: calc(var(--space-3) - 3px);
}

.loyalty-note {
    margin-top: var(--space-2);
    color: var(--ink-600);
    font-size: var(--text-sm);
}

.payment {
    margin-top: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink-600);
}

@media (max-width: 639px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead { position: absolute; clip-path: inset(50%); }
    tbody tr { padding: var(--space-2) 0; }
    tbody th { padding-bottom: 0; }
    td {
        display: flex;
        justify-content: space-between;
        gap: var(--space-3);
        padding-block: var(--space-1);
    }
    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--ink-600);
    }
}

/* --- Groupes ------------------------------------------------------------------ */
.groupes-grid {
    display: grid;
    gap: var(--space-4);
    align-items: center;
}

.groupes-list {
    margin-top: var(--space-3);
    display: grid;
    gap: var(--space-2);
}
.groupes-list li {
    position: relative;
    padding-left: var(--space-4);
    color: var(--ink-600);
}
.groupes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral-600);
}

.groupes-text .btn { margin-top: var(--space-4); }

.groupes-photo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 900px) {
    .groupes-grid { grid-template-columns: 1.1fr 1fr; }
}

/* --- FAQ ---------------------------------------------------------------- */
.faq-list {
    display: grid;
    gap: var(--space-2);
    max-width: 48rem;
}
.faq-list details {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-1);
}
.faq-list summary {
    cursor: pointer;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    color: var(--sea-900);
}
.faq-list summary:hover { color: var(--sea-700); }
.faq-list details p {
    padding: 0 var(--space-4) var(--space-3);
    color: var(--ink-600);
}

/* --- Carte ------------------------------------------------------------------ */
.carte-intro {
    max-width: 42rem;
    color: var(--ink-600);
    margin-bottom: var(--space-3);
}

#carte address {
    font-style: normal;
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.carte-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

#map-content { margin-top: var(--space-4); }

.windsup-link {
    margin-top: var(--space-4);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--ink-600);
}

.map-grid {
    display: grid;
    gap: var(--space-3);
}
.map-grid iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}
@media (min-width: 900px) {
    .map-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Footer ------------------------------------------------------------------ */
footer {
    background: var(--sea-900);
    color: var(--white);
}
footer .container { padding-block: var(--space-6); }
footer h2 { color: var(--white); }
footer h3 {
    color: var(--sea-200);
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
footer a { color: var(--white); text-underline-offset: 3px; }
footer a:hover { color: var(--sea-200); }
footer p { margin-top: var(--space-2); }
footer p a { display: inline-flex; align-items: center; gap: var(--space-2); }

.contact-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.mentions {
    background: var(--sand-300);
    color: var(--ink-900);
    font-size: var(--text-sm);
}
.mentions .container {
    padding-block: var(--space-4);
    display: grid;
    gap: var(--space-3);
}
.mentions a { color: var(--sea-700); }
@media (min-width: 900px) {
    .mentions .container { grid-template-columns: repeat(3, 1fr); }
}

/* --- Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
