

:root {
  --ocean-deep:   #0a2342;
  --ocean-mid:    #1a5276;
  --ocean-light:  #1f8ec8;
  --ocean-bright: #27b0e6;
  --foam:         #e8f7fd;
  --sand:         #f5f0e8;
  --text-dark:    #1a2b3c;
  --text-muted:   #5a6a7a;
  --white:        #ffffff;
  --radius:       16px;
  --shadow:       0 8px 32px rgba(10,35,66,.12);
}

* {
  /* box-sizing: border-box; */
}

/* Colors for light color scheme (Default) */
/* Can be forced with data-theme="light" */
[data-theme=light],
:root:not([data-theme=dark]),
:host:not([data-theme=dark]) {
  /*
  --pico-color: red;
  --pico-text-selection-color: rgba(244, 93, 44, 0.25);
  --pico-primary: #bd3c13;
  --pico-primary-background: #d24317;
  --pico-primary-underline: rgba(189, 60, 19, 0.5);
  --pico-primary-hover: #942d0d;
  --pico-primary-hover-background: #bd3c13;
  --pico-primary-focus: rgba(244, 93, 44, 0.5);
  --pico-primary-inverse: #fff;
  */
}

/* Colors for dark color scheme (Auto) */
/* Automatically enabled if user has Dark mode enabled */
@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]),
  :host:not([data-theme]) {
    /*
    --pico-text-selection-color: rgba(245, 107, 61, 0.1875);
    --pico-primary: #f56b3d;
    --pico-primary-background: #d24317;
    --pico-primary-underline: rgba(245, 107, 61, 0.5);
    --pico-primary-hover: #f8a283;
    --pico-primary-hover-background: #e74b1a;
    --pico-primary-focus: rgba(245, 107, 61, 0.375);
    --pico-primary-inverse: #fff;
    */
  }
}
/* Orange color for dark color scheme (Forced) */
/* Enabled if forced with data-theme="dark" */
[data-theme=dark]
{
  /* --pico-background-color: #155672; */
  /*
  --pico-text-selection-color: rgba(245, 107, 61, 0.1875);
  --pico-primary: #f56b3d;
  --pico-primary-background: #d24317;
  --pico-primary-underline: rgba(245, 107, 61, 0.5);
  --pico-primary-hover: #f8a283;
  --pico-primary-hover-background: #e74b1a;
  --pico-primary-focus: rgba(245, 107, 61, 0.375);
  --pico-primary-inverse: #fff;
  */
}

body {
  /* margin: 0;
  font-family: system-ui, sans-serif;
  color: black;
  background-color: white; */
  /* background-color: grey; */
  /* background: #35CAE8; */
  
  /* background-color: #155672; */
  /* background-image: url('../images/IMG-20260329-WA0033.jpg');
  background-repeat: no-repeat;
  background-size: cover; */

  /* background-color: #62a18c; */
  /* background-color: #58a8e0; */
  /* background: linear-gradient(90deg, rgba(53, 202, 232, 1) 0%, rgba(117, 241, 169, 1) 50%, rgba(163, 253, 184, 1) 100%); */
}

/* ===== ===== ===== ===== =====
|           UTILITIES           |
===== ===== ===== ===== ===== */

.txt-centered
{
  text-align: center;
}

.txt-justified
{
  text-align: justify;
}

.img-square-small
{
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.img-rectangle
{
  aspect-ratio: 16/9;
  object-fit: cover;
}

.separator {
  text-align: center;
  margin-top: 2.5rem;
}

.separator > span {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.separator > span::before,
.separator > span::after {
  content: '';
  flex: 1;
  margin: 0.5rem 1rem;
  height: 2px;
  background-color: darkslategray;
}

/* ===== ===== ===== ===== =====
|             HEADER           |
===== ===== ===== ===== ===== */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding-right: 0; */
  /* padding-left: 0; */
}

header > .content
{
  display: flex;
  align-items: center;
  text-align: center;
  flex-wrap: nowrap;
}

header > .content h2
{
  font-size: 1.25rem !important;
  font-style: italic;
}

header > .gallery
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  /* row-gap: 0.75rem; */
}

header > .gallery > img {
  flex: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  gap: 0.5rem;
  border-bottom: solid 1px #aaa;
  background-color: #eee;
}

nav a {
  display: inline-block;
  min-width: 9rem;
  padding: 0.5rem;
  border-radius: 0.2rem;
  border: solid 1px #aaa;
  text-align: center;
  text-decoration: none;
  color: #555;
}

nav a[aria-current='page'] {
  color: #000;
  background-color: #d4d4d4;
}

main {
  /* padding: 1rem; */
}

main > .grid > div {
  margin: 0 0.5rem;
}

h1 {
  /* font-weight: bold; */
  /* font-size: 1.5rem; */
}

/* ===== ===== ===== ===== =====
|             MAIN             |
===== ===== ===== ===== ===== */

main .grid > div > h2 {
  margin-top: 1.5rem;
}

main h2, footer h2 {
  text-align: center;
  /* font-family: TODO; */
  text-transform: uppercase;
  text-shadow: #27b0e6 1px 0 25px;
}

main .emojis
{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 1.5rem;
}

main .emojis > .icon
{
  background: linear-gradient(160deg, var(--ocean-deep), var(--ocean-mid));
  color: var(--white);
  border-radius: 0.25rem;
  padding: 0.5rem;
}

main .emojis > .icon > svg
{
  height: 2rem;
  width: 2rem;
}

main .features > article,
main .features > article > footer
{
  text-align: center;
  background-color: var(--pico-card-sectioning-background-color);
}

main .features > .cards
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

main .features > .cards > .card
{
  
}

main .features > .cards > .card > header
{
  height: max-content;
}

main .features > .cards > .card > footer
{
  background-color: transparent;
}

/*

main .planning > .cards > .card {
  background: linear-gradient(160deg, var(--ocean-deep), var(--ocean-mid));
  color: var(--white);
  border-radius: 0.25rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}

main .planning > .cards > .card > .icon { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
*/

main .gallery
{
  display: none;
}

main .features > div {
  display: flex;
  flex-direction: row;
}


main .planning
{
  display: flex;
  flex-direction: column;
}

main .planning > h4 {
  text-align: center;
  margin-top: 2rem;
}

main .planning > ul {
  padding-inline-start: 0;
  margin: auto;
}

main .planning > ul > li {
  text-align: left;
  list-style-type: none;
}

main .planning > p {
  text-align: center;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}

main .planning > .cards
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

main .planning > .cards > .card {
  background: linear-gradient(160deg, var(--ocean-deep), var(--ocean-mid));
  color: var(--white);
  border-radius: 0.25rem;
  /* padding: 1.25rem 1rem; */
  margin-bottom: 0;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}

main .planning > .cards > .card > .icon { font-size: 1.6rem; display: block; margin-bottom: .5rem; }

/* ===== ===== ===== ===== =====
|             FOOTER           |
===== ===== ===== ===== ===== */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-top: 2rem; */
}

footer > .content
{
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2.5rem;

  /* background-color: rgba(92, 146, 136, 0.5); */
  /* background-color: rgba(10,35,66,.12); */
  /* background-color: rgba(207, 217, 229, 0.376); */
}

footer > .content > .map-container
{
  opacity: 75%;
  width: 85dvw;
}

footer > .content > .map-container > *
{
  width: 100%;
  height: 35dvh;
  border-style: solid;
  border-radius: 2rem;
  border-color: transparent;
}

/*
footer > .content > div > img
{
  width: 250px;
  height: 150px;
  object-fit: cover;
}
*/

footer > .content > .contact-us
{
  display: flex;
  flex-direction: column;

  width: 85dvw;
  padding: 2.5rem;

  background: linear-gradient(160deg, var(--ocean-deep), var(--ocean-mid));
  border-radius: 2rem;
}

footer > .content > .contact-us > span
{
  margin: 0.25rem 0;
}

footer > .content > .contact-us a
{
  text-decoration: none;
  color: inherit;
  text-wrap: nowrap;
}

footer .contact-us a > i,
footer .contact-us a > svg
{
  margin-right: 0.5em;
  height: 1.25rem;
  width: 1.25rem;
}

footer > .content > .logos
{
  display: flex;
  flex-direction: row;

  width: 85dvw;

  border-style: solid;
  border-radius: 2rem;
  border-color: transparent;
  background-color: white;
  opacity: 80%;
}

#map {
  border-radius: 2rem;
}

#wcb
{
  display: none;
}

#websitecarbon
{
  margin-top: 0.25rem;
  font-size: small;
  color: lightslategray;
  
  display: none;
}

#websitecarbon > a
{
  opacity: 50%;
}

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


@media screen and (min-width: 520px)
{
  header > .gallery
  {
    flex-direction: row;
  }
}


/*
@media screen and (min-width: 800px)
{
  [...]
}
*/

@media screen and (min-width: 768px)
{
  footer {
    margin-top: 1.5rem;
  }

  footer > .content {
    width: 85%;
    align-items: stretch;
  }

  /* Tous les blocs : reset du width mobile, box-sizing cohérent */
  footer > .content > .contact-us,
  footer > .content > .map-container,
  footer > .content > .logos {
    box-sizing: border-box;
    width: auto;
  }

  footer > .content > .logos > img
  {
    aspect-ratio: 16/9;
    object-fit: contain;
  }

  /* Ligne 1 : map pleine largeur */
  footer > .content > .map-container {
    flex: 0 0 100%;
  }

  /* Ligne 2 : contact + logo en 50/50 */
  footer > .content > .contact-us,
  footer > .content > .logos {
    flex: 1 1 0;
  }

  /* L'iframe remplit sa carte */
  footer > .content > .map-container > * {
    height: 35dvh;
  }
}

@media screen and (min-width: 1200px)
{
  /* 3 éléments side by side */
  footer > .content > .map-container {
    flex: 1 1 0;
  }

  /* L'iframe remplit toute la hauteur de la carte */
  footer > .content > .map-container > * {
    height: 100%;
  }
  
  main .grid > div > h2
  {
    margin-bottom: 2.5rem;
  }

  .activities-text
  {
    margin: 1rem 0;
  }

  header .gallery
  {
    display: none;
  }

  main .gallery
  {
    display: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
