/* =========================================================
   Wavy Jet — style unique
   Direction : minimal, nautique, sobre
   Palette : #BCD4DE / #A5CCB1 / #A0B9BF
   ========================================================= */

*{box-sizing:border-box}

:root{
    --bg:#f6f5ef;
    --paper:#ffffff;
    --ink:#14222b;
    --muted:#62717a;
    --line:#d9e0df;
    --blue-soft:#BCD4DE;
    --green-soft:#A5CCB1;
    --grey-blue:#A0B9BF;
    --navy:#0d3542;
    --navy-2:#164a59;
    --danger:#9f3a31;
    --danger-bg:#f4d8d5;
    --success:#2d5f45;
    --success-bg:#dceee2;
    --radius:8px;
    --max:1120px;
}

html{scroll-behavior:smooth}

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

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* =========================
   LOGO / HEADER SITE
========================= */

.brand-logo{
    width:auto;
    height:44px;
    object-fit:contain;
    display:block;
}

.logo .brand-logo,
.nav-logo .brand-logo,
.front-logo .brand-logo{
    height:50px;
}

.sidebar-logo .brand-logo,
.auth-logo .brand-logo{
    height:42px;
}

.logo,
.front-logo,
.auth-logo,
.sidebar-logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:700;
    color:var(--navy);
}

.logo span,
.front-logo span,
.auth-brand,
.logo-text{font-weight:700;letter-spacing:.01em}

.site-header,
.front-header{
    background:rgba(246,245,239,.96);
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:30;
}

.site-header{
    min-height:78px;
    padding:14px max(28px, calc((100vw - var(--max)) / 2));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.site-nav,
.front-nav{
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.site-nav a,
.front-nav a{
    font-size:14px;
    font-weight:700;
    color:#29424d;
}

.site-nav a:hover,
.front-nav a:hover{color:var(--navy)}

.btn-small,
.btn-main,
.btn-secondary,
.btn-card,
.btn,
.btn-primary,
.btn-auth,
.btn-front-primary,
.btn-front-ghost,
.btn-ghost,
.btn-danger,
.btn-cancel{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:10px 16px;
    border:1px solid transparent;
    border-radius:var(--radius);
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    transition:background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-small,
.btn-main,
.btn-card,
.btn-primary,
.btn-auth,
.btn-front-primary{
    background:var(--navy);
    color:white!important;
}

.btn-small:hover,
.btn-main:hover,
.btn-card:hover,
.btn-primary:hover,
.btn-auth:hover,
.btn-front-primary:hover{
    background:var(--navy-2);
}

.btn-secondary,
.btn-ghost,
.btn-front-ghost{
    background:transparent;
    border-color:var(--grey-blue);
    color:var(--navy);
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn-front-ghost:hover{
    background:var(--blue-soft);
    border-color:var(--blue-soft);
}

.btn-danger,
.btn-cancel{
    background:var(--danger-bg);
    color:var(--danger);
    border-color:#e2aaa4;
}

.btn-danger:hover,
.btn-cancel:hover{background:#ecc6c1}
.btn-cancel--disabled{opacity:.45;pointer-events:none}

/* =========================
   ACCUEIL
========================= */

.hero-simple{
    max-width:var(--max);
    margin:64px auto 34px;
    padding:0 28px;
    display:grid;
    grid-template-columns:minmax(0, 1.4fr) 360px;
    gap:38px;
    align-items:stretch;
}

.hero-text{
    padding:54px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.tagline{
    margin:0 0 18px;
    color:var(--navy);
    font-size:13px!important;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.12em;
}

.hero-text h1{
    max-width:760px;
    margin:0 0 22px;
    font-size:clamp(44px,7vw,84px);
    line-height:.96;
    letter-spacing:-.055em;
    color:var(--ink);
}

.hero-text p{
    max-width:620px;
    margin:0;
    color:var(--muted);
    font-size:18px;
}

.hero-buttons{
    margin-top:34px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.hero-card{
    background:linear-gradient(160deg,var(--blue-soft),var(--green-soft));
    border:1px solid rgba(13,53,66,.18);
    padding:34px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    min-height:420px;
    color:var(--navy);
}

.hero-icon{
    font-size:58px;
    line-height:1;
    margin-bottom:auto;
    color:var(--navy);
}

.hero-card h2{margin:0 0 10px;font-size:30px;letter-spacing:-.03em}
.hero-card p{margin:0;color:#264c57}

.info-row{
    max-width:var(--max);
    margin:0 auto 70px;
    padding:0 28px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.info-row div{
    padding:26px 22px;
    border-right:1px solid var(--line);
}
.info-row div:last-child{border-right:0}
.info-row strong{display:block;font-size:34px;line-height:1;color:var(--navy);letter-spacing:-.03em}
.info-row span{display:block;margin-top:8px;color:var(--muted);font-size:14px}

.page-content,
.steps-section{
    max-width:var(--max);
    margin:0 auto;
    padding:0 28px 78px;
}

.section-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:26px;
    border-bottom:1px solid var(--line);
    padding-bottom:18px;
}

.section-heading p{
    margin:0;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:12px;
    font-weight:800;
}

.section-heading h2{
    margin:0;
    color:var(--ink);
    font-size:36px;
    letter-spacing:-.04em;
}

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:22px;
}

.jetski-card{
    background:var(--paper);
    border:1px solid var(--line);
    display:flex;
    flex-direction:column;
}

.jetski-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    filter:saturate(.9);
}

.card-body{padding:22px}
.card-body h3{margin:0 0 8px;font-size:23px;letter-spacing:-.03em;color:var(--ink)}
.card-body p{margin:0;color:var(--muted);font-size:14px}
.card-bottom{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.price{font-weight:800;color:var(--navy)}

.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step-card{background:transparent;border-top:3px solid var(--grey-blue);padding:20px 0 0}
.step-card span{display:block;color:var(--navy);font-size:13px;font-weight:800;margin-bottom:16px}
.step-card h3{margin:0 0 8px;font-size:22px;letter-spacing:-.03em}
.step-card p{margin:0;color:var(--muted)}
.empty-box{background:var(--paper);border:1px solid var(--line);padding:32px;color:var(--muted)}

.site-footer{
    border-top:1px solid var(--line);
    padding:28px;
    display:flex;
    justify-content:center;
    gap:18px;
    color:var(--muted);
    font-size:14px;
}

/* =========================
   ADMIN
========================= */

.layout{
    min-height:100vh;
    display:grid;
    grid-template-columns:240px 1fr;
    background:var(--bg);
}

.sidebar{
    background:#eef3f1;
    border-right:1px solid var(--line);
    padding:24px 18px;
    display:flex;
    flex-direction:column;
    gap:24px;
}

.sidebar-logo{
    padding-bottom:18px;
    border-bottom:1px solid var(--line);
}

.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.nav-item{
    padding:10px 12px;
    color:#3d555f;
    border-left:3px solid transparent;
    font-size:14px;
    font-weight:700;
}
.nav-item:hover,.nav-item.active{
    background:#dfecea;
    color:var(--navy);
    border-left-color:var(--navy);
}
.sidebar-footer{margin-top:auto;color:var(--muted);font-size:13px}

.topbar{
    min-height:84px;
    padding:20px 34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    background:rgba(246,245,239,.9);
}
.topbar-title h1,.page-header h1{margin:0;font-size:28px;letter-spacing:-.04em;color:var(--ink)}
.topbar-sub{display:block;margin-top:3px;color:var(--muted);font-size:14px}
.main-content{padding:34px;display:flex;flex-direction:column;gap:34px}

.kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
.kpi-card{
    background:var(--paper);
    border:1px solid var(--line);
    padding:22px;
}
.kpi-label{display:block;color:var(--muted);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.kpi-value{display:block;margin-top:10px;font-size:34px;line-height:1;font-weight:800;color:var(--navy);letter-spacing:-.04em}

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:18px;
    margin-bottom:18px;
}

.form-card,
.filter-form,
.table-wrapper,
.auth-card,
.resa-form,
.resa-premium-card,
.empty-resa{
    background:var(--paper);
    border:1px solid var(--line);
}

.form-card,.filter-form{padding:22px;margin-bottom:22px}
.form-card{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:end}
.filter-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.filter-row input{min-width:280px;flex:1}

.form-group{margin:0}
.form-group label{display:block;margin-bottom:7px;font-size:13px;font-weight:800;color:#344b55}
.form-group input,.form-group select,.form-group textarea,.filter-row input{
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border:1px solid #cfd8d7;
    background:#fbfbf8;
    color:var(--ink);
    font:inherit;
    border-radius:0;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.filter-row input:focus{
    outline:2px solid var(--blue-soft);
    border-color:var(--navy);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}

.table-wrapper{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{background:#edf3f2;color:#263e49;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
tr:hover td{background:#f8faf7}

.badge-dispo,.resa-status{
    display:inline-block;
    padding:4px 9px;
    font-size:12px;
    font-weight:800;
    border:1px solid transparent;
}
.badge-dispo.oui,.status-active,.status-future{background:var(--success-bg);color:var(--success);border-color:#bdddc8}
.badge-dispo.non,.status-past{background:var(--danger-bg);color:var(--danger);border-color:#e2aaa4}

.msg-success,.msg-error{
    border:1px solid transparent;
    padding:12px 14px;
    margin-bottom:16px;
    font-weight:700;
}
.msg-success{background:var(--success-bg);color:var(--success);border-color:#bdddc8}
.msg-error{background:var(--danger-bg);color:var(--danger);border-color:#e2aaa4}

/* =========================
   AUTH / CLIENT / RESERVER
========================= */

.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
    background:linear-gradient(135deg,#eef5f4 0%,var(--bg) 55%,#edf2ef 100%);
}
.auth-card{width:min(460px,100%);padding:34px}
.auth-title{margin:26px 0 4px;font-size:32px;letter-spacing:-.04em;color:var(--ink)}
.auth-sub,.auth-switch{color:var(--muted)}
.auth-form{display:flex;flex-direction:column;gap:16px;margin-top:24px}
.btn-auth{width:100%}
.auth-switch a{font-weight:800;color:var(--navy)}

.front-header-inner{
    max-width:var(--max);
    margin:0 auto;
    min-height:78px;
    padding:14px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.front-main{max-width:var(--max);margin:0 auto;padding:54px 28px 80px}
.front-hero{border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:32px}
.front-hero h1{margin:0 0 8px;font-size:42px;letter-spacing:-.04em;color:var(--ink)}
.front-hero p{margin:0;color:var(--muted)}
.front-section h2{font-size:28px;letter-spacing:-.03em}
.resa-form{max-width:680px;padding:26px}

.espace-wrap{max-width:var(--max);margin:0 auto;padding:50px 28px 80px}
.profil-header{
    display:grid;
    grid-template-columns:64px 1fr auto;
    align-items:center;
    gap:18px;
    border-bottom:1px solid var(--line);
    padding-bottom:26px;
    margin-bottom:30px;
}
.profil-avatar{
    width:64px;height:64px;
    display:flex;align-items:center;justify-content:center;
    background:var(--blue-soft);
    color:var(--navy);
    font-weight:800;
    font-size:24px;
}
.profil-info h1{margin:0;font-size:30px;letter-spacing:-.04em}
.profil-sub{margin:4px 0 0;color:var(--muted)}
.resa-section-title{font-size:28px;letter-spacing:-.03em;margin:0 0 20px}
.resa-list-premium{display:flex;flex-direction:column;gap:14px}
.resa-premium-card{
    display:grid;
    grid-template-columns:130px 1fr auto;
    gap:18px;
    align-items:center;
    padding:14px;
}
.fake-img,.resa-premium-img img{
    width:130px;height:92px;
    background:linear-gradient(135deg,var(--blue-soft),var(--grey-blue));
    display:flex;align-items:center;justify-content:center;
    color:var(--navy);font-size:34px;
    object-fit:cover;
}
.resa-premium-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.resa-premium-top h3{margin:0;font-size:21px}
.resa-premium-dates,.resa-premium-total{margin:6px 0 0;color:var(--muted);font-size:14px}
.empty-resa{padding:34px;text-align:center}
.empty-resa h3{margin-top:0}

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

@media(max-width:980px){
    .hero-simple{grid-template-columns:1fr;margin-top:34px}
    .hero-card{min-height:240px}
    .kpi-grid{grid-template-columns:repeat(2,1fr)}
    .form-card{grid-template-columns:1fr 1fr}
    .steps-grid,.info-row{grid-template-columns:1fr}
    .info-row div{border-right:0;border-bottom:1px solid var(--line)}
    .layout{grid-template-columns:1fr}
    .sidebar{position:static}
    .sidebar-nav{display:grid;grid-template-columns:repeat(2,1fr)}
}

@media(max-width:680px){
    .site-header,.front-header-inner{align-items:flex-start;flex-direction:column}
    .site-nav,.front-nav{gap:10px}
    .hero-simple,.page-content,.steps-section,.espace-wrap,.front-main{padding-left:18px;padding-right:18px}
    .hero-text{padding:34px 0}
    .hero-text h1{font-size:42px}
    .card-bottom,.profil-header,.resa-premium-card{grid-template-columns:1fr;display:grid}
    .profil-cta{justify-self:start}
    .kpi-grid,.form-card,.form-row{grid-template-columns:1fr}
    .main-content{padding:20px}
    .topbar{padding:18px 20px}
    .brand-logo,.logo .brand-logo,.front-logo .brand-logo{height:40px}
}
