/* ----------- BASE & RESET ----------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  word-break: break-word;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-size: 17px;
  color: #222;
  background: #f8fafb;
  line-height: 1.6;
}

/* ----------- HEADER HERO ----------- */
.header-hero {
  position: relative;
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  overflow-x: hidden;
}

.header-hero nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(24,56,90,0.85);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 24px rgba(12,108,168,0.07);
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.nav__logo {
  height: 60px;
  width: auto;
  max-width: 160px;
}

/* Bouton retour à l'accueil */
.home-btn {
  display: inline-block;
  background: #ffd700;
  color: #18385a;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(240,180,41,0.08);
}

.home-btn:hover {
  background: #18385a;
  color: #fff;
}

/* ----------- HEADER OVERLAY ----------- */
.header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 56, 90, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 2;
  padding-top: 90px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.header-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.header-overlay p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* ----------- SECTION PRINCIPALE ----------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ----------- ARTICLES GRID ----------- */
.articles-grid,
.coming-soon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin: 3.5rem auto 2.5rem auto;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.article-card,
.coming-soon-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(12,108,168,0.08);
  display: flex;
  flex-direction: column;
  width: 340px;
  min-width: 260px;
  max-width: 98vw;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.article-card:hover,
.coming-soon-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(12,108,168,0.14);
  background: #eaf6ff;
}

.article-card__img {
  background-size: cover;
  background-position: center;
  height: 180px;
  width: 100%;
  max-width: 100%;
}

.article-card__content {
  padding: 26px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0c6ca8;
  margin-bottom: 12px;
}

.article-card__excerpt {
  color: #444;
  font-size: 1rem;
  margin-bottom: 18px;
  flex: 1;
}

.article-card__link {
  align-self: flex-start;
  background: #ffd700;
  color: #18385a;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: none;
  box-shadow: 0 2px 8px rgba(240,180,41,0.08);
}

.article-card__link:hover {
  background: #18385a;
  color: #fff;
}

.coming-soon-card__icon {
  background: linear-gradient(135deg, #ffd700 60%, #0c6ca8 100%);
  color: #18385a;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px #ffd70044;
  flex-shrink: 0;
  margin-top: 2px;
}

.coming-soon-card__title {
  font-size: 1.13rem;
  font-weight: 700;
  color: #0c6ca8;
  margin-bottom: 7px;
  letter-spacing: 0.5px;
}

.coming-soon-card__excerpt {
  color: #222;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.coming-soon-card__note {
  background: #ffd700;
  color: #18385a;
  font-size: 0.97rem;
  border-radius: 18px;
  padding: 3px 15px;
  font-weight: 600;
  display: inline-block;
}

/* ----------- FORMULAIRE CONTACT ----------- */
#contact-form {
  background: #f4f8fc;
  padding: 2.5rem 0 3.5rem 0;
  width: 100%;
  overflow-x: hidden;
}

.contact-container {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(12,108,168,0.06);
  padding: 38px 28px 28px 28px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

#contact-title {
  color: #0c6ca8;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

form#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-group.grid {
  flex-direction: row;
  gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #c6d6e6;
  font-size: 1rem;
  background: #f8fafb;
  color: #222;
  transition: border 0.18s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0c6ca8;
  outline: none;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: #444;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #ffd700;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.checkbox-text {
  line-height: 1.4;
}

.data-link {
  color: #0c6ca8;
  text-decoration: underline;
  font-weight: 500;
}

.contact-btn,
button[type="submit"] {
  background: #ffd700;
  color: #18385a;
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: none;
  box-shadow: 0 2px 8px rgba(240,180,41,0.12);
  cursor: pointer;
  margin-top: 0.7rem;
}

.contact-btn:hover,
button[type="submit"]:hover {
  background: #18385a;
  color: #fff;
}

/* ----------- FOOTER ----------- */
footer {
  background: linear-gradient(120deg, #0c6ca8 0%, #18385a 100%);
  color: #fff;
  padding: 0;
  font-size: 1rem;
  box-shadow: 0 -2px 24px rgba(12,108,168,0.08);
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 36px 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.footer-section {
  background: rgba(255,255,255,0.07);
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(12,108,168,0.09);
  padding: 36px 26px 28px 26px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.18s;
}

.footer-section:hover {
  box-shadow: 0 8px 32px rgba(12,108,168,0.18);
  transform: translateY(-6px) scale(1.04);
  background: rgba(255,255,255,0.13);
}

.footer-title {
  color: #ffd700;
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section ul {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.7em;
  text-align: center;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 7px;
}

.footer-section a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.18s;
  border-bottom: 1px solid transparent;
  word-break: break-all;
}

.footer-section a:hover {
  color: #fff;
  border-bottom: 1px solid #ffd700;
}

.social-icons a {
  color: #ffd700;
  font-size: 2rem;
  margin: 0 8px;
  transition: color 0.18s, transform 0.18s;
  display: inline-block;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.15) rotate(-6deg);
}

.footer-bottom {
  background: #12273e;
  color: #fff;
  text-align: center;
  padding: 18px 10px 10px 10px;
  font-size: 0.98rem;
  margin-top: 0;
  border-top: 1.5px solid #ffd70033;
  width: 100%;
  overflow-x: hidden;
}

.footer-bottom a {
  color: #ffd700;
  margin: 0 8px;
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.18s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}

@media (max-width: 991px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 36px 10px 24px 10px;
  }
  .footer-section {
    width: 100%;
    max-width: 420px;
    margin-bottom: 18px;
  }
  .mentions-legales-card,
  .contact-container {
    padding: 28px 10px 16px 10px;
  }
}

@media (max-width: 700px) {
  .container {
    width: 96%;
    padding: 1rem 0.5rem;
  }
  .mentions-legales-card {
    padding: 18px 2vw 10px 2vw;
  }
  .header-overlay h1 {
    font-size: 1.4rem;
  }
  .header-overlay p {
    font-size: 1rem;
  }
  .footer-content {
    padding: 24px 5px 18px 5px;
  }
  .header-hero {
    min-height: 220px;
  }
  .articles-grid,
  .coming-soon-grid {
    gap: 1rem;
    margin: 2rem auto 1.5rem auto;
  }
  .article-card,
  .coming-soon-card {
    width: 100%;
    max-width: 100%;
    min-width: unset;
    margin: 0.5rem 0;
  }
}

@media (max-width: 500px) {
  .header-hero nav {
    padding: 4px 2px;
  }
  .footer-section {
    padding: 18px 8px;
  }
  .footer-title {
    font-size: 1rem;
  }
  .footer-bottom {
    font-size: 0.85rem;
    padding: 10px 4px 6px 4px;
  }
  .header-overlay {
    padding-top: 30px;
  }
  .mentions-legales-card {
    padding: 10px 2vw 6px 2vw;
  }
}

/* ----------- ACCESSIBILITÉ ----------- */
a:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

img,
.article-card__img,
.coming-soon-card__icon {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------- MENTIONS LÉGALES SECTION ESTHÉTIQUE ----------- */
.mentions-legales-section {
  background: linear-gradient(120deg, #f4f8fc 60%, #eaf6ff 100%);
  padding: 3.5rem 0 2.5rem 0;
}

.mentions-legales-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(12,108,168,0.10), 0 1.5px 8px rgba(24,56,90,0.06);
  padding: 44px 36px 36px 36px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
}

.mentions-legales-card:hover {
  box-shadow: 0 8px 40px rgba(12,108,168,0.16);
  transform: translateY(-4px) scale(1.01);
}

.mentions-legales-card h1 {
  color: #0c6ca8;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 1px;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 0.7rem;
}

.mentions-legales-list {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.6rem 1.3rem;
  margin-bottom: 2.5rem;
  background: #f8fafb;
  border-radius: 16px;
  padding: 1.6rem 1.2rem 1.2rem 1.2rem;
  box-shadow: 0 2px 12px rgba(12,108,168,0.06);
}

.mentions-legales-list dt {
  font-weight: 700;
  color: #18385a;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.7em;
  margin-bottom: 0.1em;
  text-shadow: 0 1px 0 #fff;
}

.mentions-legales-list dd {
  margin: 0 0 0.5em 0;
  color: #0c6ca8;
  font-size: 1.04rem;
  align-self: center;
  word-break: break-word;
}

.mentions-legales-list a {
  color: #0c6ca8;
  text-decoration: underline;
  transition: color 0.18s;
}
.mentions-legales-list a:hover {
  color: #ffd700;
}

.mentions-legales-texte {
  color: #222;
  font-size: 1.08rem;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.mentions-legales-texte p {
  margin-bottom: 1.2em;
}

.mentions-legales-articles section {
  margin-bottom: 2.1rem;
  background: #f4f8fc;
  border-radius: 12px;
  padding: 1.2rem 1.1rem 0.7rem 1.1rem;
  box-shadow: 0 1px 6px rgba(12,108,168,0.07);
}

.mentions-legales-articles h2 {
  color: #0c6ca8;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mentions-legales-articles ul {
  padding-left: 1.3em;
  margin: 0.5em 0 0.7em 0;
}

.mentions-legales__credits {
  color: #0c6ca8;
  font-size: 1rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eaf6ff;
  border-radius: 14px;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 1px 6px rgba(12,108,168,0.07);
}

/* Responsive */
@media (max-width: 800px) {
  .mentions-legales-card {
    padding: 24px 7vw 18px 7vw;
  }
  .mentions-legales-list {
    grid-template-columns: 1fr;
    gap: 0.3rem 0;
    padding: 1.2rem 0.7rem;
  }
}

@media (max-width: 500px) {
  .mentions-legales-card {
    padding: 10px 2vw 10px 2vw;
  }
  .mentions-legales-list {
    padding: 0.7rem 0.3rem;
    font-size: 0.98rem;
  }
  .mentions-legales-articles section {
    padding: 0.8rem 0.4rem 0.5rem 0.4rem;
  }
  .mentions-legales__credits {
    font-size: 0.93rem;
    padding: 0.5rem 0.6rem;
  }
}
/*bouton remonté vers le haut */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: #ffd700;
  color: #18385a;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(24,56,90,0.09);
  font-size: 2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.18s, color 0.18s, transform 0.19s;
}

#back-to-top:hover,
#back-to-top:focus {
  background: #18385a;
  color: #fff;
  outline: none;
  transform: translateY(-4px) scale(1.07);
}
