/* Cannes Select — feuille de style unique, pensée d'abord pour le mobile.
   Palette : bleu de la baie, blanc d'écume, or des ferronneries.
   Motif récurrent : l'arche (fenêtres et arcades des palaces Belle Époque). */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --baie: #0b3350;        /* bleu profond de la baie, fonds sombres */
  --large: #071f33;       /* bleu nuit, pied de page */
  --azur: #14608f;        /* liens */
  --ecume: #f5f9fb;       /* fond général */
  --brume: #dfeaf0;       /* aplats clairs, filets */
  --or: #a5803a;          /* filets et marques, jamais de texte courant */
  --or-clair: #d9bd82;
  --encre: #15242f;
  --galet: #51626e;       /* texte secondaire */
  --titre: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marge: clamp(1.15rem, 5vw, 2.5rem);
  --largeur: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ecume); color: var(--encre);
  font: 400 1.0625rem/1.65 var(--texte);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azur); text-decoration-thickness: .06em; text-underline-offset: .18em; }
a:hover { color: var(--baie); text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; line-height: 1.12; color: var(--baie); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 8.5vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 4.2vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }

.cadre { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }
.evitement { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 20; }
.evitement:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------ bandeau */
.bandeau { background: var(--baie); color: #fff; position: relative; z-index: 10; }
.bandeau .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .5rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: .85rem 0;
  font: 500 clamp(1rem, 5.2vw, 1.65rem)/1 var(--titre); letter-spacing: .02em; }
.marque svg { width: 1.25rem; height: auto; color: var(--or-clair); }
.marque:hover { color: var(--or-clair); }
.menu { display: contents; }
.menu summary { list-style: none; cursor: pointer; padding: .55rem 0 .55rem 1rem; font-weight: 500; font-size: .95rem; display: flex; align-items: center; gap: .55rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 1.25rem; height: .7rem; border-block: 1.5px solid currentColor; }
.menu[open] summary::after { height: 0; border-bottom: 0; }
.menu nav { flex-basis: 100%; border-top: 1px solid rgb(255 255 255 / .16); padding: .5rem 0 1.25rem; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.niveau1 > li { padding: .15rem 0; }
.niveau1 a, .rubrique { display: block; padding: .5rem 0; color: #fff; text-decoration: none; }
.rubrique { font-family: var(--titre); font-size: 1.3rem; color: var(--or-clair); padding-bottom: .1rem; }
.niveau1 > li > a { font-family: var(--titre); font-size: 1.3rem; }
.niveau1 ul a { padding: .38rem 0 .38rem 1rem; border-left: 1px solid rgb(255 255 255 / .22); font-size: .98rem; }
.niveau1 a:hover, .niveau1 a[aria-current] { color: var(--or-clair); }

@media (min-width: 62em) {
  .menu summary { display: none; }
  .menu nav { flex-basis: auto; border: 0; padding: 0; }
  .niveau1 { display: flex; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; }
  .niveau1 > li { position: relative; padding: 0; }
  .niveau1 > li > a, .rubrique { font: 500 .96rem/1 var(--texte); color: #fff; padding: 1.45rem 0; cursor: default; }
  .niveau1 > li > a { cursor: pointer; }
  .rubrique::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.2em) rotate(45deg); }
  .niveau1 > li.actif > a, .niveau1 > li.actif > .rubrique { box-shadow: inset 0 -2px var(--or-clair); }
  .niveau1 ul { position: absolute; top: 100%; left: -1.1rem; min-width: 15.5rem; background: #fff; padding: .55rem 0; border-top: 2px solid var(--or);
    box-shadow: 0 14px 30px -12px rgb(7 31 51 / .4); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
  .niveau1 > li:last-child ul { left: auto; right: -1.1rem; }
  .niveau1 li:hover > ul, .niveau1 li:focus-within > ul { opacity: 1; visibility: visible; }
  .niveau1 ul a { color: var(--encre); border: 0; padding: .5rem 1.1rem; }
  .niveau1 ul a:hover, .niveau1 ul a[aria-current] { color: var(--azur); background: var(--ecume); }
}

.langue { display: inline-block; margin-top: .9rem; padding: .3rem .8rem; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px; color: #fff; text-decoration: none; font-size: .88rem; }
.langue:hover { background: #fff; color: var(--baie); }
.pied-bas .langue { margin: 0; padding: 0; border: 0; font-size: inherit; text-decoration: underline; }
.pied-bas .langue:hover { background: none; color: var(--or-clair); }
.pied-bas li:empty { display: none; }
@media (min-width: 62em) {
  .menu nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
  .menu nav .langue { margin: 0; }
}

/* ---------------------------------------------------- pages internes */
.ariane, .entete, .colonnes, .une, .suite { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }
.ariane { padding-top: 1.1rem; font-size: .86rem; color: var(--galet); }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .5rem; margin: 0; padding: 0; }
.ariane li + li::before { content: "/"; margin-right: .5rem; color: var(--or); }
.entete { padding-block: clamp(1.4rem, 5vw, 3rem) clamp(1.3rem, 4vw, 2.2rem); }
.entete h1 { max-width: 18ch; }
.chapo { font: 400 clamp(1.3rem, 4.3vw, 1.6rem)/1.4 var(--titre); color: var(--encre); max-width: 44rem; margin: 1.1rem 0 0; }
.une { margin-block: 0 clamp(1.5rem, 5vw, 2.75rem); }
.une img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 2px; }
@media (max-width: 40em) { .une { padding-inline: 0; } .une img { aspect-ratio: 3 / 2; border-radius: 0; } .une figcaption { padding-inline: var(--marge); } }
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--galet); padding-top: .5rem; }

.colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
@media (min-width: 62em) {
  .colonnes { grid-template-columns: 15.5rem minmax(0, 43rem); gap: 4.5rem; align-items: start; }
  .colonnes > .texte:only-child { grid-column: 2; }
  .sommaire { position: sticky; top: 1.5rem; }
}
.sommaire { border-top: 2px solid var(--or); padding-top: .9rem; font-size: .95rem; }
.sommaire h2 { font: 600 .95rem/1.3 var(--texte); color: var(--galet); margin-bottom: .5rem; }
.sommaire ul { list-style: none; margin: 0; padding: 0; columns: 2 11rem; column-gap: 1.5rem; }
@media (min-width: 62em) { .sommaire ul { columns: auto; } }
.sommaire a { display: block; padding: .28rem 0; text-decoration: none; color: var(--encre); break-inside: avoid; }
.sommaire a:hover { color: var(--azur); text-decoration: underline; }

.texte { max-width: 43rem; }
.texte > h2 { margin: 2.6rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--brume); }
.texte > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.texte h3 { margin: 1.9rem 0 .55rem; }
.texte figure { margin: 1.8rem 0; }
.texte figure img { border-radius: 2px; width: 100%; }
.texte li { margin-bottom: .4em; }
.texte li::marker { color: var(--or); }
.maj { margin-top: 2.5rem; font-size: .86rem; color: var(--galet); }

