/* --------------------------------------------
   style.css — Dominique Petroleum Ltd
   Design institutionnel premium responsive
   --------------------------------------------
   Palette principale :
   - Bleu pétrole : #0b4170
   - Or : #fbb034
   - Blanc : #ffffff
   - Gris clair : #f4f8fa
   - Gris foncé : #243145
   --------------------------------------------
*/

:root {
  --color-principal: #0b4170;
  --color-secondaire: #fbb034;
  --color-blanc: #fff;
  --color-gris-clair: #f4f8fa;
  --color-gris-fonce: #243145;
  --color-text: #202937;
  --color-danger: #d94e3b;
  --radius: 12px;
  --shadow: 0 4px 18px 0 rgba(11,65,112,0.07);
  --transition: all 0.2s cubic-bezier(.4,0,.2,1);
  --font-main: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

body {
  background: var(--color-gris-clair);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 17px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* TITRES */
h1, h2, h3, h4, h5 {
  color: var(--color-principal);
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p {
  line-height: 1.7;
  margin-bottom: 16px;
}

/* HEADER institutionnel */
header {
  background: var(--color-principal);
  color: var(--color-blanc);
  padding: 28px 0 16px 0;
  box-shadow: var(--shadow);
}
header .logo { height: 56px; vertical-align: middle; }

/* MENU PREMIUM RESPONSIVE (Institutionnel) */
.navbar-insti {
  background: #22345d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
  padding: 0 12px;
  min-height: 60px;
  position: relative;
  border-bottom: 3px solid #fbb034;
}
.nav-logo img { height: 40px; }

.nav-burger {
  display: none;
  background: #fbb034;
  color: #22345d;
  font-weight: 800;
  font-size: 1.08em;
  border: none;
  border-radius: 7px;
  padding: 11px 28px;
  margin-left: 10px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.17s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}

.nav-menu a, .menu-parent > a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08em;
  padding: 17px 14px;
  border-radius: 7px 7px 0 0;
  transition: background 0.14s, color 0.14s;
  border-bottom: 3px solid transparent;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.nav-menu a.active, .nav-menu a:hover, .menu-parent > a:hover {
  background: #22345d;
  color: #fbb034;
  border-bottom: 3px solid #fbb034;
}

.btn-nav {
  background: #fbb034;
  color: #22345d !important;
  padding: 12px 20px;
  margin-left: 13px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
}

/* Sous-menu */
.menu-parent { position: relative; }
.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 170px;
  background: #2d4068;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 9px 24px #22345d33;
  z-index: 20;
}
.menu-parent:hover .sub-menu,
.menu-parent:focus-within .sub-menu {
  display: block;
}
.sub-menu a {
  color: #fff;
  padding: 13px 22px;
  display: block;
  border-radius: 0;
  font-size: 1em;
  border-bottom: none;
}
.sub-menu a:hover {
  background: #fbb034;
  color: #22345d;
}

/* -------- Responsive Menu -------- */
@media (max-width: 900px) {
  .navbar-insti { padding: 0 2vw; }
  .nav-burger { display: block; }
  .nav-menu {
    position: absolute;
    top: 61px; left: 0; right: 0;
    background: #22345d;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 20px 6vw;
    box-shadow: 0 7px 22px #22345d33;
    display: none;
    z-index: 1002;
    border-radius: 0 0 11px 11px;
    animation: fadeinmenu 0.33s;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a, .menu-parent > a {
    width: 94%;
    padding: 15px 5vw;
    font-size: 1.14em;
    border-radius: 7px;
    border-bottom: none;
    margin: 0;
  }
  .btn-nav {
    width: 92%;
    margin: 12px 2% 0 2%;
    padding: 13px 0;
    font-size: 1.10em;
    text-align: center;
    border-radius: 10px;
  }
  /* Sous-menus mobile : clic parent = déplier */
  .sub-menu {
    position: static;
    display: none;
    background: #182847;
    box-shadow: none;
    border-radius: 0 0 8px 8px;
    margin-left: 12px;
    width: 93%;
    padding-left: 0;
  }
  .menu-parent.open .sub-menu { display: block; }
}
@keyframes fadeinmenu {
  from { opacity: 0; transform: translateY(-16px);}
  to { opacity: 1; transform: none;}
}

/* MAIN CONTENT */
.main-content {
  max-width: 1240px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background: var(--color-blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* BOUTONS */
.btn, button, input[type="submit"] {
  background: var(--color-principal);
  color: var(--color-blanc);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(11,65,112,0.10);
  transition: var(--transition);
  letter-spacing: .02em;
}
.btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--color-secondaire);
  color: var(--color-principal);
}

/* FORMULAIRES */
form {
  margin: 25px 0;
}
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  margin: 7px 0 16px 0;
  border: 1.5px solid #dde4ec;
  border-radius: var(--radius);
  font-size: 1em;
  background: #f8fafc;
  color: var(--color-text);
  transition: border .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-principal);
  outline: none;
}
label {
  font-weight: 600;
  color: var(--color-gris-fonce);
  margin-bottom: 3px;
  display: block;
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  margin-right: 8px;
}
.form-group { margin-bottom: 22px; }

/* CARDS */
.card {
  background: var(--color-blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 32px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 8px 30px 0 rgba(11,65,112,0.13);
  transform: translateY(-3px) scale(1.01);
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  background: var(--color-blanc);
  box-shadow: 0 2px 8px 0 rgba(11,65,112,0.07);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { padding: 13px 18px; text-align: left; }
th {
  background: var(--color-principal);
  color: var(--color-blanc);
  font-size: 1.05em;
}
tr:nth-child(even) { background: #f2f6fa; }

/* ALERTES & MESSAGES */
.alert {
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 22px 0;
  font-weight: 600;
  background: #f8e7da;
  color: var(--color-danger);
  border: 1.5px solid #fbb034;
}
.success {
  background: #e9f9f0;
  color: #258258;
  border: 1.5px solid #9ce5bd;
}

/* FOOTER */
footer {
  background: var(--color-principal);
  color: #b8d3ed;
  padding: 36px 0 22px 0;
  text-align: center;
  font-size: 1.07em;
  margin-top: 60px;
}
footer a {
  color: var(--color-secondaire);
  margin: 0 8px;
  text-decoration: underline;
}
footer .logo-footer {
  height: 40px;
  margin-bottom: 12px;
}

/* Responsive divers */
@media (max-width: 980px) {
  .main-content { padding: 15px; max-width: 98vw; }
}
@media (max-width: 620px) {
  header, footer { padding: 14px 0 8px 0; }
  .main-content { padding: 7px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .card { padding: 14px 7px; }
  table, th, td { font-size: 0.92em; }
}

/* Animations douces */
.fade-in {
  animation: fadein 1.2s cubic-bezier(.4,0,.2,1);
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(18px);}
  to { opacity: 1; transform: none;}
}