/*
Theme Name: Ocean Foundation Theme
Theme URI: https://ocean-foundation.eu/
Author: The Ocean Foundation Europe
Description: Thème classique WordPress pour Ocean Foundation Europe. Version 0.2.6 avec footer réduit, transition douce, logo blanc et liens légaux en pied de page.
Version: 0.2.6
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ocean-foundation
*/

:root {
  --of-deep: #052A3A;
  --of-deeper: #021924;
  --of-header: #07536A;
  --of-blue: #0E7189;
  --of-cyan: #71D7E6;
  --of-gold: #956A19;
  --of-sand: #E9D7B8;
  --of-paper: rgba(248, 253, 255, 0.94);
  --of-paper-soft: rgba(239, 249, 251, 0.90);
  --of-text: #14303A;
  --of-muted: #46636C;
  --of-radius: 24px;
  --of-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --of-max: 1180px;
  --of-font: Inter, Manrope, Avenir Next, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--of-font);
  color: var(--of-text);
  background-color: var(--of-deep);
  background-image:
    radial-gradient(circle at 52% 92%, rgba(149, 106, 25, 0.20), transparent 18rem),
    linear-gradient(to bottom, rgba(5, 77, 99, 0.20) 0%, rgba(3, 42, 55, 0.84) 36%, #052A3A 90%, #041F2C 100%),
    url("assets/images/01_ocean_dark_intro.webp");
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center bottom, center top, center top;
  background-attachment: fixed, fixed, fixed;
  line-height: 1.62;
  font-size: 17px;
}

a { color: #086e88; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: #034b62; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(7, 83, 106, 0.97), rgba(5, 62, 82, 0.92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.header-inner {
  max-width: var(--of-max);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.custom-logo, .of-white-logo { max-height: 64px; width: auto; display: block; }
.of-white-logo { height: 64px; }

.menu-toggle { display: none; }
.main-navigation { flex: 1 1 auto; min-width: 0; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 24px); flex-wrap: nowrap; }
.primary-menu a {
  color: rgba(255,255,255,0.94);
  text-decoration: none;
  font-weight: 680;
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header-donate-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--of-cyan);
  color: #063040;
  text-decoration: none;
  font-weight: 780;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.header-donate-button:hover { background: #fff; color: #063040; }
.primary-menu a:hover { color: var(--of-cyan); }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: rgba(4, 40, 54, 0.98);
  border-radius: 14px;
  box-shadow: var(--of-shadow);
  padding: 12px;
}
.primary-menu .menu-item-has-children:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 8px 10px; font-size: 0.98rem; }

