/* iledeportcros.com — design system "Carnet de rade" */
/* Le carnet d'un garde du Parc : papier clair, encre verte, bleu de rade,
   corail des balises. Fiches espèces, courbes bathymetriques, tampons. */
:root {
  --papier: #F7F3E9;      /* papier du carnet, fond de page */
  --papier-2: #EFE8D8;    /* cartes, encarts */
  --encre: #1C2A21;       /* encre vert sombre, texte */
  --encre-2: #5C6A5E;     /* texte secondaire */
  --pin: #2F5B3B;         /* pin d'Alep, posidonie */
  --rade: #0F6B83;        /* bleu de la rade */
  --corail: #DE5F43;      /* balises, actions */
  --soleil: #E3AE49;      /* sable au soleil */
  --ligne: rgba(28, 42, 33, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Albert Sans", system-ui, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --r: 14px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--papier);
  color: var(--encre);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* fibre de papier */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.08 .12' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .89 0 0 0 0 .82 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rade); color: var(--papier); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hide-m { display: inline; }
@media (max-width: 760px) { .hide-m { display: none; } }

/* ---- barre maquette ---- */
.mockbar { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--encre); color: var(--papier); font: 400 12.5px/1.4 var(--mono); padding: 7px var(--pad); text-align: center; }
.mockbar a { color: inherit; }
body.has-mockbar { padding-bottom: 34px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--papier) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.head-in { display: flex; align-items: center; gap: 28px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; color: var(--pin); }
.brand .name { display: block; font: 600 22px/1 var(--serif); letter-spacing: .01em; }
.brand .tag { display: block; font: 400 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--encre-2); margin-top: 3px; }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { text-decoration: none; font: 500 14px/1 var(--sans); color: var(--encre-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:hover { color: var(--encre); border-color: var(--corail); }
@media (max-width: 900px) { nav.main { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 10px; padding: 11px 20px; font: 600 14.5px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-corail { background: var(--corail); color: #fff; }
.btn-corail:hover { background: #c64c33; }
.btn-encre { background: var(--encre); color: var(--papier); }
.btn-ligne { border-color: var(--encre); color: var(--encre); }

/* ---- hero : carnet ouvert, texte a gauche, photo a droite ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 88svh; border-bottom: 1px solid var(--ligne); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.hero-txt { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 70px var(--pad) 56px; overflow: hidden; }
/* courbes bathymetriques dans le panneau papier */
.hero-txt::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%230F6B83' stroke-opacity='.25' stroke-dasharray='5 7'%3E%3Cpath d='M-40 480 C 120 420 180 470 320 430 S 560 440 620 400'/%3E%3Cpath d='M-40 520 C 140 460 220 510 360 470 S 580 480 620 440'/%3E%3Cpath d='M-40 440 C 100 390 160 430 300 395 S 540 400 620 360'/%3E%3Cpath d='M-40 560 C 160 500 260 550 400 510 S 600 520 620 480'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: left bottom;
}
.hero-txt > * { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--mono); color: var(--rade); margin-bottom: 22px; }
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--rade); }
.hero h1 { font: 500 clamp(46px, 6.4vw, 92px)/1.0 var(--serif); letter-spacing: -.01em; margin: 0 0 20px; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--rade); }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; color: var(--encre-2); max-width: 50ch; margin: 0 0 26px; }
.hero-ph { position: relative; min-height: 420px; }
.hero-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: var(--pad); bottom: 24px; width: 110px; height: 110px; color: var(--papier); opacity: .95; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }

/* formulaire de resa */
.booking { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 12px; box-shadow: 0 10px 30px rgba(28, 42, 33, .08); max-width: 640px; }
.booking .field { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 9px; background: var(--papier); border: 1px solid var(--ligne); flex: 1 1 130px; }
.booking .field .ico { color: var(--rade); }
.booking label { display: block; font: 400 10px/1 var(--mono); letter-spacing: .08em; color: var(--encre-2); text-transform: uppercase; margin-bottom: 3px; }
.booking input, .booking select { border: 0; background: none; color: var(--encre); font: 500 14px/1.2 var(--sans); width: 100%; outline: none; }
.booking .btn { flex: 1 1 100%; justify-content: center; }
@media (min-width: 700px) { .booking .btn { flex: 0 0 auto; } }