/* fiches d'établissement */
.fiche { margin: 0 0 1.2rem; padding: .85rem 1.1rem; background: #fff; border-left: 2px solid var(--or); font-size: .96rem; }
.fiche div { display: flex; gap: .6rem; padding: .16rem 0; }
.fiche dt { flex: 0 0 6.4rem; color: var(--galet); }
.fiche dd { margin: 0; }
.encadre { margin: 1.8rem 0; padding: 1.15rem 1.3rem; background: var(--brume); border-radius: 2px; }
.encadre > :last-child { margin-bottom: 0; }
.encadre h3 { margin-top: 0; }

/* frise chronologique (histoire, festival) : une vraie séquence, donc des repères */
.frise { list-style: none; margin: 1.2rem 0 0; padding: 0; border-left: 1px solid var(--or-clair); }
.frise > li { position: relative; padding: 0 0 1.35rem 1.35rem; margin: 0; }
.frise > li::before { content: ""; position: absolute; left: -4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.frise .date { display: block; font: 600 1.3rem/1.25 var(--titre); color: var(--baie); }
.frise p { margin: .2rem 0 .5rem; }

/* tableaux (palmarès, calendrier) */
.tableau { overflow-x: auto; margin: 1.4rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
caption { text-align: left; font-size: .86rem; color: var(--galet); padding-bottom: .5rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--brume); vertical-align: top; }
thead th { font-weight: 600; color: var(--baie); border-bottom: 2px solid var(--or); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }

.faq h3 { font: 600 1.06rem/1.4 var(--texte); color: var(--encre); margin: 1.4rem 0 .3rem; }
.pub { margin: 2rem 0; min-height: 250px; }

/* maillage de fin de page */
.suite { margin-top: clamp(2.5rem, 7vw, 4rem); }
.suite + .suite { margin-top: 2rem; }
.suite h2 { font-size: 1.5rem; padding-top: 1.1rem; border-top: 2px solid var(--or); margin-bottom: .4rem; }
.suite ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 48em) { .suite ul { grid-template-columns: repeat(2, 1fr); } }
.suite li { padding: .95rem 0; border-bottom: 1px solid var(--brume); }
.suite a { font: 600 1.35rem/1.2 var(--titre); text-decoration: none; display: block; }
.suite a:hover { text-decoration: underline; }
.suite span { display: block; color: var(--galet); font-size: .93rem; margin-top: .2rem; }
main { padding-bottom: clamp(3rem, 8vw, 5rem); }

/* ------------------------------------------------------------ accueil */
.accueil main { padding-bottom: 0; }
.ouverture { background: var(--baie); color: #fff; overflow: hidden; }
.ouverture .cadre { display: grid; gap: 2rem; padding-block: clamp(1.5rem, 6vw, 4rem) 0; }
.ouverture h1 { color: #fff; font-weight: 400; font-size: clamp(2.7rem, 11vw, 5.4rem); line-height: 1; }
.ouverture p { font-size: 1.1rem; max-width: 33rem; color: #dbe7ee; margin: 1.3rem 0 0; }
.ouverture .acces { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ouverture .acces a { display: block; padding: .6rem 1.05rem; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px; color: #fff; text-decoration: none; font-size: .95rem; }
.ouverture .acces a:hover { background: #fff; color: var(--baie); border-color: #fff; }
.arche { justify-self: center; width: min(100%, 24rem); }
.arche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; outline: 1px solid var(--or-clair); outline-offset: 7px; }
@media (min-width: 55em) {
  .ouverture .cadre { grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3.5rem; }
  .ouverture .propos { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
  .arche { justify-self: end; width: 100%; }
}

.bloc { padding-block: clamp(2.8rem, 9vw, 5.5rem); }
.bloc.clair { background: #fff; }
.bloc h2 { font-size: clamp(2rem, 6.5vw, 3rem); max-width: 20ch; }
.bloc .intro { max-width: 43rem; margin-top: 1.1rem; }
.duo { display: grid; gap: 2rem; }
@media (min-width: 58em) { .duo { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; } }

.liens { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 2px solid var(--or); }
.liens li { border-bottom: 1px solid var(--brume); }
.liens a { display: grid; padding: 1rem 0; text-decoration: none; color: var(--encre); }
.liens strong { font: 600 1.5rem/1.2 var(--titre); color: var(--baie); }
.liens span { color: var(--galet); font-size: .96rem; }
.liens a:hover strong { color: var(--azur); text-decoration: underline; }

.arcades { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 2.4rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.arcades a { text-decoration: none; color: var(--encre); display: block; }
.arcades img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.arcades strong { display: block; font: 600 1.55rem/1.2 var(--titre); color: var(--baie); margin-top: .9rem; }
.arcades span { color: var(--galet); font-size: .96rem; }
.arcades a:hover strong { color: var(--azur); text-decoration: underline; }

.panorama img { width: 100%; height: clamp(9rem, 26vw, 17rem); object-fit: cover; }

.agenda { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 2px solid var(--or); }
.agenda li { display: grid; gap: .2rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--brume); }
@media (min-width: 48em) { .agenda li { grid-template-columns: 11rem 1fr; align-items: baseline; } }
.agenda .quand { font: italic 500 1.35rem/1.2 var(--titre); color: var(--or); }
.agenda a { font: 600 1.5rem/1.2 var(--titre); text-decoration: none; }
.agenda a:hover { text-decoration: underline; }
.agenda p { margin: .25rem 0 0; color: var(--galet); font-size: .96rem; }

/* -------------------------------------------------------- pied de page */
.pied { background: var(--large); color: #c9d8e1; font-size: .95rem; }
.pied a { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
.pied a:hover { color: var(--or-clair); }
.pied > .cadre:first-child { display: grid; gap: 2.2rem; padding-block: clamp(2.5rem, 7vw, 4rem) 2rem; }
@media (min-width: 62em) { .pied > .cadre:first-child { grid-template-columns: 19rem 1fr; gap: 5rem; } }
.marque-pied { font: 500 1.8rem/1 var(--titre); color: #fff; margin-bottom: .9rem; }
.pied-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1.8rem 1.5rem; }
.pied-nav h2 { font: 600 .95rem/1.3 var(--texte); color: var(--or-clair); margin-bottom: .55rem; }
.pied-nav ul, .pied-bas ul { list-style: none; margin: 0; padding: 0; }
.pied-nav li { padding: .22rem 0; }
.pied-nav a { text-decoration: none; }
.pied-nav a:hover { text-decoration: underline; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid rgb(255 255 255 / .14); font-size: .88rem; }
.pied-bas p { margin: 0; }
.pied-bas ul { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }

@media print {
  .bandeau, .pied, .sommaire, .suite, .pub, .ariane { display: none; }
  body { background: #fff; font-size: 11pt; }
}
