/* © 2026 Cantines Pour Tout Nîmes — cantinespourtoutnimes.fr — Tous droits réservés */

:root {
  --bleu: #2A4EAF;
  --orange: #E8850A;
  --blanc: #FFFFFF;
  --gris: #F5F5F5;
  --bleu-footer: #152D6E;
  --font-titre: 'Montserrat', sans-serif;
  --font-corps: 'Open Sans', sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-corps);
  font-weight: 400;
  color: #333;
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

a img {
  pointer-events: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-corps);
}

::selection {
  background: var(--orange);
  color: white;
}

/* === HEADER === */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: none;
  overflow: visible;
}

.header-logo {
  display: flex;
  align-items: center;
  margin-left: 0;
  margin-right: auto;
  position: relative;
  z-index: 1001;
}

.header-logo img {
  max-height: 140px;
  width: auto;
  transition: transform 0.3s ease;
  pointer-events: auto;
  filter: drop-shadow(0 6px 16px rgba(26, 58, 143, 0.35));
  will-change: transform;
}

.header-logo img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-header {
  flex-shrink: 0;
  align-self: center;
  background: var(--bleu);
  color: var(--blanc);
}

.btn-header:hover {
  background: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 133, 10, 0.3);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bleu);
  color: var(--blanc);
  padding: 80px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 2px solid rgba(245, 166, 35, 0.15);
  top: -100px;
  right: -100px;
  animation: spin-slow 20s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--blanc);
  padding: 6px 18px;
  border-radius: 50px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
  text-align: center;
}

.hero blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
}

.hero blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-weight: 300;
  opacity: 0.8;
  font-size: 0.9rem;
}

.btn-hero {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: var(--blanc);
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 8px;
  display: inline-block;
  font-family: var(--font-titre);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.btn-hero:hover {
  background: var(--blanc);
  color: var(--bleu);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-image-wrapper {
  text-align: center;
}

.hero-image-wrapper img {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-image-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.75;
  font-style: italic;
  text-align: center;
}

.simulateur {
  background: var(--gris);
  padding: 80px 40px;
}

.simulateur h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--bleu);
  margin-bottom: 48px;
}

.controls {
  display: flex;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
}

.control-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--blanc);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.control-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 91, 181, 0.14);
}

.control-block label {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 48px;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 24px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bleu);
  text-align: center;
  line-height: 1.2;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.counter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
}

.counter-btn:hover:not(:disabled) {
  background: var(--orange);
  transform: scale(1.08);
}

.counter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.counter-value {
  font-family: var(--font-titre);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--bleu);
  min-width: 40px;
  text-align: center;
}

.pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--bleu);
  background: var(--blanc);
  color: var(--bleu);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.pill:hover {
  background: rgba(26, 58, 143, 0.1);
  transform: translateY(-2px);
}

.pill.active {
  background: var(--bleu);
  color: var(--blanc);
  box-shadow: 0 4px 12px rgba(26, 58, 143, 0.3);
}

.prix-slider-wrapper {
  padding: 0 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--bleu), var(--orange));
  outline: none;
  margin: 16px 0 12px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blanc);
  border: 3px solid var(--bleu);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  border-color: var(--orange);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blanc);
  border: 3px solid var(--bleu);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prix-display {
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 800;
  color: var(--bleu);
  margin-bottom: 8px;
}

.hint {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
  margin-top: 8px;
}

.resultats {
  position: relative;
  background: var(--bleu);
  color: var(--blanc);
  padding: 80px 40px;
  text-align: center;
}

.resultats-header {
  max-width: 900px;
  margin: 0 auto 40px;
}

.resultats-header h2 {
  font-size: 2rem;
  margin: 0;
  text-align: center;
}

.resultats-actions {
  position: absolute;
  top: 24px;
  right: 40px;
  display: flex;
  gap: 12px;
}

.action-btn-explicit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-family: var(--font-corps);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.action-btn-explicit:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.action-btn-explicit.copied {
  background: #22c55e;
  border-color: #22c55e;
}

.action-btn-explicit i {
  font-size: 1rem;
}

.results-grid {
  display: flex;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto 40px;
  justify-content: center;
}

.result-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.result-label {
  font-size: 0.9rem;
  opacity: 0.8;
  min-height: 2.5em;
  display: flex;
  align-items: flex-end;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0;
}

.result-amount {
  font-family: var(--font-titre);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--orange);
  margin: 8px 0;
  text-align: center;
  line-height: 1;
}

.result-sublabel {
  min-height: 1.4em;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.75;
}

.equivalences {
  max-width: 700px;
  margin: 0 auto;
}

.equivalence {
  font-size: 1rem;
  opacity: 0.88;
  margin-top: 12px;
  line-height: 1.6;
}

.equivalence strong {
  color: var(--orange);
  font-weight: 700;
}

footer {
  background: var(--bleu-footer);
  color: var(--blanc);
  padding: 48px 40px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.footer-col img {
  max-height: 50px;
  opacity: 0.9;
}

.footer-col-logo img {
  max-height: 160px;
  opacity: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-title {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanc);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.footer-col:last-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col:last-child a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col:last-child a:hover {
  color: var(--orange);
}

.copyright {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-soft {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.animate-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.animate-left {
  opacity: 0;
  animation: fadeInLeft 0.7s ease forwards;
}

.animate-right {
  opacity: 0;
  animation: fadeInRight 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.30s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.60s;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    padding: 60px 32px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #site-header {
    height: 60px;
    padding: 0 16px;
    overflow: hidden;
  }

  .header-logo {
    transform: none;
    margin-left: 0;
    margin-right: auto;
  }

  .header-logo img {
    max-height: 44px;
  }

  .btn-header {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 48px 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero blockquote {
    text-align: left;
  }

  .hero-image-wrapper img {
    max-width: 300px;
  }

  .simulateur {
    padding: 48px 20px;
  }

  .simulateur h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .controls {
    flex-direction: column;
    gap: 20px;
  }

  .control-block {
    padding: 24px 20px;
  }

  .resultats {
    padding: 80px 20px 48px;
  }

  .resultats-header h2 {
    font-size: 1.5rem;
  }

  .resultats-actions {
    position: absolute;
    top: 24px;
    right: 20px;
    margin-bottom: 0;
    gap: 8px;
  }

  .action-btn-explicit {
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }

  .action-btn-explicit span {
    display: none;
  }

  .action-btn-explicit i {
    font-size: 1.1rem;
    margin: 0;
  }

  .results-grid {
    flex-direction: column;
    gap: 20px;
  }

  .result-amount {
    font-size: 2.2rem;
  }

  footer {
    padding: 40px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}