/* Theme variables (set from charte graphique) */
:root {
  --color-primary: #0B5D7A; /* Océan Atlantique */
  --color-primary-600: #1269B0;
  --color-secondary: #1E8FA8; /* Île d'Oléron */
  --color-accent: #cb8c23; /* Sable / accents */
  --color-bg: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-text: #0B1F2A;
  --color-text-white: #FFFFFF;
  --color-text-muted: #405361;
  --color-text-muted-white: #EFEFEF;
  /* From charte: RVB 18/105/176 and RVB 203/140/35 */
  --color-hero-blue: #1269B0;
  --color-hero-orange: #CB8C23;
  --color-hero-white: #FFFFFF;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,.08);
  --grad-ocean: linear-gradient(135deg, #0B5D7A 0%, #1E8FA8 100%);
  --grad-sand: radial-gradient(1200px 600px at 20% -10%, rgba(229,183,0,.18), transparent 60%), radial-gradient(900px 600px at 120% 10%, rgba(255,255,255,.35), transparent 50%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  font-family: "Minion Pro", Georgia, "Times New Roman", Times, serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; font-weight: 600; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.btn:not(.btn-accent):not(.btn-outline):hover { filter: brightness(0.50); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-600); border-color: var(--color-primary-600); color: var(--color-text-white); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #FFFFFF; }
.btn-accent:hover { filter: brightness(0.85); text-decoration: none; color: #fff;}

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 88px 0; position: relative; }
.section.alt { background: #ecf2f6; }
.section.ocean { background: var(--grad-ocean); color: #fff; }
.section.sand { background: var(--grad-sand), #fff; }
.divider-top, .divider-bottom { position: absolute; left: 0; right: 0; height: 80px; pointer-events: none; }
.divider-top { top: -1px; }
.divider-bottom { bottom: -1px; }
.divider svg { display: block; width: 100%; height: 100%; }
.section-title { font-size: clamp(24px, 3vw, 40px); margin: 0 0 16px; line-height: 1.2; }
.section-lead { margin: 0 0 32px; color: var(--color-text-muted); }
.section-lead-light { margin: 0 0 32px; color: var(--color-text-muted-white); }

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px; background: #000; color: #fff; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.75); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: transform .25s ease; width: 100%; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; /* padding: 14px 0; */ width: 100%;}
.brand-group { display: flex; align-items: center; padding-left: 12px; padding-right: 12px; }
.brand-logo { display: inline-flex; /* border-radius: 10px; */ overflow: hidden; /* background: #fff; box-shadow: var(--shadow-sm); */}
.brand-logo img { width: calc(64px + 6vw); object-fit: contain; display: block; /* max-width: 128px; */}
.brand { display: flex; flex-direction: column; font-weight: 700; color: var(--color-text); font-family: "Nilland", "Minion Pro", Georgia, "Times New Roman", Times, serif; }
.brand-top { font-size: 18px; letter-spacing: .2px; }
.brand-bottom { font-size: 12px; color: var(--color-text-muted); margin-top: -2px; }

nav#nav { padding-right: 12px;}

.site-nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: inline-block; padding: 10px 10px; border-radius: 10px; font-weight: 600; }
.site-nav a.active { background: rgba(11,93,122,.08); color: var(--color-primary-600); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; border-radius: 8px; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--color-text); transition: transform .3s, opacity .2s, top .3s; }
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 27px; }
.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
#nav a:not(.btn-accent):hover { background: var(--color-primary-600); border-color: var(--color-primary-600); color: var(--color-text-white); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 160px 0 120px; background: var(--grad-ocean); color: #fff; overflow: hidden; min-height: 100vh; }
.hero .bg-video, .hero .bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; filter: saturate(105%) contrast(105%) brightness(90%); display: block; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.hero p { font-size: clamp(16px, 2.2vw, 20px); color: rgba(255,255,255,.92); margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .shape { position: absolute; inset: -30% -10% auto auto; width: 90vmax; height: 90vmax; background: radial-gradient(closest-side, rgba(229,183,0,.25), transparent 70%); transform: rotate(18deg); filter: blur(10px); }
.hero .texture { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; opacity: .35; }
/* Apply text shadow to all text in hero for readability */
.hero, .hero * { text-shadow: 0 2px 6px rgba(0,0,0,.45); }
/* Hero bicolor title spans */
.hero .title-primary { color: var(--color-hero-blue); }
.hero .title-accent { color: var(--color-hero-orange); }
.hero .title-neutral { color: var(--color-hero-white); }
/* Separator */
.header-separator-bottom {
    position: absolute;
    bottom: -1px;
    left: 0px;
    width: 100%;
}

.header-separator-reverse {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.header-separator svg {
    display: block;
    width: calc(100% + 1.3px);
}

.header-separator {
    position: absolute;
    width: 100%;
    max-width: 100%;
    bottom: -1px;
    overflow: hidden; /* because svg inside is a bit bigger to cover the entire separator correctly */
}

.svg-white-bg {
    fill: #EBEBEB;
}

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--color-surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.06); display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; flex-direction: column; align-content: center; }
.list > * { margin: 0; }
.list_grid { margin: 0 0 32px; }
.card h3 { margin-top: 0; }
.muted { color: var(--color-text-muted); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s ease; }
.in-view { opacity: 1; transform: none; }

/* Footer */
.site-footer { margin-top: 48px; background: #0b1720; color: #d6e0e8; padding-top: 40px; }
.site-footer a { color: #d6e0e8; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.brand-footer { color: var(--color-text-white); }
.brand-footer .brand-bottom { color: #8aa1b2; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.footnote { color: #8aa1b2; }

/* Forms */
form { display: grid; gap: 12px; }
label { font-weight: 600; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #d9dee3; border-radius: 12px; background: #fff; font: inherit; }
textarea { min-height: 140px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.alert { padding: 12px 14px; border-radius: 12px; }
.alert-success { background: #e8f6ef; color: #0d5a36; border: 1px solid #bfe7d1; }
.alert-error { background: #feeceb; color: #8a1f11; border: 1px solid #f7c7c3; }

/* Utilities */
.text-center { text-align: center; }
.surface { background: var(--color-surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--color-accent); font-size: 26px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .site-nav { position: fixed; inset: 64px 0 auto 0; background: rgba(255,255,255,.98); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; border-bottom: 1px solid rgba(0,0,0,.06); }
  .site-nav ul { flex-direction: column; padding: 12px; }
  .nav-toggle { display: inline-block; }
  .nav-open #nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

@media (max-width: 960px) {
  .site-nav ul {
    gap: 8px;
  }
}

@media (max-width: 840px) {
  .site-nav ul {
    gap: 6px;
  }
}

/* List */
.avatar { max-width: 100%; max-height: 100%; }