.site-main {
  max-width: var(--of-max);
  margin: 0 auto;
  padding: 36px 22px 0;
}
.home .site-main { max-width: none; padding-left: 0; padding-right: 0; }
.home-section, .page-shell, .post-shell {
  max-width: var(--of-max);
  margin: 0 auto clamp(24px, 4vw, 54px);
  padding: 0 22px;
}
.home-section:last-child, .site-main > *:last-child { margin-bottom: 0; }

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  padding: clamp(36px, 6vw, 82px) 0 clamp(42px, 7vw, 90px);
}
.home-intro {
  max-width: var(--of-max);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.home-intro-text {
  max-width: 520px;
  color: white;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--of-cyan);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 780;
}
.hero p {
  margin: 0 0 26px;
  color: rgba(255,255,255,0.90);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 48rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button-primary, .button-secondary, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
  border: 1px solid transparent;
}
.button-primary, .wp-block-button__link { background: var(--of-cyan); color: #063040; }
.button-primary:hover, .wp-block-button__link:hover { background: #fff; color: #063040; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.08); }
.button-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }
.video-card {
  background: rgba(3, 36, 51, 0.54);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--of-shadow);
  backdrop-filter: blur(10px);
}
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card, .content-card, .news-card, .page-shell, .post-shell, .comment-respond, .comments-area {
  background: var(--of-paper);
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: var(--of-radius);
  box-shadow: 0 18px 60px rgba(0,0,0,0.20);
}
.stat-card { padding: 22px; }
.stat-number { display: block; color: #07536A; font-size: clamp(1.75rem, 3vw, 2.8rem); line-height: 1; font-weight: 820; letter-spacing: -0.04em; }
.stat-label { display: block; margin-top: 10px; color: var(--of-muted); font-size: 0.95rem; line-height: 1.42; }

.section-heading { max-width: var(--of-max); margin: 0 auto 20px; padding: 0 22px; color: #fff; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 760; }
.section-heading p { margin: 0; color: rgba(255,255,255,0.84); max-width: 760px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card { overflow: hidden; }
.content-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.content-card-body { padding: 22px; }
.content-card h3, .news-card h3 { margin: 0 0 10px; color: #073B4D; font-size: 1.22rem; line-height: 1.22; }
.content-card p, .news-card p { margin: 0 0 16px; color: var(--of-muted); }
.more-link { font-weight: 760; }

.latest-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { padding: 22px; }
.news-date { color: var(--of-blue); font-size: 0.88rem; font-weight: 720; }

.page-shell, .post-shell { padding: clamp(28px, 5vw, 58px); }
.entry-header { margin-bottom: 24px; }
.entry-title { margin: 0 0 12px; color: #073B4D; font-size: clamp(1.85rem, 3.4vw, 3.2rem); line-height: 1.07; letter-spacing: -0.045em; font-weight: 760; }
.entry-content h2 { margin-top: 2rem; color: #073B4D; font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.18; }
.entry-content h3 { color: #0B5268; font-size: 1.25rem; }
.entry-content p { margin: 0 0 1.15rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.wp-block-image img { border-radius: 18px; }

.footer-spacer-fix {
  height: clamp(34px, 6vw, 86px);
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, rgba(5,42,58,0), #041F2C 80%, #031821 100%);
}
.site-footer {
  margin-top: 0;
  min-height: 300px;
  color: rgba(255,255,255,0.88);
  background-color: #031821;
  background-image:
    linear-gradient(to bottom, #031821 0%, rgba(3,24,33,0.78) 20%, rgba(2,14,21,0.80) 68%, rgba(2,10,16,0.96) 100%),
    url("assets/images/footer-wreck-toxic-v015.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 0;
}
.footer-inner {
  max-width: var(--of-max);
  margin: 0 auto;
  padding: clamp(92px, 11vw, 145px) 22px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: end;
}
.footer-logo { display: block; width: min(230px, 100%); height: auto; margin-bottom: 12px; }
.footer-brand { font-size: 1.32rem; font-weight: 780; color: #fff; margin-bottom: 8px; }
.site-footer p { margin: 0; }
.footer-links, .social-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.92); }
.site-footer a:hover { color: var(--of-cyan); }
.footer-bottom { max-width: var(--of-max); margin: 0 auto; padding: 0 22px 22px; color: rgba(255,255,255,0.68); font-size: 0.9rem; }

@media (max-width: 980px) {
  .home-intro { grid-template-columns: 1fr; }
  .home-intro-text { max-width: 720px; }
  .stats-grid, .content-grid, .latest-news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .header-inner { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .custom-logo, .of-white-logo { max-height: 54px; }
  .of-white-logo { height: 54px; }
  .menu-toggle {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 750;
  }
  .main-navigation { width: 100%; order: 3; flex-basis: 100%; }
  .header-donate-button { margin-left: auto; min-height: 40px; padding: 9px 15px; }
  .primary-menu { display: none; align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 12px; padding-top: 12px; }
  .main-navigation.is-open .primary-menu { display: flex; }
  .primary-menu .sub-menu { position: static; display: block; background: transparent; box-shadow: none; padding: 4px 0 0 16px; }
  .hero { min-height: auto; padding-top: 42px; }
  .stats-grid, .content-grid, .latest-news-grid, .footer-inner { grid-template-columns: 1fr; }
  .page-shell, .post-shell { border-radius: 18px; padding: 24px; }
  .site-footer { min-height: 270px; }
  .footer-inner { padding-top: 130px; }
}

/* Encadré de mise en évidence Ocean Foundation */
.encadre-ocean {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: rgba(5, 42, 58, 0.08);
  border-left: 5px solid #956A19;
  border-radius: 14px;
  color: #052A3A;
  font-size: 1.05rem;
  line-height: 1.65;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.encadre-ocean strong {
  color: #052A3A;
  font-weight: 700;
}

.encadre-ocean p {
  margin-top: 0;
}

.encadre-ocean p:last-child {
  margin-bottom: 0;
}

/* Formulaire de commentaires - Ocean Foundation Europe */

/* Bloc général des commentaires */
.comments-area {
  width: min(100% - 2rem, 820px);
  margin: 3.5rem auto 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(245, 250, 252, 0.95);
  border: 1px solid rgba(5, 42, 58, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  color: #052A3A;
  box-sizing: border-box;
}

/* Tous les éléments internes respectent la largeur du bloc */
.comments-area *,
.comments-area *::before,
.comments-area *::after {
  box-sizing: border-box;
}

/* Titre du formulaire */
.comments-title,
.comment-reply-title {
  max-width: 680px;
  padding-top: 0.8rem;
  margin: 0 auto 1.2rem;
  color: #052A3A;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

/* Petite accroche au-dessus du titre */
.comment-reply-title::before {
  content: "Votre regard compte";
  display: block;
  margin-bottom: 0.45rem;
  color: #956A19;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Textes d’aide */
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent,
.form-allowed-tags {
  max-width: 680px;
  margin: 0 auto 1.4rem;
  color: rgba(5, 42, 58, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Formulaire */
.comment-form {
  max-width: 680px;
  margin: 0 auto;
}

/* Chaque ligne du formulaire */
.comment-form p {
  margin: 0 0 1.2rem;
}

/* Labels */
.comment-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: #052A3A;
  font-weight: 600;
}

/* Champs texte */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(5, 42, 58, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #052A3A;
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Zone de commentaire */
.comment-form textarea {
  min-height: 170px;
  resize: vertical;
}

/* Champ actif */
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #956A19;
  box-shadow: 0 0 0 4px rgba(149, 106, 25, 0.14);
  background: #fffdf8;
}

/* Case à cocher cookies */
.comment-form-cookies-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto 1.4rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 0.25rem;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
}

/* Astérisque obligatoire */
.comment-form .required {
  color: #956A19;
}

/* Bouton */
.form-submit {
  max-width: 680px;
  margin: 1.4rem auto 0;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  border: none;
  border-radius: 999px;
  background: #956A19;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(149, 106, 25, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-form .submit:hover,
.comment-form .submit:focus {
  background: #7f5814;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(149, 106, 25, 0.30);
}

/* Liste des commentaires déjà publiés */
.comment-list {
  max-width: 680px;
  margin: 1.8rem auto 0;
  padding: 0;
  list-style: none;
}

/* Un commentaire publié */
.comment-body {
  margin-bottom: 1.2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid #956A19;
  border-radius: 14px;
}

/* Métadonnées du commentaire */
.comment-meta {
  color: rgba(5, 42, 58, 0.7);
  font-size: 0.92rem;
}

/* Contenu du commentaire */
.comment-content {
  color: #052A3A;
  line-height: 1.7;
}

/* Liens */
.reply a,
.comment-metadata a,
.logged-in-as a {
  color: #956A19;
  font-weight: 600;
  text-decoration: none;
}

.reply a:hover,
.comment-metadata a:hover,
.logged-in-as a:hover {
  text-decoration: underline;
}

/* Version mobile */
@media (max-width: 700px) {
  .comments-area {
    width: min(100% - 1rem, 820px);
    margin-top: 2.5rem;
    padding: 1.25rem;
    border-radius: 14px;
  }

  .comment-form,
  .comment-notes,
  .logged-in-as,
  .comment-form-cookies-consent,
  .form-submit,
  .comment-list {
    max-width: 100%;
  }

  .comment-form .submit {
    width: 100%;
  }
}
/* short youtube */
.short-youtube {
  max-width: 360px;
  margin: 2rem auto;
}

.short-youtube .wp-block-embed {
  margin-left: auto;
  margin-right: auto;
}

.short-youtube iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
}

/* Grille des logos partenaires */
.grille-partenaires {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  justify-content: center;
  column-gap: 60px;
  row-gap: 40px;
  margin: 30px 0;
}

.grille-partenaires a {
  display: block;
  width: 150px;
  height: 150px;
  line-height: 0;
  text-decoration: none;
  border: 0;
}

.grille-partenaires a::before,
.grille-partenaires a::after {
  display: none !important;
  content: none !important;
}

.grille-partenaires img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  background-color: #fff;
  border: 0;
}