/*
Theme Name: Routhiau Redirection
Theme URI: https://www.routhiau.fr
Author: Damien DOMINGUEZ
Description: SAS ROUTHIAU - 2026
Requires at least: WordPress 6.9.0
Version: 1.0
*/

/* --- RESET & VARIABLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-red: #ea4f52;
  --color-white: #ffffff;
  --font-mendl: 'Mendl Sans Dawn Medium', 'Montserrat', sans-serif;
  --font-playfair: 'Playfair Display', serif;
}

body {
  font-family: var(--font-mendl);
  overflow: hidden;
  height: 100vh;
  color: var(--color-white);
  background-color: #111;
}

/* --- BACKGROUND CAROUSEL & OVERLAY --- */
#carousel-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  visibility: hidden;
}

.transition-active {
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.20);
  z-index: -1;
}

/* ======================================== */
/* --- MOBILE FIRST (Styles par défaut) --- */
/* ======================================== */

header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  z-index: 20;
}

.header-btn {
  display: block;
  background-color: var(--color-white);
  cursor: pointer;
  border-radius: 60px;
  transition: background-color 1s;
  padding: 10px 40px 10px 10px;
  line-height: 1.25rem;
  text-decoration: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  font-size: 20px;
  color: #FFF;
}

.btn-pro {
  background-color: #0020ff;
  background-image: url('img/pro_icon.svg');
}

.btn-pro:hover {
  color: #0020ff;
  background-color: #f0f0f0;
  background-image: url('img/pro_icon_hov.svg');
}

.btn-rth {
  background-color: #a21a3f;
  background-image: url('img/rth_icon.svg');
}

.btn-rth:hover {
  color: #a21a3f;
  background-color: #f0f0f0;
  background-image: url('img/rth_icon_hov.svg');
}

main {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  z-index: 10;
  text-align: center;
  padding: 0 15px;
}

.top-content {
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10px;
}

.text-line1 {
  font-family: var(--font-mendl);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -1px;
  position: relative;
  left: 0;
  z-index: 1;
}

.text-devient {
  font-family: var(--font-playfair);
  font-style: italic;
  color: var(--color-red);
  font-size: 3.5rem;
  margin-top: -20px;
  position: relative;
  left: 0;
  z-index: 2;
}

.logo-wrapper {
  grid-row: 2;
  position: relative;
  z-index: 15;
}

.logo-svg {
  width: 250px;
  height: auto;
  display: block;
}

.btn-wrapper {
  grid-row: 3;
  align-self: start;
  padding-top: 25px;
  z-index: 5;
}

.btn-decouvrir {
  display: inline-block;
  font-family: var(--font-mendl);
  background-color: var(--color-white);
  color: var(--color-red);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 60px;
  transition: transform 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-decouvrir:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  z-index: 20;
}

.legal-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.legal-menu a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.75rem;
  opacity: 0.7;
}

.legal-menu a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- MODIFICATIONS DU MENU LÉGAL --- */
.legal-menu button.legal-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.75rem;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.legal-menu button.legal-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-white);
  width: 90%;
  max-width: 900px;
  height: 85vh;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(30px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 45px;
  background: var(--color-white);
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-red);;
  z-index: 10;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--color-white);
  background-color: var(--color-red);
}

#modal-iframe {
  width: 100%;
  height: 100%;
  padding: 15px;
  border: none;
  background-color: var(--color-white);
}

/* --- PAGE --- */

#page-body {
  overflow: unset;
}

#page-container {
  color: #333;
  background-color: #FFF;
}

#page-title {
  color: var(--color-red);
  font-size: 3rem;
  margin-bottom: 20px;
}

#page-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#page-content p {
  margin-bottom: 10px;
}

/* --- ANIMATIONS BASIQUES MOBILE --- */
.anim-left-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 1s ease-out;
}

.anim-fade {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.anim-top-bottom {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 1s ease-out;
}

.visible {
  opacity: 1;
  transform: translate(0, 0) !important;
}

/* ============================================== */
/* --- TABLET (Ajustements à partir de 768px) --- */
/* ============================================== */

@media (min-width: 768px) {
  header {
    padding: 30px;
    gap: 15px;
  }

  .header-btn {
    padding: 15px 60px 15px 15px;
    background-size: 40px 40px;
    background-position: right 10px center;
    line-height: 1.5rem;
  }

  .top-content {
    padding-bottom: 20px;
  }

  .text-line1 {
    font-size: clamp(3rem, 5vw, 4rem);
    left: -30px;
  }

  .text-devient {
    font-size: clamp(4.5rem, 7vw, 6rem);
    margin-top: -30px;
    left: 80px;
  }

  .logo-svg {
    width: clamp(300px, 35vw, 500px);
  }

  .btn-wrapper {
    padding-top: 30px;
  }

  .btn-decouvrir {
    font-size: clamp(1rem, 2.5vw, 3rem);
    padding: 15px 30px;
  }

  footer {
    padding: 20px 40px;
  }

  .legal-menu {
    flex-direction: row;
    gap: 30px;
    text-align: left;
  }

  .anim-left-right {
    transform: translateX(-40px);
  }

  .anim-top-bottom {
    transform: translateY(-80px);
  }
}

/* =================================================== */
/* --- ORDINATEUR (Ajustements à partir de 1024px) --- */
/* =================================================== */

@media (min-width: 1024px) {
  .text-line1 {
    font-size: clamp(4rem, 6vw, 6.5rem);
    left: -60px;
  }

  .text-devient {
    font-size: clamp(6rem, 9vw, 9.5rem);
    margin-top: clamp(-45px, -4vw, -70px);
    left: 190px;
  }

  .btn-decouvrir {
    font-size: clamp(1rem, 1.9vw, 2.2rem);
    padding: 15px 30px;
  }

  .anim-left-right {
    transform: translateX(-60px);
  }

  .anim-top-bottom {
    transform: translateY(-120px);
  }
}

/* =================================================== */
/* --- ORDINATEUR (Ajustements à partir de 1960px) --- */
/* =================================================== */

@media (min-width: 1960px) {
  .text-devient {
    margin-top: clamp(-80px, -4vw, -100px);
  }
}