.credit { position: absolute; right: 12px; bottom: 10px; z-index: 5; font: 400 10.5px/1.3 var(--mono); color: #fff; background: rgba(28, 42, 33, .5); padding: 3px 8px; border-radius: 6px; }

/* ---- bande regles du parc ---- */
.rules { background: var(--pin); color: var(--papier); padding: 26px 0; }
.rules .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.rules .t { font: 500 15px/1.3 var(--sans); max-width: 30ch; }
.rules ul { display: flex; flex-wrap: wrap; gap: 14px 26px; list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; align-items: center; gap: 9px; font: 400 13px/1.3 var(--sans); opacity: .95; }
.rules .ico { width: 20px; height: 20px; color: var(--soleil); }

/* ---- sections ---- */
.sec { padding: clamp(60px, 8.5vw, 110px) 0; }
.sec-head { display: flex; gap: 12px; align-items: baseline; color: var(--encre-2); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: clamp(22px, 4vw, 40px); }
.sec-head .num { color: var(--corail); }
.sec-head::after { content: ""; flex: 1; border-bottom: 1px dashed var(--ligne); align-self: center; }
h2 { font: 500 clamp(32px, 4.2vw, 54px)/1.06 var(--serif); letter-spacing: -.005em; margin: 0; }
h2 em { font-style: italic; color: var(--rade); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; margin-bottom: clamp(26px, 4vw, 48px); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-grid p { color: var(--encre-2); max-width: 52ch; margin: 0 0 16px; }

/* ---- sentier sous-marin : balises + fiches ---- */
.trail { background: var(--papier-2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.balises { counter-reset: balise; display: grid; gap: 0; margin-bottom: 40px; }
.balise { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 15px 4px; border-bottom: 1px dashed var(--ligne); }
.balise:first-child { border-top: 1px dashed var(--ligne); }
.balise::before { counter-increment: balise; content: counter(balise); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--corail); color: #fff; font: 600 15px/1 var(--sans); align-self: center; }
.balise h3 { font: 600 20px/1.2 var(--serif); margin: 0 0 2px; }
.balise p { margin: 0; color: var(--encre-2); font-size: 14px; }
.balise .prof { font: 400 13px/1 var(--mono); color: var(--rade); white-space: nowrap; }
.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .fiches { grid-template-columns: 1fr; } }
.fiche { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; box-shadow: 0 8px 24px rgba(28, 42, 33, .07); transform: rotate(var(--tilt, 0deg)); transition: transform .3s var(--ease); }
.fiche:hover { transform: rotate(0) translateY(-4px); }
.fiche .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.fiche .ph img { width: 100%; height: 100%; object-fit: cover; }
.fiche .in { padding: 14px 16px 16px; }
.fiche .latin { font: 400 11.5px/1.4 var(--mono); color: var(--rade); text-transform: uppercase; letter-spacing: .06em; }
.fiche h3 { font: 600 22px/1.15 var(--serif); margin: 2px 0 6px; }
.fiche p { margin: 0; font-size: 13.5px; color: var(--encre-2); line-height: 1.5; }

/* ---- dormir ---- */
.stays { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.stay { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; border-radius: var(--r); overflow: hidden; text-decoration: none; grid-column: span 6; isolation: isolate; border: 1px solid var(--ligne); }
@media (max-width: 860px) { .stay { grid-column: span 12 !important; } }
.stay .ph { position: absolute; inset: 0; z-index: -1; }
.stay .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stay:hover .ph img { transform: scale(1.04); }
.stay .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 28, 22, .82) 0%, rgba(18, 28, 22, .05) 55%); }
.stay .in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 18px; color: var(--papier); }
.stay h3 { font: 600 26px/1.1 var(--serif); margin: 0 0 4px; }
.stay .meta { opacity: .85; font-size: 13.5px; }
.stay .go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--papier); color: var(--encre); flex: none; transition: background .2s, transform .25s var(--ease); }
.stay:hover .go { background: var(--corail); color: #fff; transform: translateX(3px); }
.stay .credit { bottom: auto; top: 10px; }
.dormir-note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--ligne); border-left: 4px solid var(--soleil); background: #fff; border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin-top: 22px; }
.dormir-note .ico { color: var(--soleil); width: 22px; height: 22px; margin-top: 2px; }
.dormir-note p { margin: 0; font-size: 14.5px; color: var(--encre-2); }
.dormir-note b { color: var(--encre); }

/* ---- venir : table des bateaux ---- */
.sail-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.sail-table th { font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--ligne); background: var(--papier-2); }
.sail-table td { padding: 14px 16px; border-bottom: 1px dashed var(--ligne); font-size: 15px; }
.sail-table tr:last-child td { border-bottom: 0; }
.sail-table b { font: 600 18px/1 var(--serif); }
.sail-table .mono { color: var(--rade); }
.venir-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 920px) { .venir-grid { grid-template-columns: 1fr; } }
.venir-ph { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne); }

/* ---- journal ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne); background: #fff; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
a.post:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(28, 42, 33, .12); }
.post .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .credit { bottom: auto; top: 10px; }
.post .in { padding: 16px 18px 20px; display: grid; gap: 7px; }
.post .mono { color: var(--corail); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.post h3 { font: 600 23px/1.2 var(--serif); margin: 0; }
.post p { margin: 0; color: var(--encre-2); font-size: 14px; line-height: 1.5; }
.post.soon { opacity: .6; }
.post.soon .mono { color: var(--encre-2); }

/* ---- cta + footer ---- */
.cta-band { position: relative; isolation: isolate; padding: clamp(70px, 10vw, 120px) 0; text-align: center; overflow: hidden; color: var(--papier); }
.cta-band .ph { position: absolute; inset: 0; z-index: -2; }
.cta-band .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18, 28, 22, .55); }
.cta-band h2 { color: var(--papier); margin-bottom: 26px; }
.cta-band h2 em { color: var(--soleil); }
footer { border-top: 1px solid var(--ligne); padding: 38px 0 46px; color: var(--encre-2); font-size: 13.5px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer a { color: inherit; }
footer .mono { font-size: 12px; }
#credits-list { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 4px; max-width: 72ch; }
details > summary { cursor: pointer; }

/* ---- article ---- */
.article-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--ligne); }
@media (max-width: 920px) { .article-hero { grid-template-columns: 1fr; } }
.article-hero .txt { padding: 80px var(--pad) 50px; display: flex; flex-direction: column; justify-content: center; }
.article-hero h1 { font: 500 clamp(36px, 4.6vw, 64px)/1.04 var(--serif); margin: 14px 0 16px; }
.article-hero h1 em { font-style: italic; color: var(--rade); }
.article-hero .ph { position: relative; min-height: 340px; }
.article-hero .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 740px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--pad) 30px; }
.article-body > p:first-child { font-size: clamp(18px, 1.9vw, 20.5px); line-height: 1.6; }
.article-body p { color: #38453C; line-height: 1.75; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .5em; }
.article-body figure { margin: 2em 0; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne); }
.article-body figcaption { font: 400 12.5px/1.5 var(--mono); color: var(--encre-2); padding: 10px 14px; background: #fff; }
.article-body .note { border-left: 4px solid var(--corail); background: #fff; border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; }
.article-body .note .mono { color: var(--corail); }
.aff-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--ligne); background: #fff; border-radius: var(--r); padding: 20px 22px; margin: 2.2em 0; box-shadow: 0 8px 24px rgba(28, 42, 33, .07); }
.aff-cta b { font: 600 20px/1.3 var(--serif); display: block; }
.aff-cta span { color: var(--encre-2); font-size: 13.5px; }

/* ---- reveals ---- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---- calque liens affilies ---- */
body.show-aff .aff { outline: 2px dashed var(--corail); outline-offset: 3px; position: relative; }
body.show-aff .aff::before { content: "Stay22 · " attr(data-n); position: absolute; top: -10px; left: -6px; z-index: 60; background: var(--corail); color: #fff; font: 600 10px/1 var(--mono); padding: 4px 7px; border-radius: 5px; }